X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/8a50f688fe9358387648fb83fbfecbefe8d32669..2973440143693ed88ec4a84745ea02f47376daa1:/Analytics/SQLite/SFSQLite.h diff --git a/Analytics/SQLite/SFSQLite.h b/Analytics/SQLite/SFSQLite.h index cb6a80df..4eda2730 100644 --- a/Analytics/SQLite/SFSQLite.h +++ b/Analytics/SQLite/SFSQLite.h @@ -23,6 +23,8 @@ // Header exposed for unit testing only +#if __OBJC2__ + #import #import @@ -39,7 +41,7 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) { SFSQLiteSynchronousModeFull = 2 }; -@protocol SFSQLiteDelegate +@protocol SFSQLiteDelegate @property (nonatomic, readonly) SInt32 userVersion; - (BOOL)migrateDatabase:(SFSQLite *)db fromVersion:(SInt32)version; @@ -47,6 +49,7 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) { // Wrapper around the SQLite API. Typically subclassed to add table accessor methods. @interface SFSQLite : NSObject { +@private id _delegate; NSString* _path; NSString* _schema; @@ -147,3 +150,5 @@ typedef NS_ENUM(NSInteger, SFSQLiteSynchronousMode) { - (SInt32)dbUserVersion; @end + +#endif