@img/sharp-libvips-dev-wasm32 1.0.4 → 1.0.6

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.
Files changed (135) hide show
  1. package/include/aom/aom.h +1 -1
  2. package/include/aom/aom_codec.h +4 -4
  3. package/include/aom/aom_decoder.h +2 -2
  4. package/include/aom/aom_encoder.h +10 -2
  5. package/include/aom/aom_external_partition.h +1 -1
  6. package/include/aom/aom_frame_buffer.h +1 -1
  7. package/include/aom/aom_image.h +25 -13
  8. package/include/aom/aom_integer.h +4 -12
  9. package/include/aom/aomcx.h +62 -4
  10. package/include/aom/aomdx.h +6 -3
  11. package/include/cgif.h +3 -0
  12. package/include/expat.h +1 -1
  13. package/include/expat_config.h +3 -6
  14. package/include/glib-2.0/gio/gappinfo.h +40 -25
  15. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  16. package/include/glib-2.0/gio/gconverter.h +5 -0
  17. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  18. package/include/glib-2.0/gio/gfile.h +16 -0
  19. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  20. package/include/glib-2.0/gio/gioenums.h +2 -2
  21. package/include/glib-2.0/gio/gsettings.h +8 -0
  22. package/include/glib-2.0/gio/gvfs.h +2 -2
  23. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  24. package/include/glib-2.0/glib/giochannel.h +2 -2
  25. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  26. package/include/glib-2.0/glib/gmacros.h +12 -5
  27. package/include/glib-2.0/glib/gmain.h +145 -54
  28. package/include/glib-2.0/glib/gqsort.h +8 -1
  29. package/include/glib-2.0/glib/gstrfuncs.h +0 -12
  30. package/include/glib-2.0/glib/gstring.h +4 -0
  31. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  32. package/include/glib-2.0/glib/gunicode.h +1 -1
  33. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  34. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  35. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  36. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +2 -2
  37. package/include/glib-2.0/gobject/gtype.h +6 -6
  38. package/include/hwy/abort.h +28 -0
  39. package/include/hwy/aligned_allocator.h +48 -1
  40. package/include/hwy/base.h +235 -34
  41. package/include/hwy/detect_compiler_arch.h +84 -10
  42. package/include/hwy/detect_targets.h +95 -29
  43. package/include/hwy/foreach_target.h +12 -1
  44. package/include/hwy/highway.h +205 -50
  45. package/include/hwy/ops/arm_neon-inl.h +841 -99
  46. package/include/hwy/ops/arm_sve-inl.h +413 -141
  47. package/include/hwy/ops/emu128-inl.h +373 -360
  48. package/include/hwy/ops/generic_ops-inl.h +804 -401
  49. package/include/hwy/ops/inside-inl.h +691 -0
  50. package/include/hwy/ops/ppc_vsx-inl.h +456 -166
  51. package/include/hwy/ops/rvv-inl.h +537 -249
  52. package/include/hwy/ops/scalar-inl.h +169 -79
  53. package/include/hwy/ops/set_macros-inl.h +106 -18
  54. package/include/hwy/ops/shared-inl.h +23 -0
  55. package/include/hwy/ops/wasm_128-inl.h +130 -108
  56. package/include/hwy/ops/x86_128-inl.h +1892 -577
  57. package/include/hwy/ops/x86_256-inl.h +625 -184
  58. package/include/hwy/ops/x86_512-inl.h +733 -131
  59. package/include/hwy/targets.h +22 -21
  60. package/include/hwy/timer-inl.h +3 -3
  61. package/include/hwy/timer.h +5 -1
  62. package/include/libheif/heif.h +170 -15
  63. package/include/libheif/heif_items.h +237 -0
  64. package/include/libheif/heif_properties.h +38 -2
  65. package/include/libheif/heif_regions.h +1 -1
  66. package/include/libheif/heif_version.h +2 -2
  67. package/include/resvg.h +16 -9
  68. package/include/tiffio.h +11 -11
  69. package/include/tiffvers.h +4 -4
  70. package/include/vips/util.h +1 -2
  71. package/include/vips/version.h +4 -4
  72. package/include/webp/decode.h +58 -56
  73. package/include/webp/demux.h +25 -21
  74. package/include/webp/encode.h +44 -39
  75. package/include/webp/mux.h +76 -15
  76. package/include/webp/mux_types.h +2 -1
  77. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  78. package/include/webp/types.h +29 -8
  79. package/include/zconf.h +1 -1
  80. package/include/zlib.h +12 -12
  81. package/lib/glib-2.0/include/glibconfig.h +2 -2
  82. package/lib/libaom.a +0 -0
  83. package/lib/libcgif.a +0 -0
  84. package/lib/libexif.a +0 -0
  85. package/lib/libexpat.a +0 -0
  86. package/lib/libexpat.la +1 -1
  87. package/lib/libffi.a +0 -0
  88. package/lib/libgio-2.0.a +0 -0
  89. package/lib/libglib-2.0.a +0 -0
  90. package/lib/libgmodule-2.0.a +0 -0
  91. package/lib/libgobject-2.0.a +0 -0
  92. package/lib/libgthread-2.0.a +0 -0
  93. package/lib/libheif.a +0 -0
  94. package/lib/libhwy.a +0 -0
  95. package/lib/libimagequant.a +0 -0
  96. package/lib/libjpeg.a +0 -0
  97. package/lib/liblcms2.a +0 -0
  98. package/lib/libresvg.a +0 -0
  99. package/lib/libsharpyuv.a +0 -0
  100. package/lib/libsharpyuv.la +4 -4
  101. package/lib/libspng.a +0 -0
  102. package/lib/libtiff.a +0 -0
  103. package/lib/libtiff.la +3 -3
  104. package/lib/libvips-cpp.a +0 -0
  105. package/lib/libvips.a +0 -0
  106. package/lib/libwebp.a +0 -0
  107. package/lib/libwebp.la +2 -2
  108. package/lib/libwebpdemux.a +0 -0
  109. package/lib/libwebpdemux.la +2 -2
  110. package/lib/libwebpmux.a +0 -0
  111. package/lib/libwebpmux.la +4 -4
  112. package/lib/libz.a +0 -0
  113. package/lib/pkgconfig/aom.pc +2 -2
  114. package/lib/pkgconfig/cgif.pc +1 -1
  115. package/lib/pkgconfig/expat.pc +1 -1
  116. package/lib/pkgconfig/gio-2.0.pc +1 -1
  117. package/lib/pkgconfig/glib-2.0.pc +1 -1
  118. package/lib/pkgconfig/gmodule-2.0.pc +1 -1
  119. package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  120. package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  121. package/lib/pkgconfig/gobject-2.0.pc +1 -1
  122. package/lib/pkgconfig/gthread-2.0.pc +1 -1
  123. package/lib/pkgconfig/libheif.pc +1 -10
  124. package/lib/pkgconfig/libhwy.pc +1 -1
  125. package/lib/pkgconfig/libjpeg.pc +3 -3
  126. package/lib/pkgconfig/libsharpyuv.pc +1 -1
  127. package/lib/pkgconfig/libtiff-4.pc +1 -1
  128. package/lib/pkgconfig/libwebp.pc +1 -1
  129. package/lib/pkgconfig/libwebpdemux.pc +1 -1
  130. package/lib/pkgconfig/libwebpmux.pc +1 -1
  131. package/lib/pkgconfig/vips-cpp.pc +1 -1
  132. package/lib/pkgconfig/vips.pc +1 -1
  133. package/lib/pkgconfig/zlib.pc +1 -1
  134. package/package.json +1 -1
  135. package/versions.json +12 -12
