@@ -9,66 +9,65 @@ import 'dart:ffi';
99import  'package:ffi/ffi.dart' ;
1010
1111// int preference_set_int (const char *key, int value) 
12- typedef  preference_set_int_native_t =  Int32  Function (
13-     Pointer <Utf8 > key, Int32  value);
12+ typedef  PreferenceSetIntNative  =  Int32  Function (Pointer <Utf8 > key, Int32  value);
1413typedef  PreferenceSetInt  =  int  Function (Pointer <Utf8 > key, int  value);
1514
1615// int preference_get_int (const char *key, int *value) 
17- typedef  preference_get_int_native_t  =  Int32  Function (
16+ typedef  PreferenceGetIntNative  =  Int32  Function (
1817    Pointer <Utf8 > key, Pointer <Int32 > value);
1918typedef  PreferenceGetInt  =  int  Function (
2019    Pointer <Utf8 > key, Pointer <Int32 > value);
2120
2221// int preference_set_double (const char *key, double value) 
23- typedef  preference_set_double_native_t  =  Int32  Function (
22+ typedef  PreferenceSetDoubleNative  =  Int32  Function (
2423    Pointer <Utf8 > key, Double  value);
2524typedef  PreferenceSetDouble  =  int  Function (Pointer <Utf8 > key, double  value);
2625
2726// int preference_get_double (const char *key, double *value) 
28- typedef  preference_get_double_native_t  =  Int32  Function (
27+ typedef  PreferenceGetDoubleNative  =  Int32  Function (
2928    Pointer <Utf8 > key, Pointer <Double > value);
3029typedef  PreferenceGetDouble  =  int  Function (
3130    Pointer <Utf8 > key, Pointer <Double > value);
3231
3332// int preference_set_string (const char *key, const char *value) 
34- typedef  preference_set_string_native_t  =  Int32  Function (
33+ typedef  PreferenceSetStringNative  =  Int32  Function (
3534    Pointer <Utf8 > key, Pointer <Utf8 > value);
3635typedef  PreferenceSetString  =  int  Function (
3736    Pointer <Utf8 > key, Pointer <Utf8 > value);
3837
3938// int preference_get_string (const char *key, char **value) 
40- typedef  preference_get_string_native_t  =  Int32  Function (
39+ typedef  PreferenceGetStringNative  =  Int32  Function (
4140    Pointer <Utf8 > key, Pointer <Pointer <Utf8 >> value);
4241typedef  PreferenceGetString  =  int  Function (
4342    Pointer <Utf8 > key, Pointer <Pointer <Utf8 >> value);
4443
4544// int preference_set_boolean (const char *key, bool value) 
46- typedef  preference_set_boolean_native_t  =  Int32  Function (
45+ typedef  PreferenceSetBooleanNative  =  Int32  Function (
4746    Pointer <Utf8 > key, Int8  value);
4847typedef  PreferenceSetBoolean  =  int  Function (Pointer <Utf8 > key, int  value);
4948
5049// int preference_get_boolean (const char *key, bool *value) 
51- typedef  preference_get_boolean_native_t  =  Int32  Function (
50+ typedef  PreferenceGetBooleanNative  =  Int32  Function (
5251    Pointer <Utf8 > key, Pointer <Int8 > value);
5352typedef  PreferenceGetBoolean  =  int  Function (
5453    Pointer <Utf8 > key, Pointer <Int8 > value);
5554
5655// int preference_remove (const char *key) 
57- typedef  preference_remove_native_t  =  Int32  Function (Pointer <Utf8 > key);
56+ typedef  PreferenceRemoveNative  =  Int32  Function (Pointer <Utf8 > key);
5857typedef  PreferenceRemove  =  int  Function (Pointer <Utf8 > key);
5958
6059// int preference_remove_all (void) 
61- typedef  preference_remove_all_native_t  =  Int32  Function ();
60+ typedef  PreferenceRemoveAllNative  =  Int32  Function ();
6261typedef  PreferenceRemoveAll  =  int  Function ();
6362
6463// typedef bool(* preference_item_cb )(const char *key, void *user_data) 
65- typedef  preference_item_cb_native_t  =  Int8  Function (
64+ typedef  PreferenceItemCallbackNative  =  Int8  Function (
6665    Pointer <Utf8 > key, Pointer <Void > userData);
6766
6867// int preference_foreach_item (preference_item_cb callback, void *user_data) 
69- typedef  preference_foreach_item_native_t  =  Int32  Function (
70-     Pointer <NativeFunction <preference_item_cb_native_t >> callback,
68+ typedef  PreferenceForeachItemNative  =  Int32  Function (
69+     Pointer <NativeFunction <PreferenceItemCallbackNative >> callback,
7170    Pointer <Void > userData);
7271typedef  PreferenceForeachItem  =  int  Function (
73-     Pointer <NativeFunction <preference_item_cb_native_t >> callback,
72+     Pointer <NativeFunction <PreferenceItemCallbackNative >> callback,
7473    Pointer <Void > userData);
0 commit comments