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:
Wolfgang Sourdeau
2011-09-20 19:38:51 +00:00
parent 4898c0cf77
commit 97a22b12f3
2 changed files with 13 additions and 6 deletions

View File

@@ -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;
}