@@ -118,7 +118,7 @@ struct _GIOChannel
118
118
  /* Group the flags together, immediately after partial_write_buf, to save memory */
119
119
 
120
120
  guint use_buffer : 1; /* The encoding uses the buffers */
121
- guint do_encode : 1; /* The encoding uses the GIConv coverters */
121
+ guint do_encode : 1; /* The encoding uses the GIConv converters */
122
122
  guint close_on_unref : 1; /* Close the channel on final unref */
123
123
  guint is_readable : 1; /* Cached GIOFlag */
124
124
  guint is_writeable : 1; /* ditto */
@@ -370,7 +370,7 @@ GIOChannel *g_io_channel_win32_new_messages (guint hwnd);
370
370
  #endif
371
371
 
372
372
  /* Create an IO channel for C runtime (emulated Unix-like) file
373
- * descriptors. After calling g_io_add_watch() on a IO channel
373
+ * descriptors. After calling g_io_add_watch() on an IO channel
374
374
  * returned by this function, you shouldn't call read() on the file
375
375
  * descriptor. This is because adding polling for a file descriptor is
376
376
  * implemented on Win32 by starting a thread that sits blocked in a
@@ -984,3 +984,37 @@
984
984
  #define GLIB_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GLIB_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GLIB_DEPRECATED_IN_2_82 GLIB_DEPRECATED
990
+ #define GLIB_DEPRECATED_IN_2_82_FOR(f) GLIB_DEPRECATED_FOR (f)
991
+ #define GLIB_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GLIB_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GLIB_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GLIB_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GLIB_DEPRECATED_IN_2_82 _GLIB_EXTERN
999
+ #define GLIB_DEPRECATED_IN_2_82_FOR(f) _GLIB_EXTERN
1000
+ #define GLIB_DEPRECATED_MACRO_IN_2_82
1001
+ #define GLIB_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GLIB_DEPRECATED_TYPE_IN_2_82
1005
+ #define GLIB_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GLIB_AVAILABLE_IN_2_82 GLIB_UNAVAILABLE (2, 82)
1010
+ #define GLIB_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GLIB_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GLIB_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GLIB_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GLIB_AVAILABLE_IN_2_82 _GLIB_EXTERN
1016
+ #define GLIB_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GLIB_AVAILABLE_MACRO_IN_2_82
1018
+ #define GLIB_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GLIB_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -861,9 +861,10 @@
861
861
  #define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
862
862
  #define G_STRINGIFY_ARG(contents) #contents
863
863
 
864
- #ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
865
864
  #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
866
865
  #define G_PASTE(identifier1,identifier2) G_PASTE_ARGS (identifier1, identifier2)
866
+
867
+ #ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
867
868
  #if G_CXX_STD_CHECK_VERSION (11)
868
869
  #define G_STATIC_ASSERT(expr) static_assert (expr, "Expression evaluates to false")
869
870
  #elif (G_C_STD_CHECK_VERSION (11) || \
@@ -877,7 +878,10 @@
877
878
  #endif
878
879
  #endif /* G_CXX_STD_CHECK_VERSION (11) */
