File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ local ffi = require "ffi"
4
4
5
5
-- GType is an int the size of a pointer ... I don't think we can just use
6
6
-- size_t, sadly
7
- if ffi .arch == " x64" then
7
+ if ffi .arch == " x64" or ffi . arch == " arm64 " then
8
8
ffi .cdef [[
9
9
typedef uint64_t GType;
10
10
]]
@@ -92,11 +92,23 @@ ffi.cdef [[
92
92
// opaque
93
93
} VipsObjectClass;
94
94
95
+ typedef enum {
96
+ G_PARAM_READABLE = 1 ,
97
+ G_PARAM_WRITABLE = 2 ,
98
+ G_PARAM_CONSTRUCT = 4 ,
99
+ G_PARAM_CONSTRUCT_ONLY = 8 ,
100
+ G_PARAM_LAX_VALIDATION = 16 ,
101
+ G_PARAM_STATIC_NAME = 32 ,
102
+ G_PARAM_PRIVATE = G_PARAM_STATIC_NAME ,
103
+ G_PARAM_STATIC_NICK = 64 ,
104
+ G_PARAM_STATIC_BLURB = 128
105
+ } GParamFlags;
106
+
95
107
typedef struct _GParamSpec {
96
108
void * g_type_instance ;
97
109
98
110
const char * name ;
99
- unsigned int flags ;
111
+ GParamFlags flags ;
100
112
GType value_type ;
101
113
GType owner_type ;
102
114
You can’t perform that action at this time.
0 commit comments