@revizly/sharp-libvips-dev 1.0.61 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cplusplus/VError.cpp +28 -0
- package/include/expat.h +13 -6
- package/include/expat_config.h +3 -3
- package/include/ffi.h +3 -3
- package/include/gio-unix-2.0/gio/gdesktopappinfo.h +40 -23
- package/include/gio-unix-2.0/gio/gunixmounts.h +3 -3
- package/include/glib-2.0/gio/gasyncinitable.h +32 -32
- package/include/glib-2.0/gio/gasyncresult.h +4 -4
- package/include/glib-2.0/gio/gbufferedinputstream.h +28 -28
- package/include/glib-2.0/gio/gbufferedoutputstream.h +3 -3
- package/include/glib-2.0/gio/gcancellable.h +6 -6
- package/include/glib-2.0/gio/gcharsetconverter.h +3 -3
- package/include/glib-2.0/gio/gconverter.h +16 -16
- package/include/glib-2.0/gio/gdatainputstream.h +3 -3
- package/include/glib-2.0/gio/gdataoutputstream.h +25 -25
- package/include/glib-2.0/gio/gfile.h +369 -369
- package/include/glib-2.0/gio/gfileattribute.h +4 -4
- package/include/glib-2.0/gio/gfileenumerator.h +18 -18
- package/include/glib-2.0/gio/gfileinfo.h +63 -63
- package/include/glib-2.0/gio/gfileinputstream.h +11 -11
- package/include/glib-2.0/gio/gfileiostream.h +11 -11
- package/include/glib-2.0/gio/gfilemonitor.h +1 -1
- package/include/glib-2.0/gio/gfileoutputstream.h +8 -8
- package/include/glib-2.0/gio/gicon.h +1 -1
- package/include/glib-2.0/gio/ginetaddress.h +1 -1
- package/include/glib-2.0/gio/ginetaddressmask.h +5 -5
- package/include/glib-2.0/gio/ginitable.h +16 -16
- package/include/glib-2.0/gio/ginputstream.h +47 -47
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +3 -1
- package/include/glib-2.0/gio/giomodule.h +5 -5
- package/include/glib-2.0/gio/gioscheduler.h +10 -10
- package/include/glib-2.0/gio/giostream.h +16 -16
- package/include/glib-2.0/gio/giotypes.h +13 -12
- package/include/glib-2.0/gio/gloadableicon.h +13 -13
- package/include/glib-2.0/gio/gmemoryinputstream.h +1 -1
- package/include/glib-2.0/gio/gmountoperation.h +14 -14
- package/include/glib-2.0/gio/gnetworkaddress.h +5 -5
- package/include/glib-2.0/gio/gnetworkmonitor.h +10 -10
- package/include/glib-2.0/gio/gnetworkservice.h +2 -2
- package/include/glib-2.0/gio/goutputstream.h +76 -76
- package/include/glib-2.0/gio/gpollableinputstream.h +9 -9
- package/include/glib-2.0/gio/gpollableoutputstream.h +18 -18
- package/include/glib-2.0/gio/gpollableutils.h +18 -18
- package/include/glib-2.0/gio/gproxy.h +25 -25
- package/include/glib-2.0/gio/gproxyaddress.h +6 -6
- package/include/glib-2.0/gio/gproxyresolver.h +25 -25
- package/include/glib-2.0/gio/gresource.h +26 -26
- package/include/glib-2.0/gio/gseekable.h +16 -16
- package/include/glib-2.0/gio/gsimpleasyncresult.h +40 -40
- package/include/glib-2.0/gio/gsocket.h +103 -103
- package/include/glib-2.0/gio/gsocketaddress.h +2 -2
- package/include/glib-2.0/gio/gsocketaddressenumerator.h +14 -14
- package/include/glib-2.0/gio/gsocketclient.h +25 -25
- package/include/glib-2.0/gio/gsocketconnection.h +16 -16
- package/include/glib-2.0/gio/gsocketcontrolmessage.h +8 -8
- package/include/glib-2.0/gio/gsocketlistener.h +15 -15
- package/include/glib-2.0/gio/gsocketservice.h +1 -1
- package/include/glib-2.0/gio/gsrvtarget.h +3 -3
- package/include/glib-2.0/gio/gtcpconnection.h +1 -1
- package/include/glib-2.0/gio/gtcpwrapperconnection.h +1 -1
- package/include/glib-2.0/gio/gtlsbackend.h +1 -1
- package/include/glib-2.0/gio/gtlscertificate.h +10 -10
- package/include/glib-2.0/gio/gtlsclientconnection.h +5 -5
- package/include/glib-2.0/gio/gtlsconnection.h +23 -23
- package/include/glib-2.0/gio/gtlsserverconnection.h +2 -2
- package/include/glib-2.0/gio/gvfs.h +14 -14
- package/include/glib-2.0/gio/gvolume.h +8 -8
- package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
- package/include/glib-2.0/gio/gzlibcompressor.h +1 -1
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/glib/deprecated/gmain.h +1 -1
- package/include/glib-2.0/glib/deprecated/grel.h +1 -1
- package/include/glib-2.0/glib/deprecated/gthread.h +1 -1
- package/include/glib-2.0/glib/galloca.h +2 -2
- package/include/glib-2.0/glib/garray.h +56 -56
- package/include/glib-2.0/glib/gbookmarkfile.h +93 -93
- package/include/glib-2.0/glib/gconvert.h +43 -43
- package/include/glib-2.0/glib/gdataset.h +14 -14
- package/include/glib-2.0/glib/gdate.h +17 -17
- package/include/glib-2.0/glib/gdir.h +2 -2
- package/include/glib-2.0/glib/gerror.h +1 -1
- package/include/glib-2.0/glib/ghook.h +103 -103
- package/include/glib-2.0/glib/giochannel.h +90 -90
- package/include/glib-2.0/glib/gkeyfile.h +112 -111
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/glist.h +37 -37
- package/include/glib-2.0/glib/gmacros.h +84 -27
- package/include/glib-2.0/glib/gmain.h +10 -10
- package/include/glib-2.0/glib/gmappedfile.h +4 -4
- package/include/glib-2.0/glib/gmarkup.h +2 -2
- package/include/glib-2.0/glib/gmem.h +68 -68
- package/include/glib-2.0/glib/gmessages.h +14 -14
- package/include/glib-2.0/glib/gnode.h +76 -76
- package/include/glib-2.0/glib/goption.h +45 -45
- package/include/glib-2.0/glib/gpattern.h +6 -6
- package/include/glib-2.0/glib/gpoll.h +6 -6
- package/include/glib-2.0/glib/gprimes.h +2 -2
- package/include/glib-2.0/glib/gprintf.h +10 -10
- package/include/glib-2.0/glib/gqsort.h +5 -5
- package/include/glib-2.0/glib/gquark.h +9 -5
- package/include/glib-2.0/glib/gqueue.h +1 -1
- package/include/glib-2.0/glib/grand.h +12 -12
- package/include/glib-2.0/glib/gscanner.h +138 -138
- package/include/glib-2.0/glib/gslice.h +15 -15
- package/include/glib-2.0/glib/gslist.h +34 -34
- package/include/glib-2.0/glib/gspawn.h +1 -1
- package/include/glib-2.0/glib/gstdio.h +16 -10
- package/include/glib-2.0/glib/gstrfuncs.h +63 -63
- package/include/glib-2.0/glib/gtestutils.h +2 -2
- package/include/glib-2.0/glib/gtimer.h +9 -9
- package/include/glib-2.0/glib/gtree.h +3 -3
- package/include/glib-2.0/glib/gtypes.h +166 -166
- package/include/glib-2.0/glib/gutils.h +35 -33
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib-object.h +1 -1
- package/include/glib-2.0/glib.h +1 -1
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gmodule.h +12 -12
- package/include/glib-2.0/gobject/gclosure.h +82 -82
- package/include/glib-2.0/gobject/genums.h +43 -43
- package/include/glib-2.0/gobject/gmarshal.h +2 -2
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject.h +97 -97
- package/include/glib-2.0/gobject/gobjectnotifyqueue.c +12 -12
- package/include/glib-2.0/gobject/gparam.h +96 -96
- package/include/glib-2.0/gobject/gparamspecs.h +157 -157
- package/include/glib-2.0/gobject/gsignal.h +189 -189
- package/include/glib-2.0/gobject/gsourceclosure.h +1 -1
- package/include/glib-2.0/gobject/gtype.h +139 -139
- package/include/glib-2.0/gobject/gtypemodule.h +5 -5
- package/include/glib-2.0/gobject/gtypeplugin.h +32 -32
- package/include/glib-2.0/gobject/gvalue.h +34 -34
- package/include/glib-2.0/gobject/gvaluearray.h +21 -21
- package/include/glib-2.0/gobject/gvaluecollector.h +117 -117
- package/include/glib-2.0/gobject/gvaluetypes.h +74 -74
- package/include/harfbuzz/hb-font.h +22 -0
- package/include/harfbuzz/hb-ot-layout.h +11 -0
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/libimagequant.h +4 -0
- package/include/vips/VError8.h +3 -4
- package/include/vips/VImage8.h +12 -0
- package/include/vips/util.h +15 -1
- package/package.json +1 -1
- package/versions.json +5 -5
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
#error "Only <glib-object.h> can be included directly."
|
|
26
26
|
#endif
|
|
27
27
|
|
|
28
|
-
#include
|
|
28
|
+
#include <gobject/gvalue.h>
|
|
29
29
|
|
|
30
30
|
G_BEGIN_DECLS
|
|
31
31
|
|
|
@@ -36,7 +36,7 @@ G_BEGIN_DECLS
|
|
|
36
36
|
*
|
|
37
37
|
* Checks whether @type "is a" %G_TYPE_PARAM.
|
|
38
38
|
*/
|
|
39
|
-
#define G_TYPE_IS_PARAM(type)
|
|
39
|
+
#define G_TYPE_IS_PARAM(type) (G_TYPE_FUNDAMENTAL (type) == G_TYPE_PARAM)
|
|
40
40
|
/**
|
|
41
41
|
* G_PARAM_SPEC:
|
|
42
42
|
* @pspec: a valid #GParamSpec
|
|
@@ -44,7 +44,7 @@ G_BEGIN_DECLS
|
|
|
44
44
|
* Casts a derived #GParamSpec object (e.g. of type #GParamSpecInt) into
|
|
45
45
|
* a #GParamSpec object.
|
|
46
46
|
*/
|
|
47
|
-
#define G_PARAM_SPEC(pspec)
|
|
47
|
+
#define G_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM, GParamSpec))
|
|
48
48
|
/**
|
|
49
49
|
* G_IS_PARAM_SPEC:
|
|
50
50
|
* @pspec: a #GParamSpec
|
|
@@ -53,9 +53,9 @@ G_BEGIN_DECLS
|
|
|
53
53
|
* or derived.
|
|
54
54
|
*/
|
|
55
55
|
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_42
|
|
56
|
-
#define G_IS_PARAM_SPEC(pspec)
|
|
56
|
+
#define G_IS_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_FUNDAMENTAL_TYPE ((pspec), G_TYPE_PARAM))
|
|
57
57
|
#else
|
|
58
|
-
#define G_IS_PARAM_SPEC(pspec)
|
|
58
|
+
#define G_IS_PARAM_SPEC(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), G_TYPE_PARAM))
|
|
59
59
|
#endif
|
|
60
60
|
/**
|
|
61
61
|
* G_PARAM_SPEC_CLASS:
|
|
@@ -78,7 +78,7 @@ G_BEGIN_DECLS
|
|
|
78
78
|
*
|
|
79
79
|
* Retrieves the #GParamSpecClass of a #GParamSpec.
|
|
80
80
|
*/
|
|
81
|
-
#define G_PARAM_SPEC_GET_CLASS(pspec)
|
|
81
|
+
#define G_PARAM_SPEC_GET_CLASS(pspec) (G_TYPE_INSTANCE_GET_CLASS ((pspec), G_TYPE_PARAM, GParamSpecClass))
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
/* --- convenience macros --- */
|
|
@@ -88,21 +88,21 @@ G_BEGIN_DECLS
|
|
|
88
88
|
*
|
|
89
89
|
* Retrieves the #GType of this @pspec.
|
|
90
90
|
*/
|
|
91
|
-
#define G_PARAM_SPEC_TYPE(pspec)
|
|
91
|
+
#define G_PARAM_SPEC_TYPE(pspec) (G_TYPE_FROM_INSTANCE (pspec))
|
|
92
92
|
/**
|
|
93
93
|
* G_PARAM_SPEC_TYPE_NAME:
|
|
94
94
|
* @pspec: a valid #GParamSpec
|
|
95
95
|
*
|
|
96
96
|
* Retrieves the #GType name of this @pspec.
|
|
97
97
|
*/
|
|
98
|
-
#define G_PARAM_SPEC_TYPE_NAME(pspec)
|
|
98
|
+
#define G_PARAM_SPEC_TYPE_NAME(pspec) (g_type_name (G_PARAM_SPEC_TYPE (pspec)))
|
|
99
99
|
/**
|
|
100
100
|
* G_PARAM_SPEC_VALUE_TYPE:
|
|
101
101
|
* @pspec: a valid #GParamSpec
|
|
102
102
|
*
|
|
103
103
|
* Retrieves the #GType to initialize a #GValue for this parameter.
|
|
104
104
|
*/
|
|
105
|
-
#define
|
|
105
|
+
#define G_PARAM_SPEC_VALUE_TYPE(pspec) (G_PARAM_SPEC (pspec)->value_type)
|
|
106
106
|
/**
|
|
107
107
|
* G_VALUE_HOLDS_PARAM:
|
|
108
108
|
* @value: a valid #GValue structure
|
|
@@ -111,7 +111,7 @@ G_BEGIN_DECLS
|
|
|
111
111
|
*
|
|
112
112
|
* Returns: %TRUE on success.
|
|
113
113
|
*/
|
|
114
|
-
#define G_VALUE_HOLDS_PARAM(value)
|
|
114
|
+
#define G_VALUE_HOLDS_PARAM(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_PARAM))
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
/* --- flags --- */
|
|
@@ -158,13 +158,13 @@ typedef enum
|
|
|
158
158
|
G_PARAM_READABLE = 1 << 0,
|
|
159
159
|
G_PARAM_WRITABLE = 1 << 1,
|
|
160
160
|
G_PARAM_READWRITE = (G_PARAM_READABLE | G_PARAM_WRITABLE),
|
|
161
|
-
G_PARAM_CONSTRUCT
|
|
161
|
+
G_PARAM_CONSTRUCT = 1 << 2,
|
|
162
162
|
G_PARAM_CONSTRUCT_ONLY = 1 << 3,
|
|
163
163
|
G_PARAM_LAX_VALIDATION = 1 << 4,
|
|
164
|
-
G_PARAM_STATIC_NAME
|
|
164
|
+
G_PARAM_STATIC_NAME = 1 << 5,
|
|
165
165
|
G_PARAM_PRIVATE GOBJECT_DEPRECATED_ENUMERATOR_IN_2_26 = G_PARAM_STATIC_NAME,
|
|
166
|
-
G_PARAM_STATIC_NICK
|
|
167
|
-
G_PARAM_STATIC_BLURB
|
|
166
|
+
G_PARAM_STATIC_NICK = 1 << 6,
|
|
167
|
+
G_PARAM_STATIC_BLURB = 1 << 7,
|
|
168
168
|
/* User defined flags go here */
|
|
169
169
|
G_PARAM_EXPLICIT_NOTIFY = 1 << 30,
|
|
170
170
|
/* Avoid warning with -Wpedantic for gcc6 */
|
|
@@ -184,26 +184,26 @@ typedef enum
|
|
|
184
184
|
*
|
|
185
185
|
* Since 2.13.0
|
|
186
186
|
*/
|
|
187
|
-
#define
|
|
187
|
+
#define G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
|
|
188
188
|
/* bits in the range 0xffffff00 are reserved for 3rd party usage */
|
|
189
189
|
/**
|
|
190
190
|
* G_PARAM_MASK:
|
|
191
191
|
*
|
|
192
192
|
* Mask containing the bits of #GParamSpec.flags which are reserved for GLib.
|
|
193
193
|
*/
|
|
194
|
-
#define
|
|
194
|
+
#define G_PARAM_MASK (0x000000ff)
|
|
195
195
|
/**
|
|
196
196
|
* G_PARAM_USER_SHIFT:
|
|
197
197
|
*
|
|
198
198
|
* Minimum shift count to be used for user defined flags, to be stored in
|
|
199
199
|
* #GParamSpec.flags. The maximum allowed is 10.
|
|
200
200
|
*/
|
|
201
|
-
#define
|
|
201
|
+
#define G_PARAM_USER_SHIFT (8)
|
|
202
202
|
|
|
203
203
|
/* --- typedefs & structures --- */
|
|
204
204
|
typedef struct _GParamSpec GParamSpec;
|
|
205
205
|
typedef struct _GParamSpecClass GParamSpecClass;
|
|
206
|
-
typedef struct _GParameter
|
|
206
|
+
typedef struct _GParameter GParameter GOBJECT_DEPRECATED_TYPE_IN_2_54;
|
|
207
207
|
typedef struct _GParamSpecPool GParamSpecPool;
|
|
208
208
|
|
|
209
209
|
struct _GParamSpec
|
|
@@ -212,15 +212,15 @@ struct _GParamSpec
|
|
|
212
212
|
|
|
213
213
|
const gchar *name; /* interned string */
|
|
214
214
|
GParamFlags flags;
|
|
215
|
-
GType
|
|
216
|
-
GType
|
|
215
|
+
GType value_type;
|
|
216
|
+
GType owner_type; /* class or interface using this property */
|
|
217
217
|
|
|
218
218
|
/*< private >*/
|
|
219
219
|
gchar *_nick;
|
|
220
220
|
gchar *_blurb;
|
|
221
|
-
GData
|
|
221
|
+
GData *qdata;
|
|
222
222
|
guint ref_count;
|
|
223
|
-
guint
|
|
223
|
+
guint param_id; /* sort-criteria */
|
|
224
224
|
};
|
|
225
225
|
/**
|
|
226
226
|
* GParamSpecClass:
|
|
@@ -248,24 +248,24 @@ struct _GParamSpecClass
|
|
|
248
248
|
{
|
|
249
249
|
GTypeClass g_type_class;
|
|
250
250
|
|
|
251
|
-
GType
|
|
251
|
+
GType value_type;
|
|
252
252
|
|
|
253
|
-
void
|
|
253
|
+
void (*finalize) (GParamSpec *pspec);
|
|
254
254
|
|
|
255
255
|
/* GParam methods */
|
|
256
256
|
void (*value_set_default) (GParamSpec *pspec,
|
|
257
|
-
|
|
257
|
+
GValue *value);
|
|
258
258
|
gboolean (*value_validate) (GParamSpec *pspec,
|
|
259
|
-
|
|
259
|
+
GValue *value);
|
|
260
260
|
gint (*values_cmp) (GParamSpec *pspec,
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
const GValue *value1,
|
|
262
|
+
const GValue *value2);
|
|
263
263
|
|
|
264
264
|
gboolean (*value_is_valid) (GParamSpec *pspec,
|
|
265
265
|
const GValue *value);
|
|
266
266
|
|
|
267
267
|
/*< private >*/
|
|
268
|
-
gpointer
|
|
268
|
+
gpointer dummy[3];
|
|
269
269
|
};
|
|
270
270
|
/**
|
|
271
271
|
* GParameter:
|
|
@@ -286,52 +286,52 @@ struct _GParameter /* auxiliary structure for _setv() variants */
|
|
|
286
286
|
|
|
287
287
|
/* --- prototypes --- */
|
|
288
288
|
GOBJECT_AVAILABLE_IN_ALL
|
|
289
|
-
GParamSpec*
|
|
289
|
+
GParamSpec* g_param_spec_ref (GParamSpec *pspec);
|
|
290
290
|
GOBJECT_AVAILABLE_IN_ALL
|
|
291
|
-
void
|
|
291
|
+
void g_param_spec_unref (GParamSpec *pspec);
|
|
292
292
|
GOBJECT_AVAILABLE_IN_ALL
|
|
293
|
-
void
|
|
293
|
+
void g_param_spec_sink (GParamSpec *pspec);
|
|
294
294
|
GOBJECT_AVAILABLE_IN_ALL
|
|
295
|
-
GParamSpec*
|
|
295
|
+
GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec);
|
|
296
296
|
GOBJECT_AVAILABLE_IN_ALL
|
|
297
|
-
gpointer g_param_spec_get_qdata
|
|
298
|
-
|
|
297
|
+
gpointer g_param_spec_get_qdata (GParamSpec *pspec,
|
|
298
|
+
GQuark quark);
|
|
299
299
|
GOBJECT_AVAILABLE_IN_ALL
|
|
300
|
-
void g_param_spec_set_qdata
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
void g_param_spec_set_qdata (GParamSpec *pspec,
|
|
301
|
+
GQuark quark,
|
|
302
|
+
gpointer data);
|
|
303
303
|
GOBJECT_AVAILABLE_IN_ALL
|
|
304
|
-
void g_param_spec_set_qdata_full
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
304
|
+
void g_param_spec_set_qdata_full (GParamSpec *pspec,
|
|
305
|
+
GQuark quark,
|
|
306
|
+
gpointer data,
|
|
307
|
+
GDestroyNotify destroy);
|
|
308
308
|
GOBJECT_AVAILABLE_IN_ALL
|
|
309
|
-
gpointer g_param_spec_steal_qdata
|
|
310
|
-
|
|
309
|
+
gpointer g_param_spec_steal_qdata (GParamSpec *pspec,
|
|
310
|
+
GQuark quark);
|
|
311
311
|
GOBJECT_AVAILABLE_IN_ALL
|
|
312
312
|
GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec);
|
|
313
313
|
|
|
314
314
|
GOBJECT_AVAILABLE_IN_ALL
|
|
315
|
-
void
|
|
316
|
-
|
|
315
|
+
void g_param_value_set_default (GParamSpec *pspec,
|
|
316
|
+
GValue *value);
|
|
317
317
|
GOBJECT_AVAILABLE_IN_ALL
|
|
318
|
-
gboolean
|
|
319
|
-
|
|
318
|
+
gboolean g_param_value_defaults (GParamSpec *pspec,
|
|
319
|
+
const GValue *value);
|
|
320
320
|
GOBJECT_AVAILABLE_IN_ALL
|
|
321
|
-
gboolean
|
|
322
|
-
|
|
321
|
+
gboolean g_param_value_validate (GParamSpec *pspec,
|
|
322
|
+
GValue *value);
|
|
323
323
|
GOBJECT_AVAILABLE_IN_2_74
|
|
324
324
|
gboolean g_param_value_is_valid (GParamSpec *pspec,
|
|
325
325
|
const GValue *value);
|
|
326
326
|
GOBJECT_AVAILABLE_IN_ALL
|
|
327
|
-
gboolean
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
gboolean g_param_value_convert (GParamSpec *pspec,
|
|
328
|
+
const GValue *src_value,
|
|
329
|
+
GValue *dest_value,
|
|
330
|
+
gboolean strict_validation);
|
|
331
331
|
GOBJECT_AVAILABLE_IN_ALL
|
|
332
|
-
gint
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
gint g_param_values_cmp (GParamSpec *pspec,
|
|
333
|
+
const GValue *value1,
|
|
334
|
+
const GValue *value2);
|
|
335
335
|
GOBJECT_AVAILABLE_IN_ALL
|
|
336
336
|
const gchar * g_param_spec_get_name (GParamSpec *pspec);
|
|
337
337
|
GOBJECT_AVAILABLE_IN_ALL
|
|
@@ -339,8 +339,8 @@ const gchar * g_param_spec_get_nick (GParamSpec *pspec);
|
|
|
339
339
|
GOBJECT_AVAILABLE_IN_ALL
|
|
340
340
|
const gchar * g_param_spec_get_blurb (GParamSpec *pspec);
|
|
341
341
|
GOBJECT_AVAILABLE_IN_ALL
|
|
342
|
-
void g_value_set_param (GValue
|
|
343
|
-
|
|
342
|
+
void g_value_set_param (GValue *value,
|
|
343
|
+
GParamSpec *param);
|
|
344
344
|
GOBJECT_AVAILABLE_IN_ALL
|
|
345
345
|
GParamSpec* g_value_get_param (const GValue *value);
|
|
346
346
|
GOBJECT_AVAILABLE_IN_ALL
|
|
@@ -349,7 +349,7 @@ GParamSpec* g_value_dup_param (const GValue *value);
|
|
|
349
349
|
|
|
350
350
|
GOBJECT_AVAILABLE_IN_ALL
|
|
351
351
|
void g_value_take_param (GValue *value,
|
|
352
|
-
|
|
352
|
+
GParamSpec *param);
|
|
353
353
|
GOBJECT_DEPRECATED_FOR(g_value_take_param)
|
|
354
354
|
void g_value_set_param_take_ownership (GValue *value,
|
|
355
355
|
GParamSpec *param);
|
|
@@ -391,60 +391,60 @@ struct _GParamSpecTypeInfo
|
|
|
391
391
|
/* type system portion */
|
|
392
392
|
guint16 instance_size; /* obligatory */
|
|
393
393
|
guint16 n_preallocs; /* optional */
|
|
394
|
-
void
|
|
394
|
+
void (*instance_init) (GParamSpec *pspec); /* optional */
|
|
395
395
|
|
|
396
396
|
/* class portion */
|
|
397
|
-
GType value_type;
|
|
397
|
+
GType value_type; /* obligatory */
|
|
398
398
|
void (*finalize) (GParamSpec *pspec); /* optional */
|
|
399
399
|
void (*value_set_default) (GParamSpec *pspec, /* recommended */
|
|
400
|
-
|
|
400
|
+
GValue *value);
|
|
401
401
|
gboolean (*value_validate) (GParamSpec *pspec, /* optional */
|
|
402
|
-
|
|
402
|
+
GValue *value);
|
|
403
403
|
gint (*values_cmp) (GParamSpec *pspec, /* recommended */
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
const GValue *value1,
|
|
405
|
+
const GValue *value2);
|
|
406
406
|
};
|
|
407
407
|
GOBJECT_AVAILABLE_IN_ALL
|
|
408
|
-
GType
|
|
409
|
-
|
|
408
|
+
GType g_param_type_register_static (const gchar *name,
|
|
409
|
+
const GParamSpecTypeInfo *pspec_info);
|
|
410
410
|
|
|
411
411
|
GOBJECT_AVAILABLE_IN_2_66
|
|
412
412
|
gboolean g_param_spec_is_valid_name (const gchar *name);
|
|
413
413
|
|
|
414
414
|
/* For registering builtin types */
|
|
415
415
|
GType _g_param_type_register_static_constant (const gchar *name,
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
const GParamSpecTypeInfo *pspec_info,
|
|
417
|
+
GType opt_type);
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
/* --- protected --- */
|
|
421
421
|
GOBJECT_AVAILABLE_IN_ALL
|
|
422
|
-
gpointer
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
422
|
+
gpointer g_param_spec_internal (GType param_type,
|
|
423
|
+
const gchar *name,
|
|
424
|
+
const gchar *nick,
|
|
425
|
+
const gchar *blurb,
|
|
426
|
+
GParamFlags flags);
|
|
427
427
|
GOBJECT_AVAILABLE_IN_ALL
|
|
428
|
-
GParamSpecPool* g_param_spec_pool_new
|
|
428
|
+
GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing);
|
|
429
429
|
GOBJECT_AVAILABLE_IN_ALL
|
|
430
|
-
void
|
|
431
|
-
|
|
432
|
-
|
|
430
|
+
void g_param_spec_pool_insert (GParamSpecPool *pool,
|
|
431
|
+
GParamSpec *pspec,
|
|
432
|
+
GType owner_type);
|
|
433
433
|
GOBJECT_AVAILABLE_IN_ALL
|
|
434
|
-
void
|
|
435
|
-
|
|
434
|
+
void g_param_spec_pool_remove (GParamSpecPool *pool,
|
|
435
|
+
GParamSpec *pspec);
|
|
436
436
|
GOBJECT_AVAILABLE_IN_ALL
|
|
437
|
-
GParamSpec*
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
437
|
+
GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool,
|
|
438
|
+
const gchar *param_name,
|
|
439
|
+
GType owner_type,
|
|
440
|
+
gboolean walk_ancestors);
|
|
441
441
|
GOBJECT_AVAILABLE_IN_ALL
|
|
442
|
-
GList*
|
|
443
|
-
|
|
442
|
+
GList* g_param_spec_pool_list_owned (GParamSpecPool *pool,
|
|
443
|
+
GType owner_type);
|
|
444
444
|
GOBJECT_AVAILABLE_IN_ALL
|
|
445
|
-
GParamSpec**
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
|
|
446
|
+
GType owner_type,
|
|
447
|
+
guint *n_pspecs_p);
|
|
448
448
|
GOBJECT_AVAILABLE_IN_2_80
|
|
449
449
|
void g_param_spec_pool_free (GParamSpecPool *pool);
|
|
450
450
|
|
|
@@ -452,16 +452,16 @@ void g_param_spec_pool_free (GParamSpecPool *pool);
|
|
|
452
452
|
*
|
|
453
453
|
* gboolean value_validate (GParamSpec *pspec,
|
|
454
454
|
* GValue *value):
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
455
|
+
* modify value contents in the least destructive way, so
|
|
456
|
+
* that it complies with pspec's requirements (i.e.
|
|
457
|
+
* according to minimum/maximum ranges etc...). return
|
|
458
|
+
* whether modification was necessary.
|
|
459
459
|
*
|
|
460
460
|
* gint values_cmp (GParamSpec *pspec,
|
|
461
461
|
* const GValue *value1,
|
|
462
462
|
* const GValue *value2):
|
|
463
|
-
*
|
|
464
|
-
*
|
|
463
|
+
* return value1 - value2, i.e. (-1) if value1 < value2,
|
|
464
|
+
* (+1) if value1 > value2, and (0) otherwise (equality)
|
|
465
465
|
*/
|
|
466
466
|
|
|
467
467
|
G_END_DECLS
|