Monotone-Parent: f7e22c2902aad2294bce4bf4189092795fafd616

Monotone-Revision: 2cb4c559e76b3864636b0072594c02216e619485

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-20T18:28:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-20 18:28:37 +00:00
parent ed6e33bcff
commit 95fb350599
11 changed files with 47 additions and 32 deletions
+30
View File
@@ -23,6 +23,7 @@
#import <Foundation/NSAutoreleasePool.h>
#import <NGExtensions/NSObject+Logs.h>
#import "MAPIStoreTypes.h"
#import "NSData+MAPIStore.h"
#import "NSDate+MAPIStore.h"
#import "NSValue+MAPIStore.h"
@@ -120,4 +121,33 @@ static int MAPIStoreTallocWrapperDestroy (void *data)
return rc;
}
/* helper getters */
- (int) getEmptyString: (void **) data inMemCtx: (TALLOC_CTX *) memCtx
{
*data = [@"" asUnicodeInMemCtx: memCtx];
return MAPISTORE_SUCCESS;
}
- (int) getLongZero: (void **) data inMemCtx: (TALLOC_CTX *) memCtx
{
*data = MAPILongValue (memCtx, 0);
return MAPISTORE_SUCCESS;
}
- (int) getYes: (void **) data inMemCtx: (TALLOC_CTX *) memCtx
{
*data = MAPIBoolValue (memCtx, YES);
return MAPISTORE_SUCCESS;
}
- (int) getNo: (void **) data inMemCtx: (TALLOC_CTX *) memCtx
{
*data = MAPIBoolValue (memCtx, NO);
return MAPISTORE_SUCCESS;
}
@end