]> git.saurik.com Git - apple/security.git/blob - OSX/sec/ProjectHeaders/Security/SecureObjectSync/SOSGenCount.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / sec / ProjectHeaders / Security / SecureObjectSync / SOSGenCount.h
1 //
2 // SOSGenCount.h
3 // sec
4 //
5 // Created by Richard Murphy on 1/29/15.
6 //
7 //
8
9 #ifndef _sec_SOSGenCount_
10 #define _sec_SOSGenCount_
11
12 #include <CoreFoundation/CoreFoundation.h>
13
14 typedef CFNumberRef SOSGenCountRef;
15
16 int64_t SOSGetGenerationSint(SOSGenCountRef gen);
17 SOSGenCountRef SOSGenerationCreate(void);
18 SOSGenCountRef SOSGenerationIncrementAndCreate(SOSGenCountRef gen);
19 SOSGenCountRef SOSGenerationCopy(SOSGenCountRef gen);
20 bool SOSGenerationIsOlder(SOSGenCountRef current, SOSGenCountRef proposed);
21
22 void SOSGenerationCountWithDescription(SOSGenCountRef gen, void (^operation)(CFStringRef description));
23 CFStringRef SOSGenerationCountCopyDescription(SOSGenCountRef gen);
24
25 #endif /* defined(_sec_SOSGenCount_) */