mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 03:15:25 +00:00
Monotone-Parent: b062a471e751aff2d35891675a50d0fff8918047
Monotone-Revision: ab9f5dfc9882f0fa2e4df964b47cb60942c58c9a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-04-19T22:22:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -632,68 +632,6 @@ sogo_op_setprops(void *private_data,
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_set_property_from_fd(void *private_data,
|
||||
uint64_t fmid, uint8_t type,
|
||||
uint32_t property, int fd)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
sogo_context *cContext;
|
||||
MAPIStoreContext *context;
|
||||
NSFileHandle *fileHandle;
|
||||
int rc;
|
||||
|
||||
DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
cContext = private_data;
|
||||
context = cContext->objcContext;
|
||||
[context setupRequest];
|
||||
|
||||
fileHandle = [[NSFileHandle alloc] initWithFileDescriptor: fd
|
||||
closeOnDealloc: NO];
|
||||
rc = [context setProperty: property withFMID: fmid ofTableType: type
|
||||
fromFile: fileHandle];
|
||||
[fileHandle release];
|
||||
|
||||
[context tearDownRequest];
|
||||
[pool release];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_get_property_into_fd(void *private_data,
|
||||
uint64_t fmid, uint8_t type,
|
||||
uint32_t property, int fd)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
sogo_context *cContext;
|
||||
MAPIStoreContext *context;
|
||||
NSFileHandle *fileHandle;
|
||||
int rc;
|
||||
|
||||
DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
cContext = private_data;
|
||||
context = cContext->objcContext;
|
||||
[context setupRequest];
|
||||
|
||||
fileHandle = [[NSFileHandle alloc] initWithFileDescriptor: fd
|
||||
closeOnDealloc: NO];
|
||||
rc = [context getProperty: property withFMID: fmid ofTableType: type
|
||||
intoFile: fileHandle];
|
||||
[fileHandle release];
|
||||
|
||||
[context tearDownRequest];
|
||||
[pool release];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_modifyrecipients(void *private_data,
|
||||
uint64_t mid,
|
||||
@@ -1291,8 +1229,6 @@ int mapistore_init_backend(void)
|
||||
|
||||
backend.op_setprops = sogo_op_setprops;
|
||||
backend.op_getprops = sogo_op_getprops;
|
||||
backend.op_set_property_from_fd = sogo_op_set_property_from_fd;
|
||||
backend.op_get_property_into_fd = sogo_op_get_property_into_fd;
|
||||
|
||||
/* proof of concept */
|
||||
backend.folder.open_table = sogo_pocop_open_table;
|
||||
|
||||
Reference in New Issue
Block a user