2 // SOSAccountTrustClassic+Expansion_h
7 #ifndef SOSAccountTrustClassic_Expansion_h
8 #define SOSAccountTrustClassic_Expansion_h
11 #import "keychain/SecureObjectSync/SOSAccountTrustClassic.h"
13 #include <Security/SecureObjectSync/SOSViews.h>
14 #import "keychain/SecureObjectSync/SOSTransportCircleKVS.h"
16 @interface
SOSAccountTrustClassic (Expansion
)
18 //Expansion Dictionary
20 -(bool) updateV2Dictionary
:(SOSAccount
*)account v2
:(CFDictionaryRef
) newV2Dict
;
21 -(bool) handleUpdateRing
:(SOSAccount
*)account prospectiveRing
:(SOSRingRef
)prospectiveRing transport
:(SOSKVSCircleStorageTransport
*)circleTransport userPublicKey
:(SecKeyRef
)userPublic writeUpdate
:(bool)writeUpdate err
:(CFErrorRef
*)error
;
22 -(bool) resetRing
:(SOSAccount
*)account ringName
:(CFStringRef
) ringName err
:(CFErrorRef
*)error
;
23 -(bool) resetAccountToEmpty
:(SOSAccount
*)account transport
: (SOSCircleStorageTransport
*)circleTransport err
:(CFErrorRef
*) error
;
25 -(SOSRingRef
) copyRing
:(CFStringRef
) ringName err
:(CFErrorRef
*)error
;
26 -(CFMutableDictionaryRef
) getRings
:(CFErrorRef
*)error
;
27 -(bool) forEachRing
:(RingNameBlock
)block
;
28 -(bool) setRing
:(SOSRingRef
) addRing ringName
:(CFStringRef
) ringName err
:(CFErrorRef
*)error
;
30 -(bool) ensureExpansion
:(CFErrorRef
*)error
;
31 -(bool) clearValueFromExpansion
:(CFStringRef
) key err
:(CFErrorRef
*)error
;
32 -(bool) setValueInExpansion
:(CFStringRef
) key value
:(CFTypeRef
) value err
:(CFErrorRef
*)error
;
33 -(CFTypeRef
) getValueFromExpansion
:(CFStringRef
)key err
:(CFErrorRef
*)error
;
34 -(void) setRings
:(CFMutableDictionaryRef
) newrings
;
35 -(bool) valueSetContainsValue
:(CFStringRef
) key value
:(CFTypeRef
) value
;
36 -(void) valueUnionWith
:(CFStringRef
) key valuesToUnion
:(CFSetRef
) valuesToUnion
;
37 -(void) valueSubtractFrom
:(CFStringRef
) key valuesToSubtract
:(CFSetRef
) valuesToSubtract
;
38 -(void) pendEnableViewSet
:(CFSetRef
) enabledViews
;
39 -(bool) resetAllRings
:(SOSAccount
*)account err
:(CFErrorRef
*)error
;
40 -(bool) checkForRings
:(CFErrorRef
*)error
;
44 #endif /* SOSAccountTrustClassic_Expansion_h */