mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 10:54:17 +00:00
Moved to abstract index_context instead of tdb_wrap
This commit is contained in:
committed by
Julio García
parent
660f39a980
commit
33b353b974
@@ -144,7 +144,7 @@ sogo_backend_init (void)
|
||||
static enum mapistore_error
|
||||
sogo_backend_create_context(TALLOC_CTX *mem_ctx,
|
||||
struct mapistore_connection_info *conn_info,
|
||||
struct tdb_wrap *indexingTdb,
|
||||
struct indexing_context *indexing,
|
||||
const char *uri, void **context_object)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
@@ -161,7 +161,7 @@ sogo_backend_create_context(TALLOC_CTX *mem_ctx,
|
||||
rc = [MAPIStoreContextK openContext: &context
|
||||
withURI: uri
|
||||
connectionInfo: conn_info
|
||||
andTDBIndexing: indexingTdb];
|
||||
andTDBIndexing: indexing];
|
||||
if (rc == MAPISTORE_SUCCESS)
|
||||
*context_object = [context tallocWrapper: mem_ctx];
|
||||
}
|
||||
@@ -178,7 +178,7 @@ static enum mapistore_error
|
||||
sogo_backend_create_root_folder (const char *username,
|
||||
enum mapistore_context_role role,
|
||||
uint64_t fid, const char *name,
|
||||
// struct tdb_wrap *indexingTdb,
|
||||
// struct indexing_context *indexing,
|
||||
TALLOC_CTX *mem_ctx, char **mapistore_urip)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
@@ -213,7 +213,7 @@ sogo_backend_create_root_folder (const char *username,
|
||||
}
|
||||
|
||||
static enum mapistore_error
|
||||
sogo_backend_list_contexts(const char *username, struct tdb_wrap *indexingTdb,
|
||||
sogo_backend_list_contexts(const char *username, struct indexing_context *indexing,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct mapistore_contexts_list **contexts_listp)
|
||||
{
|
||||
@@ -230,7 +230,7 @@ sogo_backend_list_contexts(const char *username, struct tdb_wrap *indexingTdb,
|
||||
{
|
||||
userName = [NSString stringWithUTF8String: username];
|
||||
*contexts_listp = [MAPIStoreContextK listAllContextsForUser: userName
|
||||
withTDBIndexing: indexingTdb
|
||||
withIndexing: indexing
|
||||
inMemCtx: mem_ctx];
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user