]> git.saurik.com Git - apple/security.git/blob - keychain/SecureObjectSync/SOSTransportCircleKVS.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / 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
31 -(bool) kvsRingFlushChanges:(CFErrorRef*) error;
32 -(bool) kvsRingPostRing:(CFStringRef) ringName ring:(CFDataRef) ring err:(CFErrorRef *)error;
33
34 -(bool) kvssendDebugInfo:(CFStringRef) type debug:(CFTypeRef) debugInfo err:(CFErrorRef *)error;
35 -(bool) kvsSendOfficialDSID:(CFStringRef) dsid err:(CFErrorRef *)error;
36
37 -(bool) kvsSendAccountChangedWithDSID:(CFStringRef) dsid err:(CFErrorRef *)error;
38
39 @end;
40
41 #endif