2 #ifndef SOSTransportCoder_h
3 #define SOSTransportCoder_h
4 #include <SecureObjectSync/SOSTransportMessage.h>
5 #include <SecureObjectSync/SOSCoder.h>
7 enum SOSCoderUnwrapStatus
{
8 SOSCoderUnwrapError
= 0,
9 SOSCoderUnwrapDecoded
= 1,
10 SOSCoderUnwrapHandled
= 2
13 enum SOSCoderUnwrapStatus
SOSTransportMessageHandleCoderMessage(SOSTransportMessageRef transport
, CFStringRef peer_id
, CFDataRef codedMessage
, CFDataRef
*decodedMessage
, CFErrorRef
*error
);
15 bool SOSTransportMessageSavePeerCoderData(SOSTransportMessageRef transport
, SOSCoderRef coder
, CFStringRef peer_id
, CFErrorRef
*error
);