@img/sharp-libvips-dev-wasm32 1.0.0 → 1.0.2

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 (203) hide show
  1. package/include/aom/aom_encoder.h +3 -3
  2. package/include/aom/aomcx.h +17 -8
  3. package/include/expat.h +21 -10
  4. package/include/expat_config.h +11 -5
  5. package/include/ffi.h +12 -25
  6. package/include/glib-2.0/gio/gappinfo.h +0 -7
  7. package/include/glib-2.0/gio/gapplication.h +6 -0
  8. package/include/glib-2.0/gio/gapplicationcommandline.h +12 -1
  9. package/include/glib-2.0/gio/gasyncinitable.h +0 -7
  10. package/include/glib-2.0/gio/gasyncresult.h +0 -6
  11. package/include/glib-2.0/gio/gbufferedinputstream.h +0 -5
  12. package/include/glib-2.0/gio/gbufferedoutputstream.h +0 -5
  13. package/include/glib-2.0/gio/gbytesicon.h +0 -5
  14. package/include/glib-2.0/gio/gcancellable.h +0 -5
  15. package/include/glib-2.0/gio/gconverter.h +0 -7
  16. package/include/glib-2.0/gio/gconverterinputstream.h +0 -6
  17. package/include/glib-2.0/gio/gconverteroutputstream.h +0 -6
  18. package/include/glib-2.0/gio/gdatagrambased.h +0 -7
  19. package/include/glib-2.0/gio/gdatainputstream.h +0 -6
  20. package/include/glib-2.0/gio/gdataoutputstream.h +0 -6
  21. package/include/glib-2.0/gio/gdbusinterface.h +0 -8
  22. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +0 -8
  23. package/include/glib-2.0/gio/gdbusmessage.h +2 -1
  24. package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +0 -8
  25. package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +0 -8
  26. package/include/glib-2.0/gio/gdbusobjectproxy.h +0 -8
  27. package/include/glib-2.0/gio/gdbusobjectskeleton.h +0 -8
  28. package/include/glib-2.0/gio/gdbusproxy.h +0 -8
  29. package/include/glib-2.0/gio/gdebugcontroller.h +0 -8
  30. package/include/glib-2.0/gio/gdebugcontrollerdbus.h +0 -7
  31. package/include/glib-2.0/gio/gdtlsserverconnection.h +0 -8
  32. package/include/glib-2.0/gio/gemblem.h +0 -5
  33. package/include/glib-2.0/gio/gemblemedicon.h +0 -5
  34. package/include/glib-2.0/gio/gfile.h +0 -10
  35. package/include/glib-2.0/gio/gfileenumerator.h +0 -5
  36. package/include/glib-2.0/gio/gfileicon.h +0 -5
  37. package/include/glib-2.0/gio/gfileinfo.h +0 -5
  38. package/include/glib-2.0/gio/gfileinputstream.h +0 -8
  39. package/include/glib-2.0/gio/gfileiostream.h +0 -8
  40. package/include/glib-2.0/gio/gfilemonitor.h +0 -5
  41. package/include/glib-2.0/gio/gfilenamecompleter.h +0 -5
  42. package/include/glib-2.0/gio/gfileoutputstream.h +0 -8
  43. package/include/glib-2.0/gio/gfilterinputstream.h +0 -5
  44. package/include/glib-2.0/gio/gfilteroutputstream.h +0 -5
  45. package/include/glib-2.0/gio/gicon.h +0 -5
  46. package/include/glib-2.0/gio/ginitable.h +0 -7
  47. package/include/glib-2.0/gio/ginputstream.h +0 -5
  48. package/include/glib-2.0/gio/gio-autocleanups.h +4 -0
  49. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  50. package/include/glib-2.0/gio/gioenums.h +6 -1
  51. package/include/glib-2.0/gio/giomodule.h +0 -5
  52. package/include/glib-2.0/gio/giostream.h +0 -5
  53. package/include/glib-2.0/gio/giotypes.h +5 -108
  54. package/include/glib-2.0/gio/gloadableicon.h +0 -6
  55. package/include/glib-2.0/gio/gmemoryinputstream.h +0 -5
  56. package/include/glib-2.0/gio/gmemoryoutputstream.h +0 -5
  57. package/include/glib-2.0/gio/gmountoperation.h +0 -6
  58. package/include/glib-2.0/gio/gnetworking.h +4 -0
  59. package/include/glib-2.0/gio/goutputstream.h +0 -9
  60. package/include/glib-2.0/gio/gpollableinputstream.h +0 -7
  61. package/include/glib-2.0/gio/gpollableoutputstream.h +0 -7
  62. package/include/glib-2.0/gio/gproxy.h +0 -7
  63. package/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -8
  64. package/include/glib-2.0/gio/gseekable.h +0 -5
  65. package/include/glib-2.0/gio/gsettingsbackend.h +0 -5
  66. package/include/glib-2.0/gio/gsimpleactiongroup.h +0 -7
  67. package/include/glib-2.0/gio/gsimpleasyncresult.h +0 -5
  68. package/include/glib-2.0/gio/gsimpleproxyresolver.h +0 -5
  69. package/include/glib-2.0/gio/gsocket.h +13 -0
  70. package/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -6
  71. package/include/glib-2.0/gio/gsocketconnectable.h +0 -5
  72. package/include/glib-2.0/gio/gtask.h +12 -0
  73. package/include/glib-2.0/gio/gthemedicon.h +0 -5
  74. package/include/glib-2.0/gio/gtlsserverconnection.h +0 -8
  75. package/include/glib-2.0/gio/gunixcredentialsmessage.h +0 -8
  76. package/include/glib-2.0/gio/gvfs.h +0 -5
  77. package/include/glib-2.0/gio/gvolume.h +2 -2
  78. package/include/glib-2.0/gio/gvolumemonitor.h +0 -5
  79. package/include/glib-2.0/glib/deprecated/gcompletion.h +1 -1
  80. package/include/glib-2.0/glib/deprecated/grel.h +0 -23
  81. package/include/glib-2.0/glib/deprecated/gthread.h +10 -6
  82. package/include/glib-2.0/glib/gatomic.h +20 -20
  83. package/include/glib-2.0/glib/gbitlock.h +31 -0
  84. package/include/glib-2.0/glib/gbookmarkfile.h +39 -1
  85. package/include/glib-2.0/glib/gchecksum.h +0 -10
  86. package/include/glib-2.0/glib/gdate.h +0 -9
  87. package/include/glib-2.0/glib/gdatetime.h +33 -1
  88. package/include/glib-2.0/glib/gdir.h +5 -0
  89. package/include/glib-2.0/glib/ghmac.h +0 -9
  90. package/include/glib-2.0/glib/glib-autocleanups.h +4 -0
  91. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  92. package/include/glib-2.0/glib/gmacros.h +1 -0
  93. package/include/glib-2.0/glib/gmessages.h +11 -0
  94. package/include/glib-2.0/glib/gpathbuf.h +0 -7
  95. package/include/glib-2.0/glib/gslice.h +2 -0
  96. package/include/glib-2.0/glib/gstdio.h +1 -1
  97. package/include/glib-2.0/glib/gstrfuncs.h +24 -18
  98. package/include/glib-2.0/glib/gstrvbuilder.h +4 -8
  99. package/include/glib-2.0/glib/gtestutils.h +5 -0
  100. package/include/glib-2.0/glib/gthread.h +216 -3
  101. package/include/glib-2.0/glib/gunicode.h +12 -2
  102. package/include/glib-2.0/glib/gvarianttype.h +1 -10
  103. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  104. package/include/glib-2.0/glib/gwin32.h +4 -4
  105. package/include/glib-2.0/glib-unix.h +214 -0
  106. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  107. package/include/glib-2.0/gobject/gbinding.h +0 -8
  108. package/include/glib-2.0/gobject/gbindinggroup.h +0 -8
  109. package/include/glib-2.0/gobject/gclosure.h +1 -9
  110. package/include/glib-2.0/gobject/genums.h +6 -6
  111. package/include/glib-2.0/gobject/glib-types.h +44 -0
  112. package/include/glib-2.0/gobject/gobject-autocleanups.h +4 -0
  113. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  114. package/include/glib-2.0/gobject/gobject.h +1 -16
  115. package/include/glib-2.0/gobject/gparam.h +3 -12
  116. package/include/glib-2.0/gobject/gsignal.h +16 -6
  117. package/include/glib-2.0/gobject/gsignalgroup.h +0 -8
  118. package/include/glib-2.0/gobject/gtype.h +53 -20
  119. package/include/glib-2.0/gobject/gtypemodule.h +0 -7
  120. package/include/glib-2.0/gobject/gtypeplugin.h +0 -6
  121. package/include/glib-2.0/gobject/gvaluearray.h +0 -7
  122. package/include/glib-2.0/gobject/gvaluecollector.h +1 -11
  123. package/include/glib-2.0/gobject/gvaluetypes.h +2 -0
  124. package/include/hwy/aligned_allocator.h +171 -6
  125. package/include/hwy/base.h +1765 -543
  126. package/include/hwy/cache_control.h +24 -6
  127. package/include/hwy/detect_compiler_arch.h +23 -2
  128. package/include/hwy/detect_targets.h +56 -13
  129. package/include/hwy/foreach_target.h +24 -0
  130. package/include/hwy/highway.h +20 -3
  131. package/include/hwy/ops/arm_neon-inl.h +1086 -667
  132. package/include/hwy/ops/arm_sve-inl.h +1091 -235
  133. package/include/hwy/ops/emu128-inl.h +271 -196
  134. package/include/hwy/ops/generic_ops-inl.h +2270 -399
  135. package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
  136. package/include/hwy/ops/rvv-inl.h +1043 -311
  137. package/include/hwy/ops/scalar-inl.h +189 -159
  138. package/include/hwy/ops/set_macros-inl.h +66 -6
  139. package/include/hwy/ops/shared-inl.h +175 -56
  140. package/include/hwy/ops/wasm_128-inl.h +153 -136
  141. package/include/hwy/ops/x86_128-inl.h +1647 -646
  142. package/include/hwy/ops/x86_256-inl.h +1003 -370
  143. package/include/hwy/ops/x86_512-inl.h +948 -353
  144. package/include/hwy/per_target.h +4 -0
  145. package/include/hwy/profiler.h +648 -0
  146. package/include/hwy/robust_statistics.h +2 -2
  147. package/include/hwy/targets.h +18 -11
  148. package/include/hwy/timer.h +11 -0
  149. package/include/lcms2.h +46 -7
  150. package/include/lcms2_plugin.h +4 -4
  151. package/include/libheif/heif_version.h +2 -2
  152. package/include/resvg.h +15 -3
  153. package/include/vips/connection.h +9 -3
  154. package/include/vips/util.h +0 -9
  155. package/include/vips/version.h +4 -4
  156. package/include/zconf.h +3 -0
  157. package/include/zlib.h +3 -3
  158. package/lib/glib-2.0/include/glibconfig.h +3 -2
  159. package/lib/libaom.a +0 -0
  160. package/lib/libcgif.a +0 -0
  161. package/lib/libexif.a +0 -0
  162. package/lib/libexpat.a +0 -0
  163. package/lib/libexpat.la +3 -3
  164. package/lib/libffi.a +0 -0
  165. package/lib/libffi.la +2 -2
  166. package/lib/libgio-2.0.a +0 -0
  167. package/lib/libglib-2.0.a +0 -0
  168. package/lib/libgmodule-2.0.a +0 -0
  169. package/lib/libgobject-2.0.a +0 -0
  170. package/lib/libgthread-2.0.a +0 -0
  171. package/lib/libheif.a +0 -0
  172. package/lib/libhwy.a +0 -0
  173. package/lib/libimagequant.a +0 -0
  174. package/lib/libjpeg.a +0 -0
  175. package/lib/liblcms2.a +0 -0
  176. package/lib/libresvg.a +0 -0
  177. package/lib/libsharpyuv.a +0 -0
  178. package/lib/libspng.a +0 -0
  179. package/lib/libtiff.a +0 -0
  180. package/lib/libvips-cpp.a +0 -0
  181. package/lib/libvips.a +0 -0
  182. package/lib/libwebp.a +0 -0
  183. package/lib/libwebpdemux.a +0 -0
  184. package/lib/libwebpmux.a +0 -0
  185. package/lib/libz.a +0 -0
  186. package/lib/pkgconfig/aom.pc +2 -2
  187. package/lib/pkgconfig/expat.pc +2 -1
  188. package/lib/pkgconfig/gio-2.0.pc +3 -3
  189. package/lib/pkgconfig/glib-2.0.pc +3 -3
  190. package/lib/pkgconfig/gmodule-2.0.pc +1 -1
  191. package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  192. package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  193. package/lib/pkgconfig/gobject-2.0.pc +1 -1
  194. package/lib/pkgconfig/gthread-2.0.pc +1 -1
  195. package/lib/pkgconfig/lcms2.pc +1 -1
  196. package/lib/pkgconfig/libffi.pc +1 -1
  197. package/lib/pkgconfig/libheif.pc +1 -1
  198. package/lib/pkgconfig/libhwy.pc +1 -1
  199. package/lib/pkgconfig/vips-cpp.pc +1 -1
  200. package/lib/pkgconfig/vips.pc +1 -1
  201. package/lib/pkgconfig/zlib.pc +1 -1
  202. package/package.json +1 -1
  203. package/versions.json +11 -10
