2 // SOSTransportMessageIDS.h
6 #include <Security/SecureObjectSync/SOSAccount.h>
9 kIDSStartPingTestMessage
= 1,
10 kIDSEndPingTestMessage
= 2,
11 kIDSSendOneMessage
= 3,
12 kIDSPeerReceivedACK
= 4,
13 kIDSPeerAvailability
= 6,
14 kIDSPeerAvailabilityDone
= 7,
15 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
31 typedef struct __OpaqueSOSTransportMessageIDS
*SOSTransportMessageIDSRef
;
33 SOSTransportMessageIDSRef
SOSTransportMessageIDSCreate(SOSAccountRef account
, CFStringRef circleName
, CFErrorRef
*error
);
35 HandleIDSMessageReason
SOSTransportMessageIDSHandleMessage(SOSAccountRef account
, CFDictionaryRef message
, CFErrorRef
*error
);
37 bool SOSTransportMessageIDSGetIDSDeviceID(SOSAccountRef account
);
39 void SOSTransportMessageIDSSetFragmentationPreference(SOSTransportMessageRef transport
, CFBooleanRef preference
);
40 CFBooleanRef
SOSTransportMessageIDSGetFragmentationPreference(SOSTransportMessageRef transport
);