/ keychain / SecureObjectSync / SOSAccountGhost.h
SOSAccountGhost.h
 1  //
 2  //  SOSAccountGhost.h
 3  //  sec
 4  //
 5  //
 6  //
 7  
 8  #ifndef SOSAccountGhost_h
 9  #define SOSAccountGhost_h
10  
11  #include "SOSAccount.h"
12  #include "keychain/SecureObjectSync/SOSTypes.h"
13  
14  #define GHOSTBUST_PERIODIC 1
15  
16  bool SOSAccountGhostResultsInReset(SOSAccount* account);
17  CF_RETURNS_RETAINED SOSCircleRef SOSAccountCloneCircleWithoutMyGhosts(SOSAccount* account, SOSCircleRef startCircle);
18  
19  #if __OBJC__
20  @class SOSAuthKitHelpers;
21  
22  /*
23   * Ghostbust devices that are not in circle
24   *
25   * @param account account to operate on
26   * @param akh injection of parameters
27   * @param mincount if circle is smaller the
28   *
29   * @return true if there was a device busted
30   */
31  
32  bool SOSAccountGhostBustCircle(SOSAccount *account, SOSAuthKitHelpers *akh, SOSAccountGhostBustingOptions options, int mincount);
33  
34  #endif
35  
36  #endif /* SOSAccountGhost_h */