]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportCircleKVS.h
Security-58286.31.2.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportCircleKVS.h
1
2
3 #ifndef sec_SOSTransportCircleKVS_h
4 #define sec_SOSTransportCircleKVS_h
5
6 #import "SOSTransportCircle.h"
7 @class SOSCircleStorageTransport;
8
9 @interface SOSKVSCircleStorageTransport : SOSCircleStorageTransport
10 {
11 NSMutableDictionary *pending_changes;
12 NSString *circleName;
13 }
14
15 @property (retain, nonatomic) NSMutableDictionary *pending_changes;
16 @property (retain, nonatomic) NSString *circleName;
17
18
19 -(id)init;
20 -(id)initWithAccount:(SOSAccount*)acct andCircleName:(NSString*)name;
21 -(NSString*) getCircleName;
22 -(bool) flushChanges:(CFErrorRef *)error;
23
24 -(void)kvsAddToPendingChanges:(CFStringRef) message_key data:(CFDataRef)message_data;
25 -(bool)kvsSendPendingChanges:(CFErrorRef *)error;
26
27 -(bool)kvsAppendKeyInterest:(CFMutableArrayRef) alwaysKeys firstUnlock:(CFMutableArrayRef) afterFirstUnlockKeys unlocked:(CFMutableArrayRef)unlockedKeys err:(CFErrorRef *)error;
28 -(bool)kvsAppendRingKeyInterest:(CFMutableArrayRef) alwaysKeys firstUnlock:(CFMutableArrayRef)afterFirstUnlockKeys unlocked:(CFMutableArrayRef) unlockedKeys err:(CFErrorRef *)error;
29 -(bool)kvsAppendDebugKeyInterest:(CFMutableArrayRef) alwaysKeys firstUnlock:(CFMutableArrayRef)afterFirstUnlockKeys unlocked:(CFMutableArrayRef) unlockedKeys err:(CFErrorRef *)error;
30 -(bool)kvsAppendConfigKeyInterest:(CFMutableArrayRef) alwaysKeys firstUnlock:(CFMutableArrayRef)afterFirstUnlockKeys unlocked:(CFMutableArrayRef) unlockedKeys err:(CFErrorRef *)error;
31
32 -(bool) kvsRingFlushChanges:(CFErrorRef*) error;
33 -(bool) kvsRingPostRing:(CFStringRef) ringName ring:(CFDataRef) ring err:(CFErrorRef *)error;
34
35 -(bool) kvssendDebugInfo:(CFStringRef) type debug:(CFTypeRef) debugInfo err:(CFErrorRef *)error;
36 -(bool) kvsSendOfficialDSID:(CFStringRef) dsid err:(CFErrorRef *)error;
37
38 -(bool) kvsSendAccountChangedWithDSID:(CFStringRef) dsid err:(CFErrorRef *)error;
39
40 @end;
41
42 #endif