2 #ifndef SOSTransportCircle_h
3 #define SOSTransportCircle_h
4 #import "keychain/SecureObjectSync/SOSPeerInfo.h"
8 @interface SOSCircleStorageTransport
: NSObject
13 @
property (retain
, nonatomic
) SOSAccount
* account
;
16 -(SOSCircleStorageTransport
*) initWithAccount
:(SOSAccount
*)account
;
18 -(CFIndex
)circleGetTypeID
;
19 -(CFIndex
)getTransportType
;
20 -(SOSAccount
*)getAccount
;
22 -(bool) expireRetirementRecords
:(CFDictionaryRef
) retirements err
:(CFErrorRef
*)error
;
24 -(bool) flushChanges
:(CFErrorRef
*)error
;
25 -(bool) postCircle
:(CFStringRef
)circleName circleData
:(CFDataRef
)circle_data err
:(CFErrorRef
*)error
;
26 -(bool) postRetirement
:(CFStringRef
) circleName peer
:(SOSPeerInfoRef
) peer err
:(CFErrorRef
*)error
;
28 -(CFDictionaryRef
) CF_RETURNS_RETAINED handleRetirementMessages
:(CFMutableDictionaryRef
) circle_retirement_messages_table err
:(CFErrorRef
*)error
;
29 -(CFArrayRef
)CF_RETURNS_RETAINED handleCircleMessagesAndReturnHandledCopy
:(CFMutableDictionaryRef
) circle_circle_messages_table err
:(CFErrorRef
*)error
;