mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Monotone-Parent: 5c6353cb6270d51a457d46a8fe98dadae4f37193
Monotone-Revision: 0e4c262d0f94e6fb1bccfcb58387684c97728cfc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-11T15:29:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -32,6 +32,32 @@
|
||||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
@implementation NSObject (MAPIStoreTallocHelpers)
|
||||
|
||||
static int MAPIStoreTallocWrapperDestroy (void *data)
|
||||
{
|
||||
id wrappedObject;
|
||||
|
||||
wrappedObject = data;
|
||||
[wrappedObject release];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (struct MAPIStoreTallocWrapper *) tallocWrapper: (TALLOC_CTX *) tallocCtx
|
||||
{
|
||||
struct MAPIStoreTallocWrapper *wrapper;
|
||||
|
||||
wrapper = talloc_zero (tallocCtx, struct MAPIStoreTallocWrapper);
|
||||
wrapper->MAPIStoreSOGoObject = self;
|
||||
talloc_set_destructor ((void *) wrapper, MAPIStoreTallocWrapperDestroy);
|
||||
[self retain];
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSObject (MAPIStoreDataTypes)
|
||||
|
||||
- (enum MAPISTATUS) getMAPIValue: (void **) data
|
||||
|
||||
Reference in New Issue
Block a user