SOSGenCount.h   [plain text]


//
//  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_) */