879
880
  #define G_STATIC_ASSERT_EXPR(expr) ((void) sizeof (char[(expr) ? 1 : -1]))
880
- #endif /* !__GI_SCANNER__ */
881
+ #else /* __GI_SCANNER__ */
882
+ #define G_STATIC_ASSERT(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
883
+ #define G_STATIC_ASSERT_EXPR(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
884
+ #endif /* __GI_SCANNER__ */
881
885
 
882
886
  /* Provide a string identifying the current code position */
883
887
  #if defined (__GNUC__) && (__GNUC__ < 3) && !defined (G_CXX_STD_VERSION)
@@ -1337,6 +1341,7 @@
1337
1341
  /* these macros are private; note that gstdio.h also uses _GLIB_CLEANUP */
1338
1342
  #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
1339
1343
  #define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) glib_autoptr_clear_##TypeName
1344
+ #define _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName) glib_autoptr_destroy_##TypeName
1340
1345
  #define _GLIB_AUTOPTR_TYPENAME(TypeName) TypeName##_autoptr
1341
1346
  #define _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) glib_listautoptr_cleanup_##TypeName
1342
1347
  #define _GLIB_AUTOPTR_LIST_TYPENAME(TypeName) TypeName##_listautoptr
@@ -1356,12 +1361,14 @@
1356
1361
  { if (_ptr) (cleanup) ((ParentName *) _ptr); } \
1357
1362
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) \
1358
1363
  { _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) (*_ptr); } \
