mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-07 12:35:27 +00:00
Monotone-Parent: 394b1692941b08185f4b0f87ec52bc7c0dc6c824
Monotone-Revision: 32b84d9dc2715067c885c49bfc26087eac4dcd2b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-22T20:51:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -841,6 +841,36 @@ sogo_table_get_row (void *table_object, TALLOC_CTX *mem_ctx,
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_table_get_row_count (void *table_object,
|
||||
enum table_query_type query_type,
|
||||
uint32_t *row_countp)
|
||||
{
|
||||
struct MAPIStoreTallocWrapper *wrapper;
|
||||
NSAutoreleasePool *pool;
|
||||
MAPIStoreTable *table;
|
||||
int rc;
|
||||
|
||||
DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
if (table_object)
|
||||
{
|
||||
wrapper = table_object;
|
||||
table = wrapper->MAPIStoreSOGoObject;
|
||||
pool = [NSAutoreleasePool new];
|
||||
rc = [table getRowCount: row_countp
|
||||
withQueryType: query_type];
|
||||
[pool release];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog (@" UNEXPECTED WEIRDNESS: RECEIVED NO DATA");
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int sogo_properties_get_available_properties(void *object,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct SPropTagArray **propertiesP)
|
||||
@@ -973,6 +1003,7 @@ int mapistore_init_backend(void)
|
||||
backend.table.set_sort_order = sogo_table_set_sort_order;
|
||||
backend.table.set_columns = sogo_table_set_columns;
|
||||
backend.table.get_row = sogo_table_get_row;
|
||||
backend.table.get_row_count = sogo_table_get_row_count;
|
||||
backend.properties.get_available_properties = sogo_properties_get_available_properties;
|
||||
backend.properties.get_properties = sogo_properties_get_properties;
|
||||
backend.properties.set_properties = sogo_properties_set_properties;
|
||||
|
||||
Reference in New Issue
Block a user