@@ -9,66 +9,65 @@ import 'dart:ffi';
9
9
import 'package:ffi/ffi.dart' ;
10
10
11
11
// 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);
14
13
typedef PreferenceSetInt = int Function (Pointer <Utf8 > key, int value);
15
14
16
15
// int preference_get_int (const char *key, int *value)
17
- typedef preference_get_int_native_t = Int32 Function (
16
+ typedef PreferenceGetIntNative = Int32 Function (
18
17
Pointer <Utf8 > key, Pointer <Int32 > value);
19
18
typedef PreferenceGetInt = int Function (
20
19
Pointer <Utf8 > key, Pointer <Int32 > value);
21
20
22
21
// int preference_set_double (const char *key, double value)
23
- typedef preference_set_double_native_t = Int32 Function (
22
+ typedef PreferenceSetDoubleNative = Int32 Function (
24
23
Pointer <Utf8 > key, Double value);
25
24
typedef PreferenceSetDouble = int Function (Pointer <Utf8 > key, double value);
26
25
27
26
// int preference_get_double (const char *key, double *value)
28
- typedef preference_get_double_native_t = Int32 Function (
27
+ typedef PreferenceGetDoubleNative = Int32 Function (
29
28
Pointer <Utf8 > key, Pointer <Double > value);
30
29
typedef PreferenceGetDouble = int Function (
31
30
Pointer <Utf8 > key, Pointer <Double > value);
32
31
33
32
// int preference_set_string (const char *key, const char *value)
34
- typedef preference_set_string_native_t = Int32 Function (
33
+ typedef PreferenceSetStringNative = Int32 Function (
35
34
Pointer <Utf8 > key, Pointer <Utf8 > value);
36
35
typedef PreferenceSetString = int Function (
37
36
Pointer <Utf8 > key, Pointer <Utf8 > value);
38
37
39
38
// int preference_get_string (const char *key, char **value)
40
- typedef preference_get_string_native_t = Int32 Function (
39
+ typedef PreferenceGetStringNative = Int32 Function (
41
40
Pointer <Utf8 > key, Pointer <Pointer <Utf8 >> value);
42
41
typedef PreferenceGetString = int Function (
43
42
Pointer <Utf8 > key, Pointer <Pointer <Utf8 >> value);
44
43
45
44
// int preference_set_boolean (const char *key, bool value)
46
- typedef preference_set_boolean_native_t = Int32 Function (
45
+ typedef PreferenceSetBooleanNative = Int32 Function (
47
46
Pointer <Utf8 > key, Int8 value);
48
47
typedef PreferenceSetBoolean = int Function (Pointer <Utf8 > key, int value);
49
48
50
49
// int preference_get_boolean (const char *key, bool *value)
51
- typedef preference_get_boolean_native_t = Int32 Function (
50
+ typedef PreferenceGetBooleanNative = Int32 Function (
52
51
Pointer <Utf8 > key, Pointer <Int8 > value);
53
52
typedef PreferenceGetBoolean = int Function (
54
53
Pointer <Utf8 > key, Pointer <Int8 > value);
55
54
56
55
// 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);
58
57
typedef PreferenceRemove = int Function (Pointer <Utf8 > key);
59
58
60
59
// int preference_remove_all (void)
61
- typedef preference_remove_all_native_t = Int32 Function ();
60
+ typedef PreferenceRemoveAllNative = Int32 Function ();
62
61
typedef PreferenceRemoveAll = int Function ();
63
62
64
63
// 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 (
66
65
Pointer <Utf8 > key, Pointer <Void > userData);
67
66
68
67
// 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,
71
70
Pointer <Void > userData);
72
71
typedef PreferenceForeachItem = int Function (
73
- Pointer <NativeFunction <preference_item_cb_native_t >> callback,
72
+ Pointer <NativeFunction <PreferenceItemCallbackNative >> callback,
74
73
Pointer <Void > userData);
0 commit comments