@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
|
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
|
|
|
39
39
|
* Fundamental types are types that serve as ultimate bases for the derived types,
|
|
40
40
|
* thus they are the roots of distinct inheritance hierarchies.
|
|
41
41
|
*/
|
|
42
|
-
#define G_TYPE_FUNDAMENTAL(type)
|
|
42
|
+
#define G_TYPE_FUNDAMENTAL(type) (g_type_fundamental (type))
|
|
43
43
|
/**
|
|
44
44
|
* G_TYPE_FUNDAMENTAL_SHIFT:
|
|
45
45
|
*
|
|
@@ -52,7 +52,7 @@ G_BEGIN_DECLS
|
|
|
52
52
|
* An integer constant that represents the number of identifiers reserved
|
|
53
53
|
* for types that are assigned at compile-time.
|
|
54
54
|
*/
|
|
55
|
-
#define
|
|
55
|
+
#define G_TYPE_FUNDAMENTAL_MAX (255 << G_TYPE_FUNDAMENTAL_SHIFT)
|
|
56
56
|
|
|
57
57
|
/* Constant fundamental types,
|
|
58
58
|
*/
|
|
@@ -62,20 +62,20 @@ G_BEGIN_DECLS
|
|
|
62
62
|
* An invalid #GType used as error return value in some functions which return
|
|
63
63
|
* a #GType.
|
|
64
64
|
*/
|
|
65
|
-
#define G_TYPE_INVALID
|
|
65
|
+
#define G_TYPE_INVALID G_TYPE_MAKE_FUNDAMENTAL (0)
|
|
66
66
|
/**
|
|
67
67
|
* G_TYPE_NONE:
|
|
68
68
|
*
|
|
69
69
|
* A fundamental type which is used as a replacement for the C
|
|
70
70
|
* void return type.
|
|
71
71
|
*/
|
|
72
|
-
#define G_TYPE_NONE
|
|
72
|
+
#define G_TYPE_NONE G_TYPE_MAKE_FUNDAMENTAL (1)
|
|
73
73
|
/**
|
|
74
74
|
* G_TYPE_INTERFACE:
|
|
75
75
|
*
|
|
76
76
|
* The fundamental type from which all interfaces are derived.
|
|
77
77
|
*/
|
|
78
|
-
#define G_TYPE_INTERFACE
|
|
78
|
+
#define G_TYPE_INTERFACE G_TYPE_MAKE_FUNDAMENTAL (2)
|
|
79
79
|
/**
|
|
80
80
|
* G_TYPE_CHAR:
|
|
81
81
|
*
|
|
@@ -84,109 +84,109 @@ G_BEGIN_DECLS
|
|
|
84
84
|
* The type designated by %G_TYPE_CHAR is unconditionally an 8-bit signed integer.
|
|
85
85
|
* This may or may not be the same type a the C type "gchar".
|
|
86
86
|
*/
|
|
87
|
-
#define G_TYPE_CHAR
|
|
87
|
+
#define G_TYPE_CHAR G_TYPE_MAKE_FUNDAMENTAL (3)
|
|
88
88
|
/**
|
|
89
89
|
* G_TYPE_UCHAR:
|
|
90
90
|
*
|
|
91
91
|
* The fundamental type corresponding to #guchar.
|
|
92
92
|
*/
|
|
93
|
-
#define G_TYPE_UCHAR
|
|
93
|
+
#define G_TYPE_UCHAR G_TYPE_MAKE_FUNDAMENTAL (4)
|
|
94
94
|
/**
|
|
95
95
|
* G_TYPE_BOOLEAN:
|
|
96
96
|
*
|
|
97
97
|
* The fundamental type corresponding to #gboolean.
|
|
98
98
|
*/
|
|
99
|
-
#define G_TYPE_BOOLEAN
|
|
99
|
+
#define G_TYPE_BOOLEAN G_TYPE_MAKE_FUNDAMENTAL (5)
|
|
100
100
|
/**
|
|
101
101
|
* G_TYPE_INT:
|
|
102
102
|
*
|
|
103
103
|
* The fundamental type corresponding to #gint.
|
|
104
104
|
*/
|
|
105
|
-
#define G_TYPE_INT
|
|
105
|
+
#define G_TYPE_INT G_TYPE_MAKE_FUNDAMENTAL (6)
|
|
106
106
|
/**
|
|
107
107
|
* G_TYPE_UINT:
|
|
108
108
|
*
|
|
109
109
|
* The fundamental type corresponding to #guint.
|
|
110
110
|
*/
|
|
111
|
-
#define G_TYPE_UINT
|
|
111
|
+
#define G_TYPE_UINT G_TYPE_MAKE_FUNDAMENTAL (7)
|
|
112
112
|
/**
|
|
113
113
|
* G_TYPE_LONG:
|
|
114
114
|
*
|
|
115
115
|
* The fundamental type corresponding to #glong.
|
|
116
116
|
*/
|
|
117
|
-
#define G_TYPE_LONG
|
|
117
|
+
#define G_TYPE_LONG G_TYPE_MAKE_FUNDAMENTAL (8)
|
|
118
118
|
/**
|
|
119
119
|
* G_TYPE_ULONG:
|
|
120
120
|
*
|
|
121
121
|
* The fundamental type corresponding to #gulong.
|
|
122
122
|
*/
|
|
123
|
-
#define G_TYPE_ULONG
|
|
123
|
+
#define G_TYPE_ULONG G_TYPE_MAKE_FUNDAMENTAL (9)
|
|
124
124
|
/**
|
|
125
125
|
* G_TYPE_INT64:
|
|
126
126
|
*
|
|
127
127
|
* The fundamental type corresponding to #gint64.
|
|
128
128
|
*/
|
|
129
|
-
#define G_TYPE_INT64
|
|
129
|
+
#define G_TYPE_INT64 G_TYPE_MAKE_FUNDAMENTAL (10)
|
|
130
130
|
/**
|
|
131
131
|
* G_TYPE_UINT64:
|
|
132
132
|
*
|
|
133
133
|
* The fundamental type corresponding to #guint64.
|
|
134
134
|
*/
|
|
135
|
-
#define G_TYPE_UINT64
|
|
135
|
+
#define G_TYPE_UINT64 G_TYPE_MAKE_FUNDAMENTAL (11)
|
|
136
136
|
/**
|
|
137
137
|
* G_TYPE_ENUM:
|
|
138
138
|
*
|
|
139
139
|
* The fundamental type from which all enumeration types are derived.
|
|
140
140
|
*/
|
|
141
|
-
#define G_TYPE_ENUM
|
|
141
|
+
#define G_TYPE_ENUM G_TYPE_MAKE_FUNDAMENTAL (12)
|
|
142
142
|
/**
|
|
143
143
|
* G_TYPE_FLAGS:
|
|
144
144
|
*
|
|
145
145
|
* The fundamental type from which all flags types are derived.
|
|
146
146
|
*/
|
|
147
|
-
#define G_TYPE_FLAGS
|
|
147
|
+
#define G_TYPE_FLAGS G_TYPE_MAKE_FUNDAMENTAL (13)
|
|
148
148
|
/**
|
|
149
149
|
* G_TYPE_FLOAT:
|
|
150
150
|
*
|
|
151
151
|
* The fundamental type corresponding to #gfloat.
|
|
152
152
|
*/
|
|
153
|
-
#define G_TYPE_FLOAT
|
|
153
|
+
#define G_TYPE_FLOAT G_TYPE_MAKE_FUNDAMENTAL (14)
|
|
154
154
|
/**
|
|
155
155
|
* G_TYPE_DOUBLE:
|
|
156
156
|
*
|
|
157
157
|
* The fundamental type corresponding to #gdouble.
|
|
158
158
|
*/
|
|
159
|
-
#define G_TYPE_DOUBLE
|
|
159
|
+
#define G_TYPE_DOUBLE G_TYPE_MAKE_FUNDAMENTAL (15)
|
|
160
160
|
/**
|
|
161
161
|
* G_TYPE_STRING:
|
|
162
162
|
*
|
|
163
163
|
* The fundamental type corresponding to nul-terminated C strings.
|
|
164
164
|
*/
|
|
165
|
-
#define G_TYPE_STRING
|
|
165
|
+
#define G_TYPE_STRING G_TYPE_MAKE_FUNDAMENTAL (16)
|
|
166
166
|
/**
|
|
167
167
|
* G_TYPE_POINTER:
|
|
168
168
|
*
|
|
169
169
|
* The fundamental type corresponding to #gpointer.
|
|
170
170
|
*/
|
|
171
|
-
#define G_TYPE_POINTER
|
|
171
|
+
#define G_TYPE_POINTER G_TYPE_MAKE_FUNDAMENTAL (17)
|
|
172
172
|
/**
|
|
173
173
|
* G_TYPE_BOXED:
|
|
174
174
|
*
|
|
175
175
|
* The fundamental type from which all boxed types are derived.
|
|
176
176
|
*/
|
|
177
|
-
#define G_TYPE_BOXED
|
|
177
|
+
#define G_TYPE_BOXED G_TYPE_MAKE_FUNDAMENTAL (18)
|
|
178
178
|
/**
|
|
179
179
|
* G_TYPE_PARAM:
|
|
180
180
|
*
|
|
181
181
|
* The fundamental type from which all #GParamSpec types are derived.
|
|
182
182
|
*/
|
|
183
|
-
#define G_TYPE_PARAM
|
|
183
|
+
#define G_TYPE_PARAM G_TYPE_MAKE_FUNDAMENTAL (19)
|
|
184
184
|
/**
|
|
185
185
|
* G_TYPE_OBJECT:
|
|
186
186
|
*
|
|
187
187
|
* The fundamental type for #GObject.
|
|
188
188
|
*/
|
|
189
|
-
#define G_TYPE_OBJECT
|
|
189
|
+
#define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20)
|
|
190
190
|
/**
|
|
191
191
|
* G_TYPE_VARIANT:
|
|
192
192
|
*
|
|
@@ -204,7 +204,7 @@ G_BEGIN_DECLS
|
|
|
204
204
|
*
|
|
205
205
|
* Since: 2.26
|
|
206
206
|
*/
|
|
207
|
-
#define
|
|
207
|
+
#define G_TYPE_VARIANT G_TYPE_MAKE_FUNDAMENTAL (21)
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
/* Reserved fundamental type numbers to create new fundamental
|
|
@@ -224,40 +224,40 @@ G_BEGIN_DECLS
|
|
|
224
224
|
*
|
|
225
225
|
* Returns: the GType
|
|
226
226
|
*/
|
|
227
|
-
#define
|
|
227
|
+
#define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT))
|
|
228
228
|
/**
|
|
229
229
|
* G_TYPE_RESERVED_GLIB_FIRST:
|
|
230
230
|
*
|
|
231
231
|
* First fundamental type number to create a new fundamental type id with
|
|
232
232
|
* G_TYPE_MAKE_FUNDAMENTAL() reserved for GLib.
|
|
233
233
|
*/
|
|
234
|
-
#define G_TYPE_RESERVED_GLIB_FIRST
|
|
234
|
+
#define G_TYPE_RESERVED_GLIB_FIRST (22)
|
|
235
235
|
/**
|
|
236
236
|
* G_TYPE_RESERVED_GLIB_LAST:
|
|
237
237
|
*
|
|
238
238
|
* Last fundamental type number reserved for GLib.
|
|
239
239
|
*/
|
|
240
|
-
#define G_TYPE_RESERVED_GLIB_LAST
|
|
240
|
+
#define G_TYPE_RESERVED_GLIB_LAST (31)
|
|
241
241
|
/**
|
|
242
242
|
* G_TYPE_RESERVED_BSE_FIRST:
|
|
243
243
|
*
|
|
244
244
|
* First fundamental type number to create a new fundamental type id with
|
|
245
245
|
* G_TYPE_MAKE_FUNDAMENTAL() reserved for BSE.
|
|
246
246
|
*/
|
|
247
|
-
#define G_TYPE_RESERVED_BSE_FIRST
|
|
247
|
+
#define G_TYPE_RESERVED_BSE_FIRST (32)
|
|
248
248
|
/**
|
|
249
249
|
* G_TYPE_RESERVED_BSE_LAST:
|
|
250
250
|
*
|
|
251
251
|
* Last fundamental type number reserved for BSE.
|
|
252
252
|
*/
|
|
253
|
-
#define G_TYPE_RESERVED_BSE_LAST
|
|
253
|
+
#define G_TYPE_RESERVED_BSE_LAST (48)
|
|
254
254
|
/**
|
|
255
255
|
* G_TYPE_RESERVED_USER_FIRST:
|
|
256
256
|
*
|
|
257
257
|
* First available fundamental type number to create new fundamental
|
|
258
258
|
* type id with G_TYPE_MAKE_FUNDAMENTAL().
|
|
259
259
|
*/
|
|
260
|
-
#define G_TYPE_RESERVED_USER_FIRST
|
|
260
|
+
#define G_TYPE_RESERVED_USER_FIRST (49)
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
/* Type Checking Macros
|
|
@@ -438,7 +438,7 @@ typedef struct _GTypeInfo GTypeInfo;
|
|
|
438
438
|
typedef struct _GTypeFundamentalInfo GTypeFundamentalInfo;
|
|
439
439
|
typedef struct _GInterfaceInfo GInterfaceInfo;
|
|
440
440
|
typedef struct _GTypeValueTable GTypeValueTable;
|
|
441
|
-
typedef struct _GTypeQuery
|
|
441
|
+
typedef struct _GTypeQuery GTypeQuery;
|
|
442
442
|
|
|
443
443
|
|
|
444
444
|
/* Basic Type Structures
|
|
@@ -487,10 +487,10 @@ struct _GTypeInterface
|
|
|
487
487
|
*/
|
|
488
488
|
struct _GTypeQuery
|
|
489
489
|
{
|
|
490
|
-
GType
|
|
490
|
+
GType type;
|
|
491
491
|
const gchar *type_name;
|
|
492
|
-
guint
|
|
493
|
-
guint
|
|
492
|
+
guint class_size;
|
|
493
|
+
guint instance_size;
|
|
494
494
|
};
|
|
495
495
|
|
|
496
496
|
|
|
@@ -510,7 +510,7 @@ struct _GTypeQuery
|
|
|
510
510
|
*
|
|
511
511
|
* Returns: %TRUE if @instance is valid
|
|
512
512
|
*/
|
|
513
|
-
#define G_TYPE_CHECK_INSTANCE(instance)
|
|
513
|
+
#define G_TYPE_CHECK_INSTANCE(instance) (_G_TYPE_CHI ((GTypeInstance*) (instance)))
|
|
514
514
|
/**
|
|
515
515
|
* G_TYPE_CHECK_INSTANCE_CAST:
|
|
516
516
|
* @instance: (nullable): Location of a #GTypeInstance structure
|
|
@@ -619,7 +619,7 @@ struct _GTypeQuery
|
|
|
619
619
|
*
|
|
620
620
|
* Returns: %TRUE if @value is initialized
|
|
621
621
|
*/
|
|
622
|
-
#define G_TYPE_CHECK_VALUE(value)
|
|
622
|
+
#define G_TYPE_CHECK_VALUE(value) (_G_TYPE_CHV ((value)))
|
|
623
623
|
/**
|
|
624
624
|
* G_TYPE_CHECK_VALUE_TYPE:
|
|
625
625
|
* @value: a #GValue
|
|
@@ -632,7 +632,7 @@ struct _GTypeQuery
|
|
|
632
632
|
*
|
|
633
633
|
* Returns: %TRUE if @value has been initialized to hold values of type @g_type
|
|
634
634
|
*/
|
|
635
|
-
#define G_TYPE_CHECK_VALUE_TYPE(value, g_type)
|
|
635
|
+
#define G_TYPE_CHECK_VALUE_TYPE(value, g_type) (_G_TYPE_CVH ((value), (g_type)))
|
|
636
636
|
/**
|
|
637
637
|
* G_TYPE_FROM_INSTANCE:
|
|
638
638
|
* @instance: Location of a valid #GTypeInstance structure
|
|
@@ -721,13 +721,13 @@ struct _GTypeQuery
|
|
|
721
721
|
*
|
|
722
722
|
* Deprecated: 2.36: g_type_init() is now done automatically
|
|
723
723
|
*/
|
|
724
|
-
typedef enum
|
|
724
|
+
typedef enum /*< skip >*/
|
|
725
725
|
{
|
|
726
|
-
G_TYPE_DEBUG_NONE
|
|
727
|
-
G_TYPE_DEBUG_OBJECTS
|
|
728
|
-
G_TYPE_DEBUG_SIGNALS
|
|
726
|
+
G_TYPE_DEBUG_NONE = 0,
|
|
727
|
+
G_TYPE_DEBUG_OBJECTS = 1 << 0,
|
|
728
|
+
G_TYPE_DEBUG_SIGNALS = 1 << 1,
|
|
729
729
|
G_TYPE_DEBUG_INSTANCE_COUNT = 1 << 2,
|
|
730
|
-
G_TYPE_DEBUG_MASK
|
|
730
|
+
G_TYPE_DEBUG_MASK = 0x07
|
|
731
731
|
} G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36;
|
|
732
732
|
|
|
733
733
|
|
|
@@ -751,10 +751,10 @@ GOBJECT_AVAILABLE_IN_ALL
|
|
|
751
751
|
guint g_type_depth (GType type);
|
|
752
752
|
GOBJECT_AVAILABLE_IN_ALL
|
|
753
753
|
GType g_type_next_base (GType leaf_type,
|
|
754
|
-
|
|
754
|
+
GType root_type);
|
|
755
755
|
GOBJECT_AVAILABLE_IN_ALL
|
|
756
756
|
gboolean g_type_is_a (GType type,
|
|
757
|
-
|
|
757
|
+
GType is_a_type);
|
|
758
758
|
|
|
759
759
|
/* Hoist exact GType comparisons into the caller */
|
|
760
760
|
#define g_type_is_a(a,b) ((a) == (b) || (g_type_is_a) ((a), (b)))
|
|
@@ -773,7 +773,7 @@ GOBJECT_AVAILABLE_IN_ALL
|
|
|
773
773
|
gpointer g_type_class_peek_parent (gpointer g_class);
|
|
774
774
|
GOBJECT_AVAILABLE_IN_ALL
|
|
775
775
|
gpointer g_type_interface_peek (gpointer instance_class,
|
|
776
|
-
|
|
776
|
+
GType iface_type);
|
|
777
777
|
GOBJECT_AVAILABLE_IN_ALL
|
|
778
778
|
gpointer g_type_interface_peek_parent (gpointer g_iface);
|
|
779
779
|
|
|
@@ -789,22 +789,22 @@ void g_type_default_interface_unref (gpointer g_iface);
|
|
|
789
789
|
/* g_free() the returned arrays */
|
|
790
790
|
GOBJECT_AVAILABLE_IN_ALL
|
|
791
791
|
GType* g_type_children (GType type,
|
|
792
|
-
|
|
792
|
+
guint *n_children);
|
|
793
793
|
GOBJECT_AVAILABLE_IN_ALL
|
|
794
794
|
GType* g_type_interfaces (GType type,
|
|
795
|
-
|
|
795
|
+
guint *n_interfaces);
|
|
796
796
|
|
|
797
797
|
/* per-type _static_ data */
|
|
798
798
|
GOBJECT_AVAILABLE_IN_ALL
|
|
799
799
|
void g_type_set_qdata (GType type,
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
GQuark quark,
|
|
801
|
+
gpointer data);
|
|
802
802
|
GOBJECT_AVAILABLE_IN_ALL
|
|
803
803
|
gpointer g_type_get_qdata (GType type,
|
|
804
|
-
|
|
804
|
+
GQuark quark);
|
|
805
805
|
GOBJECT_AVAILABLE_IN_ALL
|
|
806
|
-
void
|
|
807
|
-
|
|
806
|
+
void g_type_query (GType type,
|
|
807
|
+
GTypeQuery *query);
|
|
808
808
|
|
|
809
809
|
GOBJECT_AVAILABLE_IN_2_44
|
|
810
810
|
int g_type_get_instance_count (GType type);
|
|
@@ -945,7 +945,7 @@ typedef void (*GBaseFinalizeFunc) (gpointer g_class);
|
|
|
945
945
|
* time.
|
|
946
946
|
*/
|
|
947
947
|
typedef void (*GClassInitFunc) (gpointer g_class,
|
|
948
|
-
|
|
948
|
+
gpointer class_data);
|
|
949
949
|
/**
|
|
950
950
|
* GClassFinalizeFunc:
|
|
951
951
|
* @g_class: (type GObject.TypeClass): The #GTypeClass structure to finalize
|
|
@@ -962,7 +962,7 @@ typedef void (*GClassInitFunc) (gpointer g_class,
|
|
|
962
962
|
* reference count drops to zero).
|
|
963
963
|
*/
|
|
964
964
|
typedef void (*GClassFinalizeFunc) (gpointer g_class,
|
|
965
|
-
|
|
965
|
+
gpointer class_data);
|
|
966
966
|
/**
|
|
967
967
|
* GInstanceInitFunc:
|
|
968
968
|
* @instance: The instance to initialize
|
|
@@ -984,7 +984,7 @@ typedef void (*GClassFinalizeFunc) (gpointer g_class,
|
|
|
984
984
|
* zeros before this function is called.
|
|
985
985
|
*/
|
|
986
986
|
typedef void (*GInstanceInitFunc) (GTypeInstance *instance,
|
|
987
|
-
|
|
987
|
+
gpointer g_class);
|
|
988
988
|
/**
|
|
989
989
|
* GInterfaceInitFunc:
|
|
990
990
|
* @g_iface: (type GObject.TypeInterface): The interface structure to initialize
|
|
@@ -1000,7 +1000,7 @@ typedef void (*GInstanceInitFunc) (GTypeInstance *instance,
|
|
|
1000
1000
|
* zeros before this function is called.
|
|
1001
1001
|
*/
|
|
1002
1002
|
typedef void (*GInterfaceInitFunc) (gpointer g_iface,
|
|
1003
|
-
|
|
1003
|
+
gpointer iface_data);
|
|
1004
1004
|
/**
|
|
1005
1005
|
* GInterfaceFinalizeFunc:
|
|
1006
1006
|
* @g_iface: (type GObject.TypeInterface): The interface structure to finalize
|
|
@@ -1012,7 +1012,7 @@ typedef void (*GInterfaceInitFunc) (gpointer g_iface,
|
|
|
1012
1012
|
* allocated by the corresponding GInterfaceInitFunc() function.
|
|
1013
1013
|
*/
|
|
1014
1014
|
typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface,
|
|
1015
|
-
|
|
1015
|
+
gpointer iface_data);
|
|
1016
1016
|
/**
|
|
1017
1017
|
* GTypeClassCacheFunc:
|
|
1018
1018
|
* @cache_data: data that was given to the g_type_add_class_cache_func() call
|
|
@@ -1033,8 +1033,8 @@ typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface,
|
|
|
1033
1033
|
* Returns: %TRUE to stop further #GTypeClassCacheFuncs from being
|
|
1034
1034
|
* called, %FALSE to continue
|
|
1035
1035
|
*/
|
|
1036
|
-
typedef gboolean (*GTypeClassCacheFunc)
|
|
1037
|
-
|
|
1036
|
+
typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data,
|
|
1037
|
+
GTypeClass *g_class);
|
|
1038
1038
|
/**
|
|
1039
1039
|
* GTypeInterfaceCheckFunc:
|
|
1040
1040
|
* @check_data: data passed to g_type_add_interface_check()
|
|
@@ -1047,8 +1047,8 @@ typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data,
|
|
|
1047
1047
|
*
|
|
1048
1048
|
* Since: 2.4
|
|
1049
1049
|
*/
|
|
1050
|
-
typedef void (*GTypeInterfaceCheckFunc) (gpointer
|
|
1051
|
-
|
|
1050
|
+
typedef void (*GTypeInterfaceCheckFunc) (gpointer check_data,
|
|
1051
|
+
gpointer g_iface);
|
|
1052
1052
|
/**
|
|
1053
1053
|
* GTypeFundamentalFlags:
|
|
1054
1054
|
* @G_TYPE_FLAG_CLASSED: Indicates a classed type
|
|
@@ -1148,7 +1148,7 @@ struct _GTypeInfo
|
|
|
1148
1148
|
GInstanceInitFunc instance_init;
|
|
1149
1149
|
|
|
1150
1150
|
/* value handling */
|
|
1151
|
-
const GTypeValueTable
|
|
1151
|
+
const GTypeValueTable *value_table;
|
|
1152
1152
|
};
|
|
1153
1153
|
/**
|
|
1154
1154
|
* GTypeFundamentalInfo:
|
|
@@ -1464,44 +1464,44 @@ struct _GTypeValueTable
|
|
|
1464
1464
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
1465
1465
|
|
|
1466
1466
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1467
|
-
GType g_type_register_static
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1467
|
+
GType g_type_register_static (GType parent_type,
|
|
1468
|
+
const gchar *type_name,
|
|
1469
|
+
const GTypeInfo *info,
|
|
1470
|
+
GTypeFlags flags);
|
|
1471
1471
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1472
1472
|
GType g_type_register_static_simple (GType parent_type,
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1473
|
+
const gchar *type_name,
|
|
1474
|
+
guint class_size,
|
|
1475
|
+
GClassInitFunc class_init,
|
|
1476
|
+
guint instance_size,
|
|
1477
|
+
GInstanceInitFunc instance_init,
|
|
1478
|
+
GTypeFlags flags);
|
|
1479
1479
|
|
|
1480
1480
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1481
|
-
GType g_type_register_dynamic
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1481
|
+
GType g_type_register_dynamic (GType parent_type,
|
|
1482
|
+
const gchar *type_name,
|
|
1483
|
+
GTypePlugin *plugin,
|
|
1484
|
+
GTypeFlags flags);
|
|
1485
1485
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1486
|
-
GType g_type_register_fundamental
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1486
|
+
GType g_type_register_fundamental (GType type_id,
|
|
1487
|
+
const gchar *type_name,
|
|
1488
|
+
const GTypeInfo *info,
|
|
1489
|
+
const GTypeFundamentalInfo *finfo,
|
|
1490
|
+
GTypeFlags flags);
|
|
1491
1491
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1492
|
-
void g_type_add_interface_static
|
|
1493
|
-
|
|
1494
|
-
|
|
1492
|
+
void g_type_add_interface_static (GType instance_type,
|
|
1493
|
+
GType interface_type,
|
|
1494
|
+
const GInterfaceInfo *info);
|
|
1495
1495
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1496
|
-
void g_type_add_interface_dynamic
|
|
1497
|
-
|
|
1498
|
-
|
|
1496
|
+
void g_type_add_interface_dynamic (GType instance_type,
|
|
1497
|
+
GType interface_type,
|
|
1498
|
+
GTypePlugin *plugin);
|
|
1499
1499
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1500
|
-
void g_type_interface_add_prerequisite (GType
|
|
1501
|
-
|
|
1500
|
+
void g_type_interface_add_prerequisite (GType interface_type,
|
|
1501
|
+
GType prerequisite_type);
|
|
1502
1502
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1503
1503
|
GType*g_type_interface_prerequisites (GType interface_type,
|
|
1504
|
-
|
|
1504
|
+
guint *n_prerequisites);
|
|
1505
1505
|
GOBJECT_AVAILABLE_IN_2_68
|
|
1506
1506
|
GType g_type_interface_instantiatable_prerequisite
|
|
1507
1507
|
(GType interface_type);
|
|
@@ -1519,11 +1519,11 @@ void g_type_class_adjust_private_offset (gpointer g_class,
|
|
|
1519
1519
|
gint *private_size_or_offset);
|
|
1520
1520
|
|
|
1521
1521
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1522
|
-
void g_type_add_class_private (GType
|
|
1523
|
-
|
|
1522
|
+
void g_type_add_class_private (GType class_type,
|
|
1523
|
+
gsize private_size);
|
|
1524
1524
|
GOBJECT_AVAILABLE_IN_ALL
|
|
1525
|
-
gpointer g_type_class_get_private (GTypeClass
|
|
1526
|
-
|
|
1525
|
+
gpointer g_type_class_get_private (GTypeClass *klass,
|
|
1526
|
+
GType private_type);
|
|
1527
1527
|
GOBJECT_AVAILABLE_IN_2_38
|
|
1528
1528
|
gint g_type_class_get_instance_private_offset (gpointer g_class);
|
|
1529
1529
|
|
|
@@ -1837,7 +1837,7 @@ guint g_type_get_type_registration_serial (void);
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* Since: 2.4
|
|
1839
1839
|
*/
|
|
1840
|
-
#define G_DEFINE_TYPE(TN, t_n, T_P)
|
|
1840
|
+
#define G_DEFINE_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
|
|
1841
1841
|
/**
|
|
1842
1842
|
* G_DEFINE_TYPE_WITH_CODE:
|
|
1843
1843
|
* @TN: The name of the new type, in Camel case.
|
|
@@ -1853,7 +1853,7 @@ guint g_type_get_type_registration_serial (void);
|
|
|
1853
1853
|
*
|
|
1854
1854
|
* Since: 2.4
|
|
1855
1855
|
*/
|
|
1856
|
-
#define G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_)
|
|
1856
|
+
#define G_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
|
1857
1857
|
/**
|
|
1858
1858
|
* G_DEFINE_TYPE_WITH_PRIVATE:
|
|
1859
1859
|
* @TN: The name of the new type, in Camel case.
|
|
@@ -1894,7 +1894,7 @@ guint g_type_get_type_registration_serial (void);
|
|
|
1894
1894
|
*
|
|
1895
1895
|
* Since: 2.4
|
|
1896
1896
|
*/
|
|
1897
|
-
#define G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P)
|
|
1897
|
+
#define G_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
|
|
1898
1898
|
/**
|
|
1899
1899
|
* G_DEFINE_ABSTRACT_TYPE_WITH_CODE:
|
|
1900
1900
|
* @TN: The name of the new type, in Camel case.
|
|
@@ -2056,7 +2056,7 @@ guint g_type_get_type_registration_serial (void);
|
|
|
2056
2056
|
*
|
|
2057
2057
|
* Since: 2.4
|
|
2058
2058
|
*/
|
|
2059
|
-
#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)
|
|
2059
|
+
#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
|
|
2060
2060
|
|
|
2061
2061
|
/**
|
|
2062
2062
|
* G_DEFINE_INTERFACE:
|
|
@@ -2081,7 +2081,7 @@ guint g_type_get_type_registration_serial (void);
|
|
|
2081
2081
|
*
|
|
2082
2082
|
* Since: 2.24
|
|
2083
2083
|
*/
|
|
2084
|
-
#define G_DEFINE_INTERFACE(TN, t_n, T_P)
|
|
2084
|
+
#define G_DEFINE_INTERFACE(TN, t_n, T_P) G_DEFINE_INTERFACE_WITH_CODE(TN, t_n, T_P, ;)
|
|
2085
2085
|
|
|
2086
2086
|
/**
|
|
2087
2087
|
* G_DEFINE_INTERFACE_WITH_CODE:
|
|
@@ -2319,7 +2319,7 @@ type_name##_get_type (void) \
|
|
|
2319
2319
|
{ \
|
|
2320
2320
|
GType g_define_type_id = type_name##_get_type_once (); \
|
|
2321
2321
|
_g_type_once_init_leave (&static_g_define_type_id, g_define_type_id); \
|
|
2322
|
-
}
|
|
2322
|
+
} \
|
|
2323
2323
|
return static_g_define_type_id; \
|
|
2324
2324
|
} /* closes type_name##_get_type() */ \
|
|
2325
2325
|
\
|
|
@@ -2336,9 +2336,9 @@ type_name##_get_type_once (void) \
|
|
|
2336
2336
|
(GInstanceInitFunc)(void (*)(void)) type_name##_init, \
|
|
2337
2337
|
(GTypeFlags) flags); \
|
|
2338
2338
|
{ /* custom code follows */
|
|
2339
|
-
#define _G_DEFINE_TYPE_EXTENDED_END()
|
|
2340
|
-
/* following custom code */
|
|
2341
|
-
}
|
|
2339
|
+
#define _G_DEFINE_TYPE_EXTENDED_END() \
|
|
2340
|
+
/* following custom code */ \
|
|
2341
|
+
} \
|
|
2342
2342
|
return g_define_type_id; \
|
|
2343
2343
|
} /* closes type_name##_get_type_once() */
|
|
2344
2344
|
|
|
@@ -2372,11 +2372,11 @@ type_name##_get_type (void) \
|
|
|
2372
2372
|
if (TYPE_PREREQ != G_TYPE_INVALID) \
|
|
2373
2373
|
g_type_interface_add_prerequisite (g_define_type_id, TYPE_PREREQ); \
|
|
2374
2374
|
{ /* custom code follows */
|
|
2375
|
-
#define _G_DEFINE_INTERFACE_EXTENDED_END()
|
|
2376
|
-
/* following custom code */
|
|
2377
|
-
}
|
|
2375
|
+
#define _G_DEFINE_INTERFACE_EXTENDED_END() \
|
|
2376
|
+
/* following custom code */ \
|
|
2377
|
+
} \
|
|
2378
2378
|
_g_type_once_init_leave (&static_g_define_type_id, g_define_type_id); \
|
|
2379
|
-
}
|
|
2379
|
+
} \
|
|
2380
2380
|
return static_g_define_type_id; \
|
|
2381
2381
|
} /* closes type_name##_get_type() */
|
|
2382
2382
|
|
|
@@ -2593,74 +2593,74 @@ type_name##_get_type_once (void) \
|
|
|
2593
2593
|
|
|
2594
2594
|
/* --- protected (for fundamental type implementations) --- */
|
|
2595
2595
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2596
|
-
GTypePlugin*
|
|
2596
|
+
GTypePlugin* g_type_get_plugin (GType type);
|
|
2597
2597
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2598
|
-
GTypePlugin*
|
|
2599
|
-
|
|
2598
|
+
GTypePlugin* g_type_interface_get_plugin (GType instance_type,
|
|
2599
|
+
GType interface_type);
|
|
2600
2600
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2601
|
-
GType
|
|
2601
|
+
GType g_type_fundamental_next (void);
|
|
2602
2602
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2603
|
-
GType
|
|
2603
|
+
GType g_type_fundamental (GType type_id);
|
|
2604
2604
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2605
2605
|
GTypeInstance* g_type_create_instance (GType type);
|
|
2606
2606
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2607
2607
|
void g_type_free_instance (GTypeInstance *instance);
|
|
2608
2608
|
|
|
2609
2609
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2610
|
-
void
|
|
2611
|
-
|
|
2610
|
+
void g_type_add_class_cache_func (gpointer cache_data,
|
|
2611
|
+
GTypeClassCacheFunc cache_func);
|
|
2612
2612
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2613
|
-
void
|
|
2614
|
-
|
|
2613
|
+
void g_type_remove_class_cache_func (gpointer cache_data,
|
|
2614
|
+
GTypeClassCacheFunc cache_func);
|
|
2615
2615
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2616
2616
|
void g_type_class_unref_uncached (gpointer g_class);
|
|
2617
2617
|
|
|
2618
2618
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2619
|
-
void g_type_add_interface_check (gpointer
|
|
2620
|
-
|
|
2619
|
+
void g_type_add_interface_check (gpointer check_data,
|
|
2620
|
+
GTypeInterfaceCheckFunc check_func);
|
|
2621
2621
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2622
|
-
void g_type_remove_interface_check (gpointer
|
|
2623
|
-
|
|
2622
|
+
void g_type_remove_interface_check (gpointer check_data,
|
|
2623
|
+
GTypeInterfaceCheckFunc check_func);
|
|
2624
2624
|
|
|
2625
2625
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2626
|
-
GTypeValueTable* g_type_value_table_peek (GType
|
|
2626
|
+
GTypeValueTable* g_type_value_table_peek (GType type);
|
|
2627
2627
|
|
|
2628
2628
|
|
|
2629
2629
|
/*< private >*/
|
|
2630
2630
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2631
|
-
gboolean
|
|
2631
|
+
gboolean g_type_check_instance (GTypeInstance *instance) G_GNUC_PURE;
|
|
2632
2632
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2633
2633
|
GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance,
|
|
2634
|
-
|
|
2634
|
+
GType iface_type);
|
|
2635
2635
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2636
|
-
gboolean g_type_check_instance_is_a
|
|
2637
|
-
|
|
2636
|
+
gboolean g_type_check_instance_is_a (GTypeInstance *instance,
|
|
2637
|
+
GType iface_type) G_GNUC_PURE;
|
|
2638
2638
|
GOBJECT_AVAILABLE_IN_2_42
|
|
2639
2639
|
gboolean g_type_check_instance_is_fundamentally_a (GTypeInstance *instance,
|
|
2640
2640
|
GType fundamental_type) G_GNUC_PURE;
|
|
2641
2641
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2642
2642
|
GTypeClass* g_type_check_class_cast (GTypeClass *g_class,
|
|
2643
|
-
|
|
2643
|
+
GType is_a_type);
|
|
2644
2644
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2645
2645
|
gboolean g_type_check_class_is_a (GTypeClass *g_class,
|
|
2646
|
-
|
|
2646
|
+
GType is_a_type) G_GNUC_PURE;
|
|
2647
2647
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2648
|
-
gboolean
|
|
2648
|
+
gboolean g_type_check_is_value_type (GType type) G_GNUC_PURE;
|
|
2649
2649
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2650
|
-
gboolean
|
|
2650
|
+
gboolean g_type_check_value (const GValue *value) G_GNUC_PURE;
|
|
2651
2651
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2652
|
-
gboolean
|
|
2653
|
-
|
|
2652
|
+
gboolean g_type_check_value_holds (const GValue *value,
|
|
2653
|
+
GType type) G_GNUC_PURE;
|
|
2654
2654
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2655
2655
|
gboolean g_type_test_flags (GType type,
|
|
2656
|
-
|
|
2656
|
+
guint flags) G_GNUC_PURE;
|
|
2657
2657
|
|
|
2658
2658
|
|
|
2659
2659
|
/* --- debugging functions --- */
|
|
2660
2660
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2661
|
-
const gchar * g_type_name_from_instance (GTypeInstance
|
|
2661
|
+
const gchar * g_type_name_from_instance (GTypeInstance *instance);
|
|
2662
2662
|
GOBJECT_AVAILABLE_IN_ALL
|
|
2663
|
-
const gchar * g_type_name_from_class (GTypeClass
|
|
2663
|
+
const gchar * g_type_name_from_class (GTypeClass *g_class);
|
|
2664
2664
|
|
|
2665
2665
|
|
|
2666
2666
|
/* --- implementation bits --- */
|
|
@@ -2674,12 +2674,12 @@ const gchar * g_type_name_from_class (GTypeClass *g_class);
|
|
|
2674
2674
|
((ct*) (void *) g_type_check_class_cast ((GTypeClass*) cp, gt))
|
|
2675
2675
|
#endif
|
|
2676
2676
|
|
|
2677
|
-
#define _G_TYPE_CHI(ip)
|
|
2678
|
-
#define _G_TYPE_CHV(vl)
|
|
2677
|
+
#define _G_TYPE_CHI(ip) (g_type_check_instance ((GTypeInstance*) ip))
|
|
2678
|
+
#define _G_TYPE_CHV(vl) (g_type_check_value ((GValue*) vl))
|
|
2679
2679
|
#define _G_TYPE_IGC(ip, gt, ct) ((ct*) (((GTypeInstance*) ip)->g_class))
|
|
2680
2680
|
#define _G_TYPE_IGI(ip, gt, ct) ((ct*) g_type_interface_peek (((GTypeInstance*) ip)->g_class, gt))
|
|
2681
2681
|
#define _G_TYPE_CIFT(ip, ft) (g_type_check_instance_is_fundamentally_a ((GTypeInstance*) ip, ft))
|
|
2682
|
-
#ifdef
|
|
2682
|
+
#ifdef __GNUC__
|
|
2683
2683
|
# define _G_TYPE_CIT(ip, gt) (G_GNUC_EXTENSION ({ \
|
|
2684
2684
|
GTypeInstance *_inst = (GTypeInstance*) ip; GType _t = gt; gboolean _r; \
|
|
2685
2685
|
if (!_inst) \
|
|
@@ -2704,7 +2704,7 @@ const gchar * g_type_name_from_class (GTypeClass *g_class);
|
|
|
2704
2704
|
const GValue *_val = (const GValue*) vl; GType _t = gt; gboolean _r; \
|
|
2705
2705
|
if (!_val) \
|
|
2706
2706
|
_r = FALSE; \
|
|
2707
|
-
else if (_val->g_type == _t)
|
|
2707
|
+
else if (_val->g_type == _t) \
|
|
2708
2708
|
_r = TRUE; \
|
|
2709
2709
|
else \
|
|
2710
2710
|
_r = g_type_check_value_holds (_val, _t); \
|
|
@@ -2720,7 +2720,7 @@ const gchar * g_type_name_from_class (GTypeClass *g_class);
|
|
|
2720
2720
|
*
|
|
2721
2721
|
* A bit in the type number that's supposed to be left untouched.
|
|
2722
2722
|
*/
|
|
2723
|
-
#define
|
|
2723
|
+
#define G_TYPE_FLAG_RESERVED_ID_BIT ((GType) (1 << 0))
|
|
2724
2724
|
|
|
2725
2725
|
/**
|
|
2726
2726
|
* GPOINTER_TO_TYPE:
|