]> git.saurik.com Git - apple/security.git/blob - sec/SOSCircle/Regressions/SOSTestDataSource.h
Security-55471.tar.gz
[apple/security.git] / sec / SOSCircle / Regressions / SOSTestDataSource.h
1 //
2 // SOSTestDataSource.h
3 // sec
4 //
5 // Created by Michael Brouwer on 9/28/12.
6 //
7 //
8
9 #ifndef _SEC_SOSTestDataSource_H_
10 #define _SEC_SOSTestDataSource_H_
11
12 #include <SecureObjectSync/SOSAccount.h>
13
14 //
15 // MARK: Data Source Functions
16 //
17 SOSDataSourceRef SOSTestDataSourceCreate(void);
18
19 CFMutableDictionaryRef SOSTestDataSourceGetDatabase(SOSDataSourceRef data_source);
20
21 SOSMergeResult SOSTestDataSourceAddObject(SOSDataSourceRef data_source, SOSObjectRef object, CFErrorRef *error);
22 bool SOSTestDataSourceDeleteObject(SOSDataSourceRef data_source, CFDataRef key, CFErrorRef *error);
23
24 //
25 // MARK: Data Source Factory Functions
26 //
27
28 SOSDataSourceFactoryRef SOSTestDataSourceFactoryCreate(void);
29 void SOSTestDataSourceFactoryAddDataSource(SOSDataSourceFactoryRef factory, CFStringRef name, SOSDataSourceRef ds);
30
31 SOSObjectRef SOSDataSourceCreateGenericItemWithData(SOSDataSourceRef ds, CFStringRef account, CFStringRef service, bool is_tomb, CFDataRef data);
32 SOSObjectRef SOSDataSourceCreateGenericItem(SOSDataSourceRef ds, CFStringRef account, CFStringRef service);
33
34 #endif /* _SEC_SOSTestDataSource_H_ */