]> git.saurik.com Git - apple/security.git/blob - OSX/sec/SOSCircle/SecureObjectSync/SOSTransport.h
Security-57740.1.18.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSTransport.h
1
2
3 #ifndef SOSTransport_h
4 #define SOSTransport_h
5 #include <Security/SecureObjectSync/SOSTransportMessage.h>
6 #include <Security/SecureObjectSync/SOSTransportCircle.h>
7 #include <Security/SecureObjectSync/SOSTransportKeyParameter.h>
8 #include <Security/SecureObjectSync/SOSAccount.h>
9
10 CF_RETURNS_RETAINED CFMutableArrayRef SOSTransportDispatchMessages(SOSAccountRef account, CFDictionaryRef updates, CFErrorRef *error);
11
12 void SOSRegisterTransportMessage(SOSTransportMessageRef additional);
13 void SOSUnregisterTransportMessage(SOSTransportMessageRef removal);
14
15 void SOSRegisterTransportCircle(SOSTransportCircleRef additional);
16 void SOSUnregisterTransportCircle(SOSTransportCircleRef removal);
17
18 void SOSRegisterTransportKeyParameter(SOSTransportKeyParameterRef additional);
19 void SOSUnregisterTransportKeyParameter(SOSTransportKeyParameterRef removal);
20 void SOSUnregisterAllTransportMessages(void);
21 void SOSUnregisterAllTransportCircles(void);
22 void SOSUnregisterAllTransportKeyParameters(void);
23
24
25 void SOSUpdateKeyInterest(SOSAccountRef account);
26
27 enum TransportType{
28 kUnknown = 0,
29 kKVS = 1,
30 kIDS = 2,
31 kBackupPeer = 3,
32 kIDSTest = 4,
33 kKVSTest = 5
34 };
35
36 #endif