@@ -34,13 +34,6 @@ G_BEGIN_DECLS
34
34
  #define G_IS_POLLABLE_INPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_POLLABLE_INPUT_STREAM))
35
35
  #define G_POLLABLE_INPUT_STREAM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_POLLABLE_INPUT_STREAM, GPollableInputStreamInterface))
36
36
 
37
- /**
38
- * GPollableInputStream:
39
- *
40
- * An interface for a #GInputStream that can be polled for readability.
41
- *
42
- * Since: 2.28
43
- */
44
37
  typedef struct _GPollableInputStreamInterface GPollableInputStreamInterface;
45
38
 
46
39
  /**
@@ -34,13 +34,6 @@ G_BEGIN_DECLS
34
34
  #define G_IS_POLLABLE_OUTPUT_STREAM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_POLLABLE_OUTPUT_STREAM))
35
35
  #define G_POLLABLE_OUTPUT_STREAM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_POLLABLE_OUTPUT_STREAM, GPollableOutputStreamInterface))
36
36
 
37
- /**
38
- * GPollableOutputStream:
39
- *
40
- * An interface for a #GOutputStream that can be polled for writeability.
41
- *
42
- * Since: 2.28
43
- */
44
37
  typedef struct _GPollableOutputStreamInterface GPollableOutputStreamInterface;
