]> git.saurik.com Git - apple/security.git/blobdiff - sec/SOSCircle/Regressions/SOSTestDataSource.h
Security-55471.tar.gz
[apple/security.git] / sec / SOSCircle / Regressions / SOSTestDataSource.h
diff --git a/sec/SOSCircle/Regressions/SOSTestDataSource.h b/sec/SOSCircle/Regressions/SOSTestDataSource.h
new file mode 100644 (file)
index 0000000..7c0d046
--- /dev/null
@@ -0,0 +1,34 @@
+//
+//  SOSTestDataSource.h
+//  sec
+//
+//  Created by Michael Brouwer on 9/28/12.
+//
+//
+
+#ifndef _SEC_SOSTestDataSource_H_
+#define _SEC_SOSTestDataSource_H_
+
+#include <SecureObjectSync/SOSAccount.h>
+
+//
+// MARK: Data Source Functions
+//
+SOSDataSourceRef SOSTestDataSourceCreate(void);
+
+CFMutableDictionaryRef SOSTestDataSourceGetDatabase(SOSDataSourceRef data_source);
+
+SOSMergeResult SOSTestDataSourceAddObject(SOSDataSourceRef data_source, SOSObjectRef object, CFErrorRef *error);
+bool SOSTestDataSourceDeleteObject(SOSDataSourceRef data_source, CFDataRef key, CFErrorRef *error);
+
+//
+// MARK: Data Source Factory Functions
+//
+
+SOSDataSourceFactoryRef SOSTestDataSourceFactoryCreate(void);
+void SOSTestDataSourceFactoryAddDataSource(SOSDataSourceFactoryRef factory, CFStringRef name, SOSDataSourceRef ds);
+
+SOSObjectRef SOSDataSourceCreateGenericItemWithData(SOSDataSourceRef ds, CFStringRef account, CFStringRef service, bool is_tomb, CFDataRef data);
+SOSObjectRef SOSDataSourceCreateGenericItem(SOSDataSourceRef ds, CFStringRef account, CFStringRef service);
+
+#endif /* _SEC_SOSTestDataSource_H_ */