1364
+ static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName) (void *_ptr) \
1365
+ { (cleanup) ((ParentName *) _ptr); } \
1359
1366
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) (GList **_l) \
1360
- { g_list_free_full (*_l, (GDestroyNotify) (void(*)(void)) cleanup); } \
1367
+ { g_list_free_full (*_l, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1361
1368
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) (GSList **_l) \
1362
- { g_slist_free_full (*_l, (GDestroyNotify) (void(*)(void)) cleanup); } \
1369
+ { g_slist_free_full (*_l, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1363
1370
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) (GQueue **_q) \
1364
- { if (*_q) g_queue_free_full (*_q, (GDestroyNotify) (void(*)(void)) cleanup); } \
1371
+ { if (*_q) g_queue_free_full (*_q, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1365
1372
  G_GNUC_END_IGNORE_DEPRECATIONS
1366
1373
  #define _GLIB_DEFINE_AUTOPTR_CHAINUP(ModuleObjName, ParentName) \
1367
1374
  _GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(ModuleObjName, ParentName, _GLIB_AUTOPTR_CLEAR_FUNC_NAME(ParentName))
@@ -48,8 +48,8 @@ typedef enum /*< flags >*/
48
48
  * `g_main_context_{prepare,query,check,dispatch}` to integrate GMainContext in
49
49
  * other event loops.
50
50
  *
51
- * Flags to pass to g_main_context_new_with_flags() which affect the behaviour
52
- * of a #GMainContext.
51
+ * Flags to pass to [ctor@GLib.MainContext.new_with_flags] which affect the
52
+ * behaviour of a [struct@GLib.MainContext].
53
53
  *
54
54
  * Since: 2.72
55
55
  */
@@ -121,15 +121,17 @@ typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs;
121
121
  * %TRUE in either its @prepare or its @check function, or if a ready time
122
122
  * has been reached. The @dispatch function receives a callback function and
123
123
  * user data. The callback function may be %NULL if the source was never
124
- * connected to a callback using g_source_set_callback(). The @dispatch
125
- * function should call the callback function with @user_data and whatever
126
- * additional parameters are needed for this type of event source. The
127
- * return value of the @dispatch function should be %G_SOURCE_REMOVE if the
128
- * source should be removed or %G_SOURCE_CONTINUE to keep it.
124
+ * connected to a callback using [method@GLib.Source.set_callback]. The
125
+ * @dispatch function should call the callback function with @user_data and
126
+ * whatever additional parameters are needed for this type of event source.
127
+ * The return value of the @dispatch function should be
128
+ * [const@GLib.SOURCE_REMOVE] if the source should be removed or
129
+ * [const@GLib.SOURCE_CONTINUE] to keep it.
129
130
  * @finalize: Called when the source is finalized. At this point, the source
130
131
  * will have been destroyed, had its callback cleared, and have been removed
131
- * from its #GMainContext, but it will still have its final reference count,
132
- * so methods can be called on it from within this function.
132
+ * from its [struct@GLib.MainContext], but it will still have its final
133
+ * reference count, so methods can be called on it from within this
134
+ * function.
133
135
  *
134
136
  * The `GSourceFuncs` struct contains a table of
135
137
  * functions used to handle event sources in a generic manner.
@@ -182,15 +184,17 @@ typedef struct _GSourceFuncs GSourceFuncs;
182
184
  * @user_data: data passed to the function, set when the source was
183
185
  * created with one of the above functions
184
186
  *
185
- * Specifies the type of function passed to g_timeout_add(),
186
- * g_timeout_add_full(), g_idle_add(), and g_idle_add_full().
187
+ * Specifies the type of function passed to [func@GLib.timeout_add],
188
+ * [func@GLib.timeout_add_full], [func@GLib.idle_add], and
189
+ * [func@GLib.idle_add_full].
187
190
  *
188
- * When calling g_source_set_callback(), you may need to cast a function of a
189
- * different type to this type. Use G_SOURCE_FUNC() to avoid warnings about
190
- * incompatible function types.
191
+ * When calling [method@GLib.Source.set_callback], you may need to cast a
192
+ * function of a different type to this type. Use [func@GLib.SOURCE_FUNC] to
193
+ * avoid warnings about incompatible function types.
191
194
  *
192
- * Returns: %FALSE if the source should be removed. %G_SOURCE_CONTINUE and
193
- * %G_SOURCE_REMOVE are more memorable names for the return value.
195
+ * Returns: %FALSE if the source should be removed.
196
+ * [const@GLib.SOURCE_CONTINUE] and [const@GLib.SOURCE_REMOVE] are more
197
+ * memorable names for the return value.
194
198
  */
195
199
  typedef gboolean (*GSourceFunc) (gpointer user_data);
196
200
 
@@ -202,7 +206,7 @@ typedef gboolean (*GSourceFunc) (gpointer user_data);
202
206
  * A source function that is only called once before being removed from the main
203
207
  * context automatically.
204
208
  *
205
- * See: g_idle_add_once(), g_timeout_add_once()
209
+ * See: [func@GLib.idle_add_once], [func@GLib.timeout_add_once]
206
210
  *
207
211
  * Since: 2.74
208
212
  */
@@ -212,15 +216,16 @@ typedef void (* GSourceOnceFunc) (gpointer user_data);
212
216
  * G_SOURCE_FUNC:
213
217
  * @f: a function pointer.
214
218
  *
215
- * Cast a function pointer to a #GSourceFunc, suppressing warnings from GCC 8
216
- * onwards with `-Wextra` or `-Wcast-function-type` enabled about the function
217
- * types being incompatible.
219
+ * Cast a function pointer to a [callback@GLib.SourceFunc], suppressing
220
+ * warnings from GCC 8 onwards with `-Wextra` or `-Wcast-function-type` enabled
221
+ * about the function types being incompatible.
218
222
  *
219
223
  * For example, the correct type of callback for a source created by
220
- * g_child_watch_source_new() is #GChildWatchFunc, which accepts more arguments
221
- * than #GSourceFunc. Casting the function with `(GSourceFunc)` to call
222
- * g_source_set_callback() will trigger a warning, even though it will be cast
223
- * back to the correct type before it is called by the source.
224
+ * [func@GLib.child_watch_source_new] is #GChildWatchFunc, which accepts more
225
+ * arguments than [callback@GLib.SourceFunc]. Casting the function with
226
+ * `(GSourceFunc)` to call [method@GLib.Source.set_callback] will trigger a
227
+ * warning, even though it will be cast back to the correct type before it is
228
+ * called by the source.
224
229
  *
225
230
  * Since: 2.58
226
231
  */
@@ -231,13 +236,13 @@ typedef void (* GSourceOnceFunc) (gpointer user_data);
231
236
  * @pid: the process id of the child process
232
237
  * @wait_status: Status information about the child process, encoded
233
238
  * in a platform-specific manner
234
- * @user_data: user data passed to g_child_watch_add()
239
+ * @user_data: user data passed to [func@GLib.child_watch_add]
235
240
  *
236
241
  * Prototype of a #GChildWatchSource callback, called when a child
237
242
  * process has exited.
238
243
  *
239
- * To interpret @wait_status, see the documentation
240
- * for g_spawn_check_wait_status(). In particular,
244
+ * To interpret @wait_status, see the documentation for
245
+ * [func@GLib.spawn_check_wait_status]. In particular,
241
246
  * on Unix platforms, note that it is usually not equal
242
247
  * to the integer passed to `exit()` or returned from `main()`.
243
248
  */
@@ -250,8 +255,8 @@ typedef void (*GChildWatchFunc) (GPid pid,
250
255
  * GSourceDisposeFunc:
251
256
  * @source: #GSource that is currently being disposed
252
257
  *
253
- * Dispose function for @source. See g_source_set_dispose_function() for
254
- * details.
258
+ * Dispose function for @source. See [method@GLib.Source.set_dispose_function]
259
+ * for details.
255
260
  *
256
261
  * Since: 2.64
257
262
  */
@@ -301,15 +306,101 @@ struct _GSourceCallbackFuncs
301
306
  */
302
307
  typedef void (*GSourceDummyMarshal) (void);
303
308
 
309
+ /**
310
+ * GSourceFuncsPrepareFunc:
311
+ * @source: The #GSource
312
+ * @timeout_: (out) (optional): the maximum timeout (in milliseconds) which should be passed to the poll call
313
+ *
314
+ * Checks the source for readiness.
315
+ *
316
+ * Called before all the file descriptors are polled. If the
317
+ * source can determine that it is ready here (without waiting for the
318
+ * results of the poll call) it should return %TRUE. It can also return
319
+ * a @timeout_ value which should be the maximum timeout (in milliseconds)
320
+ * which should be passed to the poll call. The actual timeout used will
321
+ * be `-1` if all sources returned `-1`, or it will be the minimum of all
322
+ * the @timeout_ values returned which were greater than or equal to `0`.
323
+ * If the prepare function returns a timeout and the source also has a
324
+ * ready time set, then the lower of the two will be used.
325
+ *
326
+ * Since 2.36 this may be `NULL`, in which case the effect is as if the
327
+ * function always returns `FALSE` with a timeout of `-1`.
328
+ *
329
+ * Returns: %TRUE if the source is ready, %FALSE otherwise
330
+ *
331
+ * Since: 2.82
332
+ */
333
+ typedef gboolean (*GSourceFuncsPrepareFunc) (GSource *source,
334
+ gint *timeout_);
335
+
336
+ /**
337
+ * GSourceFuncsCheckFunc:
338
+ * @source: The #GSource
339
+ *
340
+ * Checks if the source is ready to be dispatched.
341
+ *
342
+ * Called after all the file descriptors are polled. The source
343
+ * should return %TRUE if it is ready to be dispatched. Note that some
344
+ * time may have passed since the previous prepare function was called,
345
+ * so the source should be checked again here.
346
+ *
347
+ * Since 2.36 this may be `NULL`, in which case the effect is
348
+ * as if the function always returns `FALSE`.
349
+ *
350
+ * Returns: %TRUE if ready to be dispatched, %FALSE otherwise
351
+ *
352
+ * Since: 2.82
353
+ */
354
+ typedef gboolean (*GSourceFuncsCheckFunc) (GSource *source);
355
+
356
+ /**
357
+ * GSourceFuncsDispatchFunc:
358
+ * @source: The #GSource
359
+ * @callback: (nullable): The #GSourceFunc to call
360
+ * @user_data: (nullable): data to pass to @callback
361
+ *
362
+ * Dispatches the source callback.
363
+ *
364
+ * Called to dispatch the event source, after it has returned
365
+ * `TRUE` in either its prepare or its check function, or if a ready time
366
+ * has been reached. The dispatch function receives a callback function and
367
+ * user data. The callback function may be `NULL` if the source was never
368
+ * connected to a callback using [method@GLib.Source.set_callback]. The dispatch
369
+ * function should call the callback function with @user_data and whatever
370
+ * additional parameters are needed for this type of event source. The
371
+ * return value of the dispatch function should be [const@GLib.SOURCE_REMOVE]
372
+ * if the source should be removed or [const@GLib.SOURCE_CONTINUE] to keep it.
373
+ *
374
+ * Returns: [const@GLib.SOURCE_REMOVE] if the source should be removed,
375
+ * [const@GLib.SOURCE_CONTINUE] otherwise.
376
+ *
377
+ * Since: 2.82
378
+ */
379
+ typedef gboolean (*GSourceFuncsDispatchFunc) (GSource *source,
380
+ GSourceFunc callback,
381
+ gpointer user_data);
382
+
383
+ /**
384
+ * GSourceFuncsFinalizeFunc:
385
+ * @source: The #GSource
386
+ *
387
+ * Finalizes the source.
388
+ *
389
+ * Called when the source is finalized. At this point, the source
390
+ * will have been destroyed, had its callback cleared, and have been removed
391
+ * from its [type@GLib.MainContext], but it will still have its final reference
392
+ * count, so methods can be called on it from within this function.
393
+ *
394
+ * Since: 2.82
395
+ */
396
+ typedef void (*GSourceFuncsFinalizeFunc) (GSource *source);
397
+
304
398
  struct _GSourceFuncs
305
399
  {
306
- gboolean (*prepare) (GSource *source,
307
- gint *timeout_);/* Can be NULL */
308
- gboolean (*check) (GSource *source);/* Can be NULL */
309
- gboolean (*dispatch) (GSource *source,
310
- GSourceFunc callback,
311
- gpointer user_data);
312
- void (*finalize) (GSource *source); /* Can be NULL */
400
+ GSourceFuncsPrepareFunc prepare; /* Can be NULL */
401
+ GSourceFuncsCheckFunc check; /* Can be NULL */
402
+ GSourceFuncsDispatchFunc dispatch;
403
+ GSourceFuncsFinalizeFunc finalize; /* Can be NULL */
313
404
 
314
405
  /*< private >*/
315
406
  /* For use by g_source_set_closure */
@@ -334,7 +425,7 @@ struct _GSourceFuncs
334
425
  * Use this for default priority event sources.
335
426
  *
336
427
  * In GLib this priority is used when adding timeout functions
337
- * with g_timeout_add(). In GDK this priority is used for events
428
+ * with [func@GLib.timeout_add]. In GDK this priority is used for events
338
429
  * from the X server.
339
430
  */
340
431
  #define G_PRIORITY_DEFAULT 0
@@ -357,7 +448,7 @@ struct _GSourceFuncs
357
448
  * Use this for default priority idle functions.
358
449
  *
359
450
  * In GLib this priority is used when adding idle functions with
360
- * g_idle_add().
451
+ * [func@GLib.idle_add].
361
452
  */
362
453
  #define G_PRIORITY_DEFAULT_IDLE 200
363
454
 
@@ -373,8 +464,8 @@ struct _GSourceFuncs
373
464
  /**
374
465
  * G_SOURCE_REMOVE:
375
466
  *
376
- * Use this macro as the return value of a #GSourceFunc to remove
377
- * the #GSource from the main loop.
467
+ * Use this macro as the return value of a [callback@GLib.SourceFunc] to remove
468
+ * the [struct@GLib.Source] from the main loop.
378
469
  *
379
470
  * Since: 2.32
380
471
  */
@@ -383,8 +474,8 @@ struct _GSourceFuncs
383
474
  /**
384
475
  * G_SOURCE_CONTINUE:
385
476
  *
386
- * Use this macro as the return value of a #GSourceFunc to leave
387
- * the #GSource in the main loop.
477
+ * Use this macro as the return value of a [callback@GLib.SourceFunc] to leave
478
+ * the [struct@GLib.Source] in the main loop.
388
479
  *
389
480
  * Since: 2.32
390
481
  */
@@ -502,13 +593,13 @@ typedef void GMainContextPusher GLIB_AVAILABLE_TYPE_IN_2_64;
502
593
  * @main_context: (transfer none): a main context to push
503
594
  *
504
595
  * Push @main_context as the new thread-default main context for the current
505
- * thread, using g_main_context_push_thread_default(), and return a new
506
- * #GMainContextPusher. Pop with g_main_context_pusher_free(). Using
507
- * g_main_context_pop_thread_default() on @main_context while a
508
- * #GMainContextPusher exists for it can lead to undefined behaviour.
596
+ * thread, using [method@GLib.MainContext.push_thread_default], and return a
597
+ * new [alias@GLib.MainContextPusher]. Pop with g_main_context_pusher_free().
598
+ * Using [method@GLib.MainContext.pop_thread_default] on @main_context while a
599
+ * [alias@GLib.MainContextPusher] exists for it can lead to undefined behaviour.
509
600
  *
510
- * Using two #GMainContextPushers in the same scope is not allowed, as it leads
511
- * to an undefined pop order.
601
+ * Using two [alias@GLib.MainContextPusher]s in the same scope is not allowed,
602
+ * as it leads to an undefined pop order.
512
603
  *
513
604
  * This is intended to be used with g_autoptr(). Note that g_autoptr()
514
605
  * is only available when using GCC or clang, so the following example
@@ -559,8 +650,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
559
650
  * Pop @pusher’s main context as the thread default main context.
560
651
  * See g_main_context_pusher_new() for details.
561
652
  *
562
- * This will pop the #GMainContext as the current thread-default main context,
563
- * but will not call g_main_context_unref() on it.
653
+ * This will pop the [struct@GLib.MainContext] as the current thread-default
654
+ * main context, but will not call [method@GLib.MainContext.unref] on it.
564
655
  *
565
656
  * Since: 2.64
566
657
  */
@@ -747,10 +838,10 @@ gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
747
838
  * GClearHandleFunc:
748
839
  * @handle_id: the handle ID to clear
749
840
  *
750
- * Specifies the type of function passed to g_clear_handle_id().
751
- * The implementation is expected to free the resource identified
752
- * by @handle_id; for instance, if @handle_id is a #GSource ID,
753
- * g_source_remove() can be used.
841
+ * Specifies the type of function passed to [func@GLib.clear_handle_id] The
842
+ * implementation is expected to free the resource identified by @handle_id;
843
+ * for instance, if @handle_id is a [struct@GLib.Source] ID,
844
+ * [func@GLib.Source.remove] can be used.
754
845
  *
755
846
  * Since: 2.56
756
847
  */
@@ -35,13 +35,20 @@
35
35
 
36
36
  G_BEGIN_DECLS
37
37
 
38
- GLIB_AVAILABLE_IN_ALL
38
+ GLIB_DEPRECATED_IN_2_82_FOR(g_sort_array)
39
39
  void g_qsort_with_data (gconstpointer pbase,
40
40
  gint total_elems,
41
41
  gsize size,
42
42
  GCompareDataFunc compare_func,
43
43
  gpointer user_data);
44
44
 
45
+ GLIB_AVAILABLE_IN_2_82
46
+ void g_sort_array (const void *array,
47
+ size_t n_elements,
48
+ size_t element_size,
49
+ GCompareDataFunc compare_func,
50
+ void *user_data);
51
+
45
52
  G_END_DECLS
46
53
 
47
54
  #endif /* __G_QSORT_H__ */
@@ -327,21 +327,9 @@ g_strdup_inline (const char *str)
327
327
  #endif /* !defined (__GTK_DOC_IGNORE__) */
328
328
  #endif /* G_GNUC_CHECK_VERSION (2, 0) */
329
329
 
330
- /* Make a copy of a string interpreting C string -style escape
331
- * sequences. Inverse of g_strescape. The recognized sequences are \b
332
- * \f \n \r \t \\ \" and the octal format.
333
- */
334
330
  GLIB_AVAILABLE_IN_ALL
335
331
  gchar* g_strcompress (const gchar *source) G_GNUC_MALLOC;
336
332
 
337
- /* Copy a string escaping nonprintable characters like in C strings.
338
- * Inverse of g_strcompress. The exceptions parameter, if non-NULL, points
339
- * to a string containing characters that are not to be escaped.
340
- *
341
- * Deprecated API: gchar* g_strescape (const gchar *source);
342
- * Luckily this function wasn't used much, using NULL as second parameter
343
- * provides mostly identical semantics.
344
- */
345
333
  GLIB_AVAILABLE_IN_ALL
346
334
  gchar* g_strescape (const gchar *source,
347
335
  const gchar *exceptions) G_GNUC_MALLOC;
@@ -66,6 +66,8 @@ gchar* g_string_free_and_steal (GString *string) G_GNUC_WARN_UN
66
66
 
67
67
  #if G_GNUC_CHECK_VERSION (2, 0) && (GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76)
68
68
 
69
+ #if !defined(__cplusplus) || !G_GNUC_CHECK_VERSION (6, 1) || G_GNUC_CHECK_VERSION (7, 3)
70
+
69
71
  #define g_string_free(str, free_segment) \
70
72
  (__builtin_constant_p (free_segment) ? \
71
73
  ((free_segment) ? \
@@ -74,6 +76,8 @@ gchar* g_string_free_and_steal (GString *string) G_GNUC_WARN_UN
74
76
  : \
75
77
  (g_string_free) ((str), (free_segment)))
76
78
 
79
+ #endif /* !defined(__cplusplus) || !G_GNUC_CHECK_VERSION (6, 1) || G_GNUC_CHECK_VERSION (7, 3) */
80
+
77
81
  #endif /* G_GNUC_CHECK_VERSION (2, 0) && (GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76) */
78
82
 
79
83
  GLIB_AVAILABLE_IN_2_34
@@ -38,6 +38,9 @@ GStrvBuilder *g_strv_builder_new (void);
38
38
  GLIB_AVAILABLE_IN_2_68
39
39
  void g_strv_builder_unref (GStrvBuilder *builder);
40
40
 
41
+ GLIB_AVAILABLE_IN_2_82
42
+ GStrv g_strv_builder_unref_to_strv (GStrvBuilder *builder);
43
+
41
44
  GLIB_AVAILABLE_IN_2_68
42
45
  GStrvBuilder *g_strv_builder_ref (GStrvBuilder *builder);
43
46
 
@@ -806,7 +806,7 @@ GLIB_VAR const gchar * const g_utf8_skip;
806
806
  * Before using this macro, use g_utf8_validate() to validate strings
807
807
  * that may contain invalid UTF-8.
808
808
  */
809
- #define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(const guchar *)(p)])
809
+ #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
810
810
 
811
811
  GLIB_AVAILABLE_IN_ALL
812
812
  gunichar g_utf8_get_char (const gchar *p) G_GNUC_PURE;
@@ -395,6 +395,15 @@
395
395
  * Since: 2.80
396
396
  */
397
397
  #define GLIB_VERSION_2_80 (G_ENCODE_VERSION (2, 80))
398
+ /**
399
+ * GLIB_VERSION_2_82:
400
+ *
401
+ * A macro that evaluates to the 2.82 version of GLib, in a format
402
+ * that can be used by the C pre-processor.
403
+ *
404
+ * Since: 2.82
405
+ */
406
+ #define GLIB_VERSION_2_82 (G_ENCODE_VERSION (2, 82))
398
407
 
399
408
  /**
400
409
  * GLIB_VERSION_CUR_STABLE:
@@ -984,3 +984,37 @@
984
984
  #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GMODULE_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GMODULE_DEPRECATED_IN_2_82 GMODULE_DEPRECATED
990
+ #define GMODULE_DEPRECATED_IN_2_82_FOR(f) GMODULE_DEPRECATED_FOR (f)
991
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GMODULE_DEPRECATED_IN_2_82 _GMODULE_EXTERN
999
+ #define GMODULE_DEPRECATED_IN_2_82_FOR(f) _GMODULE_EXTERN
1000
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82
1001
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82
1005
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GMODULE_AVAILABLE_IN_2_82 GMODULE_UNAVAILABLE (2, 82)
1010
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GMODULE_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GMODULE_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GMODULE_AVAILABLE_IN_2_82 _GMODULE_EXTERN
1016
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GMODULE_AVAILABLE_MACRO_IN_2_82
1018
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GMODULE_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -984,3 +984,37 @@
984
984
  #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GOBJECT_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GOBJECT_DEPRECATED_IN_2_82 GOBJECT_DEPRECATED
990
+ #define GOBJECT_DEPRECATED_IN_2_82_FOR(f) GOBJECT_DEPRECATED_FOR (f)
991
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GOBJECT_DEPRECATED_IN_2_82 _GOBJECT_EXTERN
999
+ #define GOBJECT_DEPRECATED_IN_2_82_FOR(f) _GOBJECT_EXTERN
1000
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82
1001
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82
1005
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GOBJECT_AVAILABLE_IN_2_82 GOBJECT_UNAVAILABLE (2, 82)
1010
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GOBJECT_AVAILABLE_IN_2_82 _GOBJECT_EXTERN
1016
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_82
1018
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -140,7 +140,7 @@ g_object_notify_queue_thaw (GObject *object,
140
140
  }
141
141
 
142
142
  static inline void
143
- g_object_notify_queue_clear (GObject *object,
143
+ g_object_notify_queue_clear (GObject *object G_GNUC_UNUSED,
144
144
  GObjectNotifyQueue *nqueue)
145
145
  {
146
146
  g_return_if_fail (nqueue->freeze_count > 0);
@@ -155,7 +155,7 @@ g_object_notify_queue_clear (GObject *object,
155
155
  }
156
156
 
157
157
  static inline void
158
- g_object_notify_queue_add (GObject *object,
158
+ g_object_notify_queue_add (GObject *object G_GNUC_UNUSED,
159
159
  GObjectNotifyQueue *nqueue,
160
160
  GParamSpec *pspec)
161
161
  {
@@ -1095,7 +1095,7 @@ typedef enum /*< skip >*/
1095
1095
  * @base_finalize: Location of the base finalization function (optional)
1096
1096
  * @class_init: Location of the class initialization function for
1097
1097
  * classed and instantiatable types. Location of the default vtable
1098
- * inititalization function for interface types. (optional) This function
1098
+ * initialization function for interface types. (optional) This function
1099
1099
  * is used both to fill in virtual functions in the class or default vtable,
1100
1100
  * and to do type-specific setup such as registering signals and object
1101
1101
  * properties.
@@ -2280,7 +2280,7 @@ static void type_name##_class_intern_init (gpointer klass, \
2280
2280
  #endif /* GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_80 */
2281
2281
 
2282
2282
  /* Added for _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE */
2283
- #define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name, TYPE_PARENT) \
2283
+ #define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name) \
2284
2284
  \
2285
2285
  static void type_name##_init (TypeName *self); \
2286
2286
  static void type_name##_class_init (TypeName##Class *klass); \
@@ -2337,12 +2337,12 @@ type_name##_get_type_once (void) \
2337
2337
  return g_define_type_id; \
2338
2338
  } /* closes type_name##_get_type_once() */
2339
2339
 
2340
- /* This was defined before we had G_DEFINE_TYPE_WITH_CODE_AND_PRELUDE, it's simplest
2341
- * to keep it.
2340
+ /* This was defined before we had _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE in
2341
+ * gtype-private.h, it's simplest to keep it.
2342
2342
  */
2343
2343
  #define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \
2344
- _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name, TYPE_PARENT) \
2345
- _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags) \
2344
+ _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE (TypeName, type_name) \
2345
+ _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER (TypeName, type_name, TYPE_PARENT, flags)
2346
2346
 
2347
2347
  /* Intentionally using (GTypeFlags) 0 instead of G_TYPE_FLAG_NONE here,
2348
2348
  * to avoid deprecation warnings with older GLIB_VERSION_MAX_ALLOWED */