]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/SOSCircle/SecureObjectSync/SOSTransportMessageKVS.h
Security-58286.1.32.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransportMessageKVS.h
index 006dc559085592bac31184f796083b035296d6a0..7ebfa435ba9344d7564179025ab20744206b7ff4 100644 (file)
@@ -2,23 +2,22 @@
 
 #ifndef sec_SOSTransportMessageKVS_h
 #define sec_SOSTransportMessageKVS_h
-#include <Security/SecureObjectSync/SOSAccount.h>
-
-//
-// KVS Stuff
-//
-
-typedef struct __OpaqueSOSTransportMessageKVS *SOSTransportMessageKVSRef;
-
-SOSTransportMessageKVSRef SOSTransportMessageKVSCreate(SOSAccountRef account, CFStringRef circleName, CFErrorRef *error);
-
-//
-// Key interests
-//
-
-
-bool SOSTransportMessageKVSAppendKeyInterest(SOSTransportMessageKVSRef transport, CFMutableArrayRef alwaysKeys, CFMutableArrayRef afterFirstUnlockKeys, CFMutableArrayRef unlockedKeys, CFErrorRef *localError);
-
-bool SOSTransportMessageSendMessageIfNeeded(SOSTransportMessageRef transport, CFStringRef circle_id, CFStringRef peer_id, CFErrorRef *error);    
-
+#include <Security/SecureObjectSync/SOSAccountPriv.h>
+#import <Security/SecureObjectSync/SOSTransportMessage.h>
+@class SOSMessage;
+
+@interface SOSMessageKVS : SOSMessage
+{
+    CFMutableDictionaryRef pending_changes;
+}
+@property (atomic) CFMutableDictionaryRef pending_changes;
+
+-(CFIndex) SOSTransportMessageGetTransportType;
+-(CFStringRef) SOSTransportMessageGetCircleName;
+-(CFTypeRef) SOSTransportMessageGetEngine;
+-(SOSAccount*) SOSTransportMessageGetAccount;
+-(bool) SOSTransportMessageKVSAppendKeyInterest:(SOSMessageKVS*) transport ak:(CFMutableArrayRef) alwaysKeys firstUnlock:(CFMutableArrayRef) afterFirstUnlockKeys
+                                       unlocked:(CFMutableArrayRef) unlockedKeys err:(CFErrorRef *)localError;
+
+@end
 #endif