@@ -28,26 +28,29 @@ typedef struct SQLiteHandle SQLiteHandle;
28
28
typedef struct SQLiteContext SQLiteContext ;
29
29
typedef struct SQLiteValue SQLiteValue ;
30
30
31
+ NS_ASSUME_NONNULL_BEGIN
31
32
typedef int (^_SQLiteBusyHandlerCallback )(int times );
32
- int _SQLiteBusyHandler (SQLiteHandle * handle , _SQLiteBusyHandlerCallback callback );
33
+ int _SQLiteBusyHandler (SQLiteHandle * handle , _SQLiteBusyHandlerCallback __nullable callback );
33
34
34
35
typedef void (^_SQLiteTraceCallback )(const char * SQL );
35
- void _SQLiteTrace (SQLiteHandle * handle , _SQLiteTraceCallback callback );
36
+ void _SQLiteTrace (SQLiteHandle * handle , _SQLiteTraceCallback __nullable callback );
36
37
37
38
typedef void (^_SQLiteUpdateHookCallback )(int operation , const char * db , const char * table , long long rowid );
38
- void _SQLiteUpdateHook (SQLiteHandle * handle , _SQLiteUpdateHookCallback callback );
39
+ void _SQLiteUpdateHook (SQLiteHandle * handle , _SQLiteUpdateHookCallback __nullable callback );
39
40
40
41
typedef int (^_SQLiteCommitHookCallback )();
41
- void _SQLiteCommitHook (SQLiteHandle * handle , _SQLiteCommitHookCallback callback );
42
+ void _SQLiteCommitHook (SQLiteHandle * handle , _SQLiteCommitHookCallback __nullable callback );
42
43
43
44
typedef void (^_SQLiteRollbackHookCallback )();
44
- void _SQLiteRollbackHook (SQLiteHandle * handle , _SQLiteRollbackHookCallback callback );
45
+ void _SQLiteRollbackHook (SQLiteHandle * handle , _SQLiteRollbackHookCallback __nullable callback );
45
46
46
- typedef void (^_SQLiteCreateFunctionCallback )(SQLiteContext * context , int argc , SQLiteValue * * argv );
47
- int _SQLiteCreateFunction (SQLiteHandle * handle , const char * name , int argc , int deterministic , _SQLiteCreateFunctionCallback callback );
47
+ typedef void (^_SQLiteCreateFunctionCallback )(SQLiteContext * context , int argc , SQLiteValue * __nonnull * __nonnull argv );
48
+ int _SQLiteCreateFunction (SQLiteHandle * handle , const char * name , int argc , int deterministic , _SQLiteCreateFunctionCallback __nullable callback );
48
49
49
50
typedef int (^_SQLiteCreateCollationCallback )(const char * lhs , const char * rhs );
50
- int _SQLiteCreateCollation (SQLiteHandle * handle , const char * name , _SQLiteCreateCollationCallback callback );
51
+ int _SQLiteCreateCollation (SQLiteHandle * handle , const char * name , _SQLiteCreateCollationCallback __nullable callback );
52
+
53
+ typedef NSString * __nullable (^_SQLiteTokenizerNextCallback )(const char * input , int * inputOffset , int * inputLength );
54
+ int _SQLiteRegisterTokenizer (SQLiteHandle * db , const char * module , const char * tokenizer , __nullable _SQLiteTokenizerNextCallback callback );
55
+ NS_ASSUME_NONNULL_END
51
56
52
- typedef NSString * (^_SQLiteTokenizerNextCallback )(const char * input , int * inputOffset , int * inputLength );
53
- int _SQLiteRegisterTokenizer (SQLiteHandle * db , const char * module , const char * tokenizer , _SQLiteTokenizerNextCallback callback );
0 commit comments