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
18 //error handling stuff
21 kSecIDSErrorNoDeviceID
= -1, //default case
22 kSecIDSErrorNotRegistered
= -2,
23 kSecIDSErrorFailedToSend
=-3,
24 kSecIDSErrorCouldNotFindMatchingAuthToken
= -4,
25 kSecIDSErrorDeviceIsLocked
= -5,
26 kSecIDSErrorNoPeersAvailable
= -6
31 extern const CFStringRef kSecIDSErrorDomain
;
33 typedef struct __OpaqueSOSTransportMessageIDS
*SOSTransportMessageIDSRef
;
35 SOSTransportMessageIDSRef
SOSTransportMessageIDSCreate(SOSAccountRef account
, CFStringRef circleName
, CFErrorRef
*error
);
37 HandleIDSMessageReason
SOSTransportMessageIDSHandleMessage(SOSAccountRef account
, CFDictionaryRef message
, CFErrorRef
*error
);