45
38
 
46
39
  /**
@@ -48,13 +48,6 @@ G_BEGIN_DECLS
48
48
  */
49
49
  #define G_PROXY_EXTENSION_POINT_NAME "gio-proxy"
50
50
 
51
- /**
52
- * GProxy:
53
- *
54
- * Interface that handles proxy connection and payload.
55
- *
56
- * Since: 2.26
57
- */
58
51
  typedef struct _GProxyInterface GProxyInterface;
59
52
 
60
53
  /**
@@ -38,14 +38,6 @@ G_BEGIN_DECLS
38
38
  #define G_IS_PROXY_ADDRESS_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_PROXY_ADDRESS_ENUMERATOR))
39
39
  #define G_PROXY_ADDRESS_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_PROXY_ADDRESS_ENUMERATOR, GProxyAddressEnumeratorClass))
40
40
 
41
- /**
42
- * GProxyAddressEnumerator:
43
- *
44
- * A subclass of #GSocketAddressEnumerator that takes another address
45
- * enumerator and wraps each of its results in a #GProxyAddress as
46
- * directed by the default #GProxyResolver.
47
- */
48
-
49
41
  typedef struct _GProxyAddressEnumeratorClass GProxyAddressEnumeratorClass;
50
42
  typedef struct _GProxyAddressEnumeratorPrivate GProxyAddressEnumeratorPrivate;
51
43
 
@@ -36,11 +36,6 @@ G_BEGIN_DECLS
36
36
  #define G_IS_SEEKABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SEEKABLE))
