mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
Monotone-Parent: d4d8cd09603e421c6484fb4c83e461c0f987a5ab
Monotone-Revision: 466d889076df3a6549014c16a439e973a134a6f6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-09-20T19:38:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -277,9 +277,7 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||
}
|
||||
|
||||
/* helper getters */
|
||||
- (int) getReplicaKey: (void **) data
|
||||
fromGlobCnt: (uint64_t) objectCnt
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
- (NSData *) getReplicaKeyFromGlobCnt: (uint64_t) objectCnt
|
||||
{
|
||||
struct mapistore_connection_info *connInfo;
|
||||
NSMutableData *replicaKey;
|
||||
@@ -297,9 +295,16 @@ static Class NSExceptionK, MAPIStoreFolderK;
|
||||
replicaKey = [NSMutableData dataWithCapacity: 22];
|
||||
[replicaKey appendBytes: &connInfo->replica_guid
|
||||
length: sizeof (struct GUID)];
|
||||
[replicaKey appendBytes: buffer
|
||||
length: 6];
|
||||
*data = [replicaKey asBinaryInMemCtx: memCtx];
|
||||
[replicaKey appendBytes: buffer length: 6];
|
||||
|
||||
return replicaKey;
|
||||
}
|
||||
|
||||
- (int) getReplicaKey: (void **) data
|
||||
fromGlobCnt: (uint64_t) objectCnt
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
*data = [[self getReplicaKeyFromGlobCnt: objectCnt] asBinaryInMemCtx: memCtx];
|
||||
|
||||
return MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user