2 // SOSTransportMessageIDS.h
6 #include <Security/SecureObjectSync/SOSAccount.h>
9 kIDSStartPingTestMessage
= 1,
10 kIDSEndPingTestMessage
= 2,
11 kIDSSendOneMessage
= 3,
12 kIDSSyncMessagesRaw
= 4,
13 kIDSSyncMessagesCompact
= 5,
14 kIDSPeerAvailability
= 6,
15 kIDSPeerAvailabilityDone
= 7,
16 kIDSKeychainSyncIDSFragmentation
= 8
19 //error handling stuff
22 kSecIDSErrorNoDeviceID
= -1, //default case
23 kSecIDSErrorNotRegistered
= -2,
24 kSecIDSErrorFailedToSend
=-3,
25 kSecIDSErrorCouldNotFindMatchingAuthToken
= -4,
26 kSecIDSErrorDeviceIsLocked
= -5,
27 kSecIDSErrorNoPeersAvailable
= -6
32 extern const CFStringRef kSecIDSErrorDomain
;
33 extern const CFStringRef kIDSOperationType
;
34 extern const CFStringRef kIDSMessageToSendKey
;
36 typedef struct __OpaqueSOSTransportMessageIDS
*SOSTransportMessageIDSRef
;
38 SOSTransportMessageIDSRef
SOSTransportMessageIDSCreate(SOSAccountRef account
, CFStringRef circleName
, CFErrorRef
*error
);
40 HandleIDSMessageReason
SOSTransportMessageIDSHandleMessage(SOSAccountRef account
, CFDictionaryRef message
, CFErrorRef
*error
);
42 void SOSTransportMessageIDSGetIDSDeviceID(SOSAccountRef account
);
44 void SOSTransportMessageIDSSetFragmentationPreference(SOSTransportMessageRef transport
, CFBooleanRef preference
);
45 CFBooleanRef
SOSTransportMessageIDSGetFragmentationPreference(SOSTransportMessageRef transport
);