37
37
  #define G_SEEKABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_SEEKABLE, GSeekableIface))
38
38
 
39
- /**
40
- * GSeekable:
41
- *
42
- * Seek object for streaming operations.
43
- **/
44
39
  typedef struct _GSeekableIface GSeekableIface;
45
40
 
46
41
  /**
@@ -53,11 +53,6 @@ G_BEGIN_DECLS
53
53
  **/
54
54
  #define G_SETTINGS_BACKEND_EXTENSION_POINT_NAME "gsettings-backend"
55
55
 
56
- /**
57
- * GSettingsBackend:
58
- *
59
- * An implementation of a settings storage repository.
60
- **/
61
56
  typedef struct _GSettingsBackendPrivate GSettingsBackendPrivate;
62
57
  typedef struct _GSettingsBackendClass GSettingsBackendClass;
63
58
 
@@ -46,13 +46,6 @@ G_BEGIN_DECLS
46
46
  typedef struct _GSimpleActionGroupPrivate GSimpleActionGroupPrivate;
47
47
  typedef struct _GSimpleActionGroupClass GSimpleActionGroupClass;
48
48
 
49
- /**
50
- * GSimpleActionGroup:
51
- *
52
- * The #GSimpleActionGroup structure contains private data and should only be accessed using the provided API.
53
- *
54
- * Since: 2.28
55
- */
56
49
  struct _GSimpleActionGroup
