]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/SOSCircle/SecureObjectSync/SOSGenCount.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / sec / SOSCircle / SecureObjectSync / SOSGenCount.h
diff --git a/OSX/sec/SOSCircle/SecureObjectSync/SOSGenCount.h b/OSX/sec/SOSCircle/SecureObjectSync/SOSGenCount.h
new file mode 100644 (file)
index 0000000..a256302
--- /dev/null
@@ -0,0 +1,25 @@
+//
+//  SOSGenCount.h
+//  sec
+//
+//  Created by Richard Murphy on 1/29/15.
+//
+//
+
+#ifndef _sec_SOSGenCount_
+#define _sec_SOSGenCount_
+
+#include <CoreFoundation/CoreFoundation.h>
+
+typedef CFNumberRef SOSGenCountRef;
+
+int64_t SOSGetGenerationSint(SOSGenCountRef gen);
+SOSGenCountRef SOSGenerationCreate(void);
+SOSGenCountRef SOSGenerationIncrementAndCreate(SOSGenCountRef gen);
+SOSGenCountRef SOSGenerationCopy(SOSGenCountRef gen);
+bool SOSGenerationIsOlder(SOSGenCountRef current, SOSGenCountRef proposed);
+
+void SOSGenerationCountWithDescription(SOSGenCountRef gen, void (^operation)(CFStringRef description));
+CFStringRef SOSGenerationCountCopyDescription(SOSGenCountRef gen);
+
+#endif /* defined(_sec_SOSGenCount_) */