@@ -37,51 +37,51 @@ ffi.cdef [[
37
37
38
38
int vips_enum_from_nick (const char * domain ,
39
39
GType gtype , const char * str );
40
- const char * vips_enum_nick (GType gtype , int value );
40
+ const char * vips_enum_nick (GType gtype , int value );
41
41
42
42
void g_value_set_boolean (GValue * value , int v_boolean );
43
43
void g_value_set_int (GValue * value , int i );
44
44
void g_value_set_double (GValue * value , double d );
45
45
void g_value_set_enum (GValue * value , int e );
46
46
void g_value_set_flags (GValue * value , unsigned int f );
47
- void g_value_set_string (GValue * value , const char * str );
47
+ void g_value_set_string (GValue * value , const char * str );
48
48
void vips_value_set_ref_string (GValue * value , const char * str );
49
49
void g_value_set_object (GValue * value , void * object );
50
50
void vips_value_set_array_double (GValue * value ,
51
- const double * array , int n );
51
+ const double * array , int n );
52
52
void vips_value_set_array_int (GValue * value ,
53
- const int * array , int n );
54
- void vips_value_set_array_image (GValue * value , int n );
53
+ const int * array , int n );
54
+ void vips_value_set_array_image (GValue * value , int n );
55
55
void vips_value_set_blob (GValue * value ,
56
56
void (* free_fn )(void * data ), void* data, size_t length);
57
57
void vips_value_set_blob_free (GValue * value ,
58
58
void * data , size_t length );
59
59
60
60
int g_value_get_boolean (const GValue * value );
61
- int g_value_get_int (GValue * value );
62
- double g_value_get_double (GValue * value );
63
- int g_value_get_enum (GValue * value );
64
- unsigned int g_value_get_flags (GValue * value );
65
- const char * g_value_get_string (GValue * value );
61
+ int g_value_get_int (const GValue * value );
62
+ double g_value_get_double (const GValue * value );
63
+ int g_value_get_enum (const GValue * value );
64
+ unsigned int g_value_get_flags (const GValue * value );
65
+ const char * g_value_get_string (const GValue * value );
66
66
const char * vips_value_get_ref_string (const GValue * value , size_t * length );
67
- void * g_value_get_object (GValue * value );
67
+ void * g_value_get_object (const GValue * value );
68
68
double * vips_value_get_array_double (const GValue * value , int * n );
69
69
int * vips_value_get_array_int (const GValue * value , int * n );
70
70
void * vips_value_get_blob (const GValue * value , size_t * length );
71
71
72
72
typedef struct _GObject {
73
- void * g_type_instance ;
73
+ void * g_type_instance ;
74
74
unsigned int ref_count ;
75
- void * qdata ;
75
+ void * qdata ;
76
76
} GObject;
77
77
78
78
typedef struct _VipsObject {
79
79
GObject parent_instance ;
80
80
bool constructed ;
81
81
bool static_object ;
82
- void * argument_table ;
83
- char * nickname ;
84
- char * description ;
82
+ void * argument_table ;
83
+ char * nickname ;
84
+ char * description ;
85
85
bool preclose ;
86
86
bool close ;
87
87
bool postclose ;
@@ -104,7 +104,7 @@ ffi.cdef [[
104
104
} GParamSpec;
105
105
106
106
typedef struct _VipsArgument {
107
- GParamSpec * pspec ;
107
+ GParamSpec * pspec ;
108
108
} VipsArgument;
109
109
110
110
typedef struct _VipsArgumentInstance {
@@ -128,19 +128,19 @@ ffi.cdef [[
128
128
typedef struct _VipsArgumentClass {
129
129
VipsArgument parent ;
130
130
131
- VipsObjectClass * object_class ;
131
+ VipsObjectClass * object_class ;
132
132
VipsArgumentFlags flags ;
133
133
int priority ;
134
134
uint64_t offset ;
135
135
} VipsArgumentClass;
136
136
137
137
int vips_object_get_argument (VipsObject * object ,
138
- const char * name , GParamSpec ** pspec ,
138
+ const char * name , GParamSpec ** pspec ,
139
139
VipsArgumentClass ** argument_class ,
140
140
VipsArgumentInstance ** argument_instance );
141
141
142
142
void g_object_set_property (VipsObject * object ,
143
- const char * name , GValue * value );
143
+ const char * name , const GValue * value );
144
144
void g_object_get_property (VipsObject * object ,
145
145
const char * name , GValue * value );
146
146
@@ -162,7 +162,7 @@ ffi.cdef [[
162
162
VipsImage* vips_image_new_matrix_from_array (int width , int height ,
163
163
const double * array , int size );
164
164
165
- VipsImage* vips_image_new_from_memory (const void * data , size_t size ,
165
+ VipsImage* vips_image_new_from_memory (const void * data , size_t size ,
166
166
int width , int height , int bands , int format );
167
167
unsigned char * vips_image_write_to_memory (VipsImage * image ,
168
168
size_t * size_out );
@@ -201,7 +201,7 @@ ffi.cdef [[
201
201
const char *** names , int ** flags , int * n_args );
202
202
203
203
VipsOperation* vips_cache_operation_build (VipsOperation * operation );
204
- void vips_object_unref_outputs (VipsOperation * operation );
204
+ void vips_object_unref_outputs (VipsOperation * operation );
205
205
206
206
void vips_leak_set (int leak );
207
207
void vips_cache_set_max (int max );
0 commit comments