57
50
  {
58
51
  /*< private >*/
@@ -38,11 +38,6 @@ G_BEGIN_DECLS
38
38
  #define G_IS_SIMPLE_ASYNC_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SIMPLE_ASYNC_RESULT))
39
39
  #define G_SIMPLE_ASYNC_RESULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SIMPLE_ASYNC_RESULT, GSimpleAsyncResultClass))
40
40
 
41
- /**
42
- * GSimpleAsyncResult:
43
- *
44
- * A simple implementation of #GAsyncResult.
45
- **/
46
41
  typedef struct _GSimpleAsyncResultClass GSimpleAsyncResultClass;
47
42
 
48
43
 
@@ -36,11 +36,6 @@ G_BEGIN_DECLS
36
36
  #define G_IS_SIMPLE_PROXY_RESOLVER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SIMPLE_PROXY_RESOLVER))
37
37
  #define G_SIMPLE_PROXY_RESOLVER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SIMPLE_PROXY_RESOLVER, GSimpleProxyResolverClass))
38
38
 
39
- /**
40
- * GSimpleProxyResolver:
41
- *
42
- * A #GProxyResolver implementation for using a fixed set of proxies.
43
- **/
44
39
  typedef struct _GSimpleProxyResolver GSimpleProxyResolver;
45
40
  typedef struct _GSimpleProxyResolverPrivate GSimpleProxyResolverPrivate;
46
41
  typedef struct _GSimpleProxyResolverClass GSimpleProxyResolverClass;
@@ -210,6 +210,12 @@ gssize g_socket_receive (GSocket
210
210
  gsize size,
211
211
  GCancellable *cancellable,
212
212
  GError **error);
213
+ GIO_AVAILABLE_IN_2_80
214
+ GBytes * g_socket_receive_bytes (GSocket *socket,
215
+ gsize size,
216
+ gint64 timeout_us,
217
+ GCancellable *cancellable,
218
+ GError **error);
213
219
  GIO_AVAILABLE_IN_ALL
214
220
  gssize g_socket_receive_from (GSocket *socket,
215
221
  GSocketAddress **address,
@@ -217,6 +223,13 @@ gssize g_socket_receive_from (GSocket
217
223
  gsize size,
218
224
  GCancellable *cancellable,
219
225
  GError **error);
226
+ GIO_AVAILABLE_IN_2_80
227
+ GBytes * g_socket_receive_bytes_from (GSocket *socket,
228
+ GSocketAddress **address,
229
+ gsize size,
230
+ gint64 timeout_us,
231
+ GCancellable *cancellable,
232
+ GError **error);
220
233
  GIO_AVAILABLE_IN_ALL
221
234
  gssize g_socket_send (GSocket *socket,
222
235
  const gchar *buffer,
@@ -36,12 +36,6 @@ G_BEGIN_DECLS
36
36
  #define G_IS_SOCKET_ADDRESS_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_SOCKET_ADDRESS_ENUMERATOR))
37
37
  #define G_SOCKET_ADDRESS_ENUMERATOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_SOCKET_ADDRESS_ENUMERATOR, GSocketAddressEnumeratorClass))
38
38
 
39
- /**
40
- * GSocketAddressEnumerator:
41
- *
42
- * Enumerator type for objects that contain or generate
43
- * #GSocketAddress instances.
44
- */
45
39
  typedef struct _GSocketAddressEnumeratorClass GSocketAddressEnumeratorClass;
46
40
 
47
41
  struct _GSocketAddressEnumerator
@@ -34,11 +34,6 @@ G_BEGIN_DECLS
34
34
  #define G_IS_SOCKET_CONNECTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SOCKET_CONNECTABLE))
35
35
  #define G_SOCKET_CONNECTABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_SOCKET_CONNECTABLE, GSocketConnectableIface))
36
36
 
37
- /**
38
- * GSocketConnectable:
39
- *
40
- * Interface for objects that contain or generate a #GSocketAddress.
41
- */
42
37
  typedef struct _GSocketConnectableIface GSocketConnectableIface;
43
38
 
44
39
  /**
@@ -163,12 +163,24 @@ void g_task_return_int (GTask *task,
163
163
  GIO_AVAILABLE_IN_2_36
164
164
  void g_task_return_error (GTask *task,
165
165
  GError *error);
166
+ GIO_AVAILABLE_IN_2_80
167
+ void g_task_return_prefixed_error (GTask *task,
168
+ GError *error,
169
+ const char *format,
170
+ ...) G_GNUC_PRINTF (3, 4);
171
+
166
172
  GIO_AVAILABLE_IN_2_36
167
173
  void g_task_return_new_error (GTask *task,
168
174
  GQuark domain,
169
175
  gint code,
170
176
  const char *format,
171
177
  ...) G_GNUC_PRINTF (4, 5);
178
+
179
+ GIO_AVAILABLE_IN_2_80
180
+ void g_task_return_new_error_literal (GTask *task,
181
+ GQuark domain,
182
+ gint code,
183
+ const char *message);
172
184
  GIO_AVAILABLE_IN_2_64
173
185
  void g_task_return_value (GTask *task,
174
186
  GValue *result);
@@ -38,11 +38,6 @@ G_BEGIN_DECLS
38
38
  #define G_IS_THEMED_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_THEMED_ICON))
39
39
  #define G_THEMED_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_THEMED_ICON, GThemedIconClass))
40
40
 
41
- /**
42
- * GThemedIcon:
43
- *
44
- * An implementation of #GIcon for themed icons.
45
- **/
46
41
  typedef struct _GThemedIconClass GThemedIconClass;
47
42
 
48
43
  GIO_AVAILABLE_IN_ALL
@@ -34,14 +34,6 @@ G_BEGIN_DECLS
34
34
  #define G_IS_TLS_SERVER_CONNECTION(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), G_TYPE_TLS_SERVER_CONNECTION))
35
35
  #define G_TLS_SERVER_CONNECTION_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), G_TYPE_TLS_SERVER_CONNECTION, GTlsServerConnectionInterface))
36
36
 
37
- /**
38
- * GTlsServerConnection:
39
- *
40
- * TLS server-side connection. This is the server-side implementation
41
- * of a #GTlsConnection.
42
- *
43
- * Since: 2.28
44
- */
45
37
  typedef struct _GTlsServerConnectionInterface GTlsServerConnectionInterface;
46
38
 
47
39
  /**
@@ -58,14 +58,6 @@ struct _GUnixCredentialsMessageClass
58
58
  void (*_g_reserved2) (void);
59
59
  };
60
60
 
61
- /**
62
- * GUnixCredentialsMessage:
63
- *
64
- * The #GUnixCredentialsMessage structure contains only private data
65
- * and should only be accessed using the provided API.
66
- *
67
- * Since: 2.26
68
- */
69
61
  struct _GUnixCredentialsMessage
70
62
  {
71
63
  GSocketControlMessage parent_instance;
@@ -68,11 +68,6 @@ typedef GFile * (* GVfsFileLookupFunc) (GVfs *vfs,
68
68
  */
69
69
  #define G_VFS_EXTENSION_POINT_NAME "gio-vfs"
70
70
 
71
- /**
72
- * GVfs:
73
- *
74
- * Virtual File System object.
75
- **/
76
71
  typedef struct _GVfsClass GVfsClass;
77
72
 
78
73
  struct _GVfs
@@ -109,10 +109,10 @@ G_BEGIN_DECLS
109
109
  * @mount_finish: Finishes a mount operation.
110
110
  * @eject: Ejects a given #GVolume.
111
111
  * @eject_finish: Finishes an eject operation.
112
- * @get_identifier: Returns the [identifier][volume-identifier] of the given kind, or %NULL if
112
+ * @get_identifier: Returns the [identifier](#volume-identifiers) of the given kind, or %NULL if
113
113
  * the #GVolume doesn't have one.
114
114
  * @enumerate_identifiers: Returns an array strings listing the kinds
115
- * of [identifiers][volume-identifier] which the #GVolume has.
115
+ * of [identifiers](#volume-identifiers) which the #GVolume has.
116
116
  * @should_automount: Returns %TRUE if the #GVolume should be automatically mounted.
117
117
  * @get_activation_root: Returns the activation root for the #GVolume if it is known in advance or %NULL if
118
118
  * it is not known.
@@ -49,11 +49,6 @@ G_BEGIN_DECLS
49
49
  */
50
50
  #define G_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-volume-monitor"
51
51
 
52
- /**
53
- * GVolumeMonitor:
54
- *
55
- * A Volume Monitor that watches for volume events.
56
- **/
57
52
  typedef struct _GVolumeMonitorClass GVolumeMonitorClass;
58
53
 
59
54
  struct _GVolumeMonitor
@@ -37,7 +37,7 @@ G_BEGIN_DECLS
37
37
 
38
38
  typedef struct _GCompletion GCompletion;
39
39
 
40
- typedef gchar* (*GCompletionFunc) (gpointer);
40
+ typedef gchar* (*GCompletionFunc) (gpointer item);
41
41
 
42
42
  /* GCompletion
43
43
  */
@@ -43,29 +43,6 @@ struct _GTuples
43
43
  guint len;
44
44
  };
45
45
 
46
- /* GRelation
47
- *
48
- * Indexed Relations. Imagine a really simple table in a
49
- * database. Relations are not ordered. This data type is meant for
50
- * maintaining a N-way mapping.
51
- *
52
- * g_relation_new() creates a relation with FIELDS fields
53
- *
54
- * g_relation_destroy() frees all resources
55
- * g_tuples_destroy() frees the result of g_relation_select()
56
- *
57
- * g_relation_index() indexes relation FIELD with the provided
58
- * equality and hash functions. this must be done before any
59
- * calls to insert are made.
60
- *
61
- * g_relation_insert() inserts a new tuple. you are expected to
62
- * provide the right number of fields.
63
- *
64
- * g_relation_delete() deletes all relations with KEY in FIELD
65
- * g_relation_select() returns ...
66
- * g_relation_count() counts ...
67
- */
68
-
69
46
  GLIB_DEPRECATED_IN_2_26
70
47
  GRelation* g_relation_new (gint fields);
71
48
  GLIB_DEPRECATED_IN_2_26
@@ -135,10 +135,12 @@ void g_thread_foreach (GFunc thread_func,
135
135
  typedef struct
136
136
  {
137
137
  GMutex *mutex;
138
- #ifndef G_OS_WIN32
138
+ #ifndef __GI_SCANNER__
139
+ # ifndef G_OS_WIN32
139
140
  /* only for ABI compatibility reasons */
140
141
  pthread_mutex_t unused;
141
- #endif
142
+ # endif /* !G_OS_WIN32 */
143
+ #endif /* !__GI_SCANNER__ */
142
144
  } GStaticMutex GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GMutex);
143
145
 
144
146
  #define g_static_mutex_lock(mutex) \
@@ -162,15 +164,17 @@ struct _GStaticRecMutex
162
164
  GStaticMutex mutex;
163
165
  guint depth;
164
166
 
167
+ #ifndef __GI_SCANNER__
165
168
  /* ABI compat only */
166
169
  union {
167
- #ifdef G_OS_WIN32
170
+ # ifdef G_OS_WIN32
168
171
  void *owner;
169
- #else
172
+ # else
170
173
  pthread_t owner;
171
- #endif
174
+ # endif /* !G_OS_WIN32 */
172
175
  gdouble dummy;
173
176
  } unused;
177
+ #endif /* !__GI_SCANNER__ */
174
178
  } GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GRecMutex);
175
179
 
176
180
  #define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0, { 0 } } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_rec_mutex_init)
@@ -286,7 +290,7 @@ void g_cond_free (GCond *cond);
286
290
  GLIB_DEPRECATED_IN_2_32
287
291
  gboolean g_cond_timed_wait (GCond *cond,
288
292
  GMutex *mutex,
289
- GTimeVal *timeval);
293
+ GTimeVal *abs_time);
290
294
 
291
295
  G_GNUC_END_IGNORE_DEPRECATIONS
292
296
 
@@ -83,16 +83,16 @@ GLIB_AVAILABLE_IN_2_74
83
83
  gpointer g_atomic_pointer_exchange (void *atomic,
84
84
  gpointer newval);
85
85
  GLIB_AVAILABLE_IN_ALL
86
- gssize g_atomic_pointer_add (volatile void *atomic,
86
+ gintptr g_atomic_pointer_add (volatile void *atomic,
87
87
  gssize val);
88
88
  GLIB_AVAILABLE_IN_2_30
89
- gsize g_atomic_pointer_and (volatile void *atomic,
89
+ guintptr g_atomic_pointer_and (volatile void *atomic,
90
90
  gsize val);
91
91
  GLIB_AVAILABLE_IN_2_30
92
- gsize g_atomic_pointer_or (volatile void *atomic,
92
+ guintptr g_atomic_pointer_or (volatile void *atomic,
93
93
  gsize val);
94
94
  GLIB_AVAILABLE_IN_ALL
95
- gsize g_atomic_pointer_xor (volatile void *atomic,
95
+ guintptr g_atomic_pointer_xor (volatile void *atomic,
96
96
  gsize val);
97
97
 
98
98
  GLIB_DEPRECATED_IN_2_30_FOR(g_atomic_int_add)
@@ -280,34 +280,34 @@ G_END_DECLS
280
280
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
281
281
  (void) (0 ? (gpointer) *(atomic) : NULL); \
282
282
  (void) (0 ? (val) ^ (val) : 1); \
283
- (gssize) __atomic_fetch_add ((atomic), (val), __ATOMIC_SEQ_CST); \
283
+ (gintptr) __atomic_fetch_add ((atomic), (val), __ATOMIC_SEQ_CST); \
284
284
  }))
285
285
  #define g_atomic_pointer_and(atomic, val) \
286
286
  (G_GNUC_EXTENSION ({ \
287
- gsize *gapa_atomic = (gsize *) (atomic); \
287
+ guintptr *gapa_atomic = (guintptr *) (atomic); \
288
288
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
289
- G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gsize)); \
289
+ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
290
290
  (void) (0 ? (gpointer) *(atomic) : NULL); \
291
291
  (void) (0 ? (val) ^ (val) : 1); \
292
- (gsize) __atomic_fetch_and (gapa_atomic, (val), __ATOMIC_SEQ_CST); \
292
+ (guintptr) __atomic_fetch_and (gapa_atomic, (val), __ATOMIC_SEQ_CST); \
293
293
  }))
294
294
  #define g_atomic_pointer_or(atomic, val) \
295
295
  (G_GNUC_EXTENSION ({ \
296
- gsize *gapo_atomic = (gsize *) (atomic); \
296
+ guintptr *gapo_atomic = (guintptr *) (atomic); \
297
297
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
298
- G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gsize)); \
298
+ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
299
299
  (void) (0 ? (gpointer) *(atomic) : NULL); \
300
300
  (void) (0 ? (val) ^ (val) : 1); \
301
- (gsize) __atomic_fetch_or (gapo_atomic, (val), __ATOMIC_SEQ_CST); \
301
+ (guintptr) __atomic_fetch_or (gapo_atomic, (val), __ATOMIC_SEQ_CST); \
302
302
  }))
