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"
44
55-- GType is an int the size of a pointer ... I don't think we can just use
66-- size_t, sadly
7- if ffi .arch == " x64" then
7+ if ffi .arch == " x64" or ffi . arch == " arm64 " then
88 ffi .cdef [[
99 typedef uint64_t GType;
1010 ]]
@@ -92,11 +92,23 @@ ffi.cdef [[
9292 // opaque
9393 } VipsObjectClass;
9494
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+
95107 typedef struct _GParamSpec {
96108 void * g_type_instance ;
97109
98110 const char * name ;
99- unsigned int flags ;
111+ GParamFlags flags ;
100112 GType value_type ;
101113 GType owner_type ;
102114
You can’t perform that action at this time.
0 commit comments