2 // SOSTransportMessageIDS.h
6 #include <Security/SecureObjectSync/SOSAccount.h>
9 kIDSStartPingTestMessage
= 1,
10 kIDSEndPingTestMessage
= 2,
11 kIDSSendOneMessage
= 3,
12 kIDSSyncMessagesRaw
= 4,
13 kIDSSyncMessagesCompact
=5
16 //error handling stuff
19 kSecIDSErrorNoDeviceID
= -1, //default case
20 kSecIDSErrorNotRegistered
= -2,
21 kSecIDSErrorFailedToSend
=-3,
22 kSecIDSErrorCouldNotFindMatchingAuthToken
= -4,
23 kSecIDSErrorDeviceIsLocked
= -5
27 extern const CFStringRef kSecIDSErrorDomain
;
29 typedef struct __OpaqueSOSTransportMessageIDS
*SOSTransportMessageIDSRef
;
31 SOSTransportMessageIDSRef
SOSTransportMessageIDSCreate(SOSAccountRef account
, CFStringRef circleName
, CFErrorRef
*error
);
33 HandleIDSMessageReason
SOSTransportMessageIDSHandleMessage(SOSAccountRef account
, CFDictionaryRef message
, CFErrorRef
*error
);