1 2 3#ifndef sec_SOSTransportMessageKVS_h 4#define sec_SOSTransportMessageKVS_h 5#include <SecureObjectSync/SOSAccount.h> 6 7// 8// KVS Stuff 9// 10 11typedef struct __OpaqueSOSTransportMessageKVS *SOSTransportMessageKVSRef; 12 13SOSTransportMessageKVSRef SOSTransportMessageKVSCreate(SOSAccountRef account, CFStringRef circleName, CFErrorRef *error); 14 15CFStringRef SOSTransportMessageKVSGetCircleName(SOSTransportMessageKVSRef transport); 16 17 18// 19// Key interests 20// 21 22bool SOSTransportMessageSyncWithPeers(SOSTransportMessageRef transport, CFDictionaryRef circleToPeerIDs, CFErrorRef *error); 23 24bool SOSTransportMessageKVSAppendKeyInterest(SOSTransportMessageKVSRef transport, CFMutableArrayRef alwaysKeys, CFMutableArrayRef afterFirstUnlockKeys, CFMutableArrayRef unlockedKeys, CFErrorRef *localError); 25 26bool SOSTransportMessageSendMessageIfNeeded(SOSTransportMessageRef transport, CFStringRef circle_id, CFStringRef peer_id, CFErrorRef *error); 27 28#endif 29