mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-01 09:49:27 +00:00
Monotone-Parent: 8e645f6ce572b9b56929f17f32c93a52e98cef27
Monotone-Revision: 068bea34405b0256117d10e651c8cbc5279e8821 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-12T21:44:38 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -426,68 +426,6 @@ sogo_op_readdir_count(void *private_data,
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
sogo_op_get_table_property(void *private_data,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
uint64_t fid,
|
||||
uint8_t table_type,
|
||||
enum table_query_type query_type,
|
||||
uint32_t pos,
|
||||
uint32_t proptag,
|
||||
void **data)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
sogo_context *cContext;
|
||||
MAPIStoreContext *context;
|
||||
int rc;
|
||||
|
||||
// DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
cContext = private_data;
|
||||
context = cContext->objcContext;
|
||||
[context setupRequest];
|
||||
|
||||
rc = [context getTableProperty: data withTag: proptag atPosition: pos
|
||||
withTableType: table_type andQueryType: query_type
|
||||
inFID: fid inMemCtx: mem_ctx];
|
||||
|
||||
[context tearDownRequest];
|
||||
[pool release];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_get_available_table_properties(void *private_data, TALLOC_CTX *mem_ctx,
|
||||
uint8_t type,
|
||||
struct SPropTagArray **propertiesP)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
sogo_context *cContext;
|
||||
MAPIStoreContext *context;
|
||||
int rc;
|
||||
|
||||
DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
cContext = private_data;
|
||||
context = cContext->objcContext;
|
||||
[context setupRequest];
|
||||
|
||||
rc = [context getAvailableProperties: propertiesP
|
||||
ofTableType: type
|
||||
inMemCtx: mem_ctx];
|
||||
|
||||
[context tearDownRequest];
|
||||
[pool release];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_openmessage(void *private_data,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
@@ -1235,8 +1173,6 @@ int mapistore_init_backend(void)
|
||||
backend.op_opendir = sogo_op_opendir;
|
||||
backend.op_closedir = sogo_op_closedir;
|
||||
backend.op_readdir_count = sogo_op_readdir_count;
|
||||
backend.op_get_table_property = sogo_op_get_table_property;
|
||||
backend.op_get_available_table_properties = sogo_op_get_available_table_properties;
|
||||
backend.op_set_restrictions = sogo_op_set_restrictions;
|
||||
backend.op_set_sort_order = sogo_op_set_sort_order;
|
||||
backend.op_openmessage = sogo_op_openmessage;
|
||||
|
||||
Reference in New Issue
Block a user