303
303
  #define g_atomic_pointer_xor(atomic, val) \
304
304
  (G_GNUC_EXTENSION ({ \
305
- gsize *gapx_atomic = (gsize *) (atomic); \
305
+ guintptr *gapx_atomic = (guintptr *) (atomic); \
306
306
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
307
- G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gsize)); \
307
+ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
308
308
  (void) (0 ? (gpointer) *(atomic) : NULL); \
309
309
  (void) (0 ? (val) ^ (val) : 1); \
310
- (gsize) __atomic_fetch_xor (gapx_atomic, (val), __ATOMIC_SEQ_CST); \
310
+ (guintptr) __atomic_fetch_xor (gapx_atomic, (val), __ATOMIC_SEQ_CST); \
311
311
  }))
312
312
 
313
313
  #else /* defined(__ATOMIC_SEQ_CST) */
@@ -374,7 +374,7 @@ G_END_DECLS
374
374
  (void) (0 ? (gpointer) *(atomic) : NULL); \
375
375
  __sync_synchronize (); \
376
376
  __asm__ __volatile__ ("" : : : "memory"); \
377
- *(atomic) = (glib_typeof (*(atomic))) (gsize) (newval); \
377
+ *(atomic) = (glib_typeof (*(atomic))) (guintptr) (newval); \
378
378
  }))
379
379
  #else /* if !(defined(glib_typeof) */
380
380
  #define g_atomic_pointer_set(atomic, newval) \
@@ -383,7 +383,7 @@ G_END_DECLS
383
383
  (void) (0 ? (gpointer) *(atomic) : NULL); \
384
384
  __sync_synchronize (); \
385
385
  __asm__ __volatile__ ("" : : : "memory"); \
386
- *(atomic) = (gpointer) (gsize) (newval); \
386
+ *(atomic) = (gpointer) (guintptr) (newval); \
387
387
  }))
388
388
  #endif /* if defined(glib_typeof) */
389
389
 
@@ -498,28 +498,28 @@ G_END_DECLS
498
498
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
499
499
  (void) (0 ? (gpointer) *(atomic) : NULL); \
500
500
  (void) (0 ? (val) ^ (val) : 1); \
501
- (gssize) __sync_fetch_and_add ((atomic), (val)); \
501
+ (gintptr) __sync_fetch_and_add ((atomic), (val)); \
502
502
  }))
503
503
  #define g_atomic_pointer_and(atomic, val) \
504
504
  (G_GNUC_EXTENSION ({ \
505
505
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
506
506
  (void) (0 ? (gpointer) *(atomic) : NULL); \
507
507
  (void) (0 ? (val) ^ (val) : 1); \
508
- (gsize) __sync_fetch_and_and ((atomic), (val)); \
508
+ (guintptr) __sync_fetch_and_and ((atomic), (val)); \
509
509
  }))
510
510
  #define g_atomic_pointer_or(atomic, val) \
511
511
  (G_GNUC_EXTENSION ({ \
512
512
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
513
513
  (void) (0 ? (gpointer) *(atomic) : NULL); \
514
514
  (void) (0 ? (val) ^ (val) : 1); \
515
- (gsize) __sync_fetch_and_or ((atomic), (val)); \
515
+ (guintptr) __sync_fetch_and_or ((atomic), (val)); \
516
516
  }))
517
517
  #define g_atomic_pointer_xor(atomic, val) \
518
518
  (G_GNUC_EXTENSION ({ \
519
519
  G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
520
520
  (void) (0 ? (gpointer) *(atomic) : NULL); \
521
521
  (void) (0 ? (val) ^ (val) : 1); \
522
- (gsize) __sync_fetch_and_xor ((atomic), (val)); \
522
+ (guintptr) __sync_fetch_and_xor ((atomic), (val)); \
523
523
  }))
524
524
 
525
525
  #endif /* !defined(__ATOMIC_SEQ_CST) */
@@ -44,6 +44,12 @@ void g_bit_unlock (volatile gint *address,
44
44
  GLIB_AVAILABLE_IN_ALL
45
45
  void g_pointer_bit_lock (volatile void *address,
46
46
  gint lock_bit);
47
+
48
+ GLIB_AVAILABLE_IN_2_80
49
+ void g_pointer_bit_lock_and_get (gpointer address,
50
+ guint lock_bit,
51
+ guintptr *out_ptr);
52
+
47
53
  GLIB_AVAILABLE_IN_ALL
48
54
  gboolean g_pointer_bit_trylock (volatile void *address,
49
55
  gint lock_bit);
@@ -51,6 +57,19 @@ GLIB_AVAILABLE_IN_ALL
51
57
  void g_pointer_bit_unlock (volatile void *address,
52
58
  gint lock_bit);
53
59
 
60
+ GLIB_AVAILABLE_IN_2_80
61
+ gpointer g_pointer_bit_lock_mask_ptr (gpointer ptr,
62
+ guint lock_bit,
63
+ gboolean set,
64
+ guintptr preserve_mask,
65
+ gpointer preserve_ptr);
66
+
67
+ GLIB_AVAILABLE_IN_2_80
68
+ void g_pointer_bit_unlock_and_set (void *address,
69
+ guint lock_bit,
70
+ gpointer ptr,
71
+ guintptr preserve_mask);
72
+
54
73
  #ifdef __GNUC__
55
74
 
56
75
  #define g_pointer_bit_lock(address, lock_bit) \
@@ -59,6 +78,12 @@ void g_pointer_bit_unlock (volatile void *address,
59
78
  g_pointer_bit_lock ((address), (lock_bit)); \
60
79
  }))
61
80
 
81
+ #define g_pointer_bit_lock_and_get(address, lock_bit, out_ptr) \
82
+ (G_GNUC_EXTENSION ({ \
83
+ G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
84
+ g_pointer_bit_lock_and_get ((address), (lock_bit), (out_ptr)); \
85
+ }))
86
+
62
87
  #define g_pointer_bit_trylock(address, lock_bit) \
63
88
  (G_GNUC_EXTENSION ({ \
64
89
  G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
@@ -71,6 +96,12 @@ void g_pointer_bit_unlock (volatile void *address,
71
96
  g_pointer_bit_unlock ((address), (lock_bit)); \
72
97
  }))
73
98
 
99
+ #define g_pointer_bit_unlock_and_set(address, lock_bit, ptr, preserve_mask) \
100
+ (G_GNUC_EXTENSION ({ \
101
+ G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
102
+ g_pointer_bit_unlock_and_set ((address), (lock_bit), (ptr), (preserve_mask)); \
103
+ }))
104
+
74
105
  #endif
75
106
 
76
107
  G_END_DECLS
@@ -75,7 +75,45 @@ GQuark g_bookmark_file_error_quark (void);
75
75
  /**
76
76
  * GBookmarkFile:
77
77
  *
78
- * An opaque data structure representing a set of bookmarks.
78
+ * `GBookmarkFile` lets you parse, edit or create files containing bookmarks.
79
+ *
80
+ * Bookmarks refer to a URI, along with some meta-data about the resource
81
+ * pointed by the URI like its MIME type, the application that is registering
82
+ * the bookmark and the icon that should be used to represent the bookmark.
83
+ * The data is stored using the
84
+ * [Desktop Bookmark Specification](http://www.gnome.org/~ebassi/bookmark-spec).
85
+ *
86
+ * The syntax of the bookmark files is described in detail inside the
87
+ * Desktop Bookmark Specification, here is a quick summary: bookmark
88
+ * files use a sub-class of the XML Bookmark Exchange Language
89
+ * specification, consisting of valid UTF-8 encoded XML, under the
90
+ * `<xbel>` root element; each bookmark is stored inside a
91
+ * `<bookmark>` element, using its URI: no relative paths can
92
+ * be used inside a bookmark file. The bookmark may have a user defined
93
+ * title and description, to be used instead of the URI. Under the
94
+ * `<metadata>` element, with its owner attribute set to
95
+ * `http://freedesktop.org`, is stored the meta-data about a resource
96
+ * pointed by its URI. The meta-data consists of the resource's MIME
97
+ * type; the applications that have registered a bookmark; the groups
98
+ * to which a bookmark belongs to; a visibility flag, used to set the
99
+ * bookmark as "private" to the applications and groups that has it
100
+ * registered; the URI and MIME type of an icon, to be used when
101
+ * displaying the bookmark inside a GUI.
102
+ *
103
+ * Here is an example of a bookmark file:
104
+ * [bookmarks.xbel](https://gitlab.gnome.org/GNOME/glib/-/blob/HEAD/glib/tests/bookmarks.xbel)
105
+ *
106
+ * A bookmark file might contain more than one bookmark; each bookmark
107
+ * is accessed through its URI.
108
+ *
109
+ * The important caveat of bookmark files is that when you add a new
110
+ * bookmark you must also add the application that is registering it, using
111
+ * [method@GLib.BookmarkFile.add_application] or [method@GLib.BookmarkFile.set_application_info].
112
+ * If a bookmark has no applications then it won't be dumped when creating
113
+ * the on disk representation, using [method@GLib.BookmarkFile.to_data] or
114
+ * [method@GLib.BookmarkFile.to_file].
115
+ *
116
+ * Since: 2.12
79
117
  */
80
118
  typedef struct _GBookmarkFile GBookmarkFile;
81
119
 
@@ -54,16 +54,6 @@ typedef enum {
54
54
  G_CHECKSUM_SHA384
55
55
  } GChecksumType;
56
56
 
57
- /**
58
- * GChecksum:
59
- *
60
- * An opaque structure representing a checksumming operation.
61
- *
62
- * To create a new GChecksum, use g_checksum_new(). To free
63
- * a GChecksum, use g_checksum_free().
64
- *
65
- * Since: 2.16
66
- */
67
57
  typedef struct _GChecksum GChecksum;
68
58
 
69
59
  GLIB_AVAILABLE_IN_ALL
@@ -38,15 +38,6 @@
38
38
 
39
39
  G_BEGIN_DECLS
40
40
 
41
- /* GDate
42
- *
43
- * Date calculations (not time for now, to be resolved). These are a
44
- * mutant combination of Steffen Beyer's DateCalc routines
45
- * (http://www.perl.com/CPAN/authors/id/STBEY/) and Jon Trowbridge's
46
- * date routines (written for in-house software). Written by Havoc
47
- * Pennington <hp@pobox.com>
48
- */
49
-
50
41
  typedef gint32 GTime GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
51
42
  typedef guint16 GDateYear;
52
43
  typedef guint8 GDateDay; /* day of the month */