@img/sharp-libvips-dev 1.0.1 → 1.0.3

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 (169) hide show
  1. package/README.md +1 -2
  2. package/include/aom/aom_decoder.h +1 -1
  3. package/include/aom/aom_encoder.h +7 -1
  4. package/include/aom/aom_image.h +24 -12
  5. package/include/aom/aom_integer.h +3 -3
  6. package/include/aom/aomcx.h +15 -0
  7. package/include/aom/aomdx.h +5 -2
  8. package/include/archive.h +7 -5
  9. package/include/archive_entry.h +5 -3
  10. package/include/cgif.h +3 -0
  11. package/include/expat.h +21 -10
  12. package/include/expat_config.h +11 -5
  13. package/include/ffi.h +12 -25
  14. package/include/freetype2/freetype/config/ftoption.h +2 -2
  15. package/include/fribidi/fribidi-config.h +2 -2
  16. package/include/fribidi/fribidi-unicode-version.h +3 -3
  17. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
  18. package/include/glib-2.0/gio/gappinfo.h +40 -25
  19. package/include/glib-2.0/gio/gapplication.h +6 -0
  20. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  21. package/include/glib-2.0/gio/gconverter.h +5 -0
  22. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  23. package/include/glib-2.0/gio/gfile.h +16 -0
  24. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  25. package/include/glib-2.0/gio/giotypes.h +0 -1
  26. package/include/glib-2.0/gio/gsettings.h +8 -0
  27. package/include/glib-2.0/gio/gvfs.h +2 -2
  28. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  29. package/include/glib-2.0/girepository/giarginfo.h +23 -6
  30. package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
  31. package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
  32. package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
  33. package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
  34. package/include/glib-2.0/girepository/gienuminfo.h +20 -21
  35. package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
  36. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  37. package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
  38. package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
  39. package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
  40. package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
  41. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
  42. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  43. package/include/glib-2.0/girepository/girepository.h +53 -62
  44. package/include/glib-2.0/girepository/girffi.h +8 -7
  45. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  46. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  47. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  48. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  49. package/include/glib-2.0/girepository/gitypes.h +52 -104
  50. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  51. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  52. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  53. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  54. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  55. package/include/glib-2.0/glib/gbitlock.h +31 -0
  56. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  57. package/include/glib-2.0/glib/giochannel.h +2 -2
  58. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  59. package/include/glib-2.0/glib/gmacros.h +12 -5
  60. package/include/glib-2.0/glib/gmain.h +93 -7
  61. package/include/glib-2.0/glib/gmessages.h +8 -0
  62. package/include/glib-2.0/glib/gqsort.h +8 -1
  63. package/include/glib-2.0/glib/gslice.h +2 -0
  64. package/include/glib-2.0/glib/gstrfuncs.h +24 -30
  65. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  66. package/include/glib-2.0/glib/gthread.h +191 -3
  67. package/include/glib-2.0/glib/gunicode.h +1 -1
  68. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  69. package/include/glib-2.0/glib-unix.h +7 -1
  70. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  71. package/include/glib-2.0/gobject/genums.h +6 -6
  72. package/include/glib-2.0/gobject/glib-types.h +11 -0
  73. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  74. package/include/glib-2.0/gobject/gsignal.h +16 -6
  75. package/include/glib-2.0/gobject/gtype.h +6 -6
  76. package/include/harfbuzz/hb-buffer.h +6 -0
  77. package/include/harfbuzz/hb-common.h +6 -9
  78. package/include/harfbuzz/hb-cplusplus.hh +8 -11
  79. package/include/harfbuzz/hb-subset.h +17 -4
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/hwy/abort.h +28 -0
  82. package/include/hwy/aligned_allocator.h +218 -6
  83. package/include/hwy/base.h +1935 -512
  84. package/include/hwy/cache_control.h +24 -6
  85. package/include/hwy/detect_compiler_arch.h +105 -10
  86. package/include/hwy/detect_targets.h +146 -37
  87. package/include/hwy/foreach_target.h +36 -1
  88. package/include/hwy/highway.h +222 -50
  89. package/include/hwy/ops/arm_neon-inl.h +2055 -894
  90. package/include/hwy/ops/arm_sve-inl.h +1476 -348
  91. package/include/hwy/ops/emu128-inl.h +711 -623
  92. package/include/hwy/ops/generic_ops-inl.h +4431 -2157
  93. package/include/hwy/ops/inside-inl.h +691 -0
  94. package/include/hwy/ops/ppc_vsx-inl.h +2186 -673
  95. package/include/hwy/ops/rvv-inl.h +1556 -536
  96. package/include/hwy/ops/scalar-inl.h +353 -233
  97. package/include/hwy/ops/set_macros-inl.h +171 -23
  98. package/include/hwy/ops/shared-inl.h +198 -56
  99. package/include/hwy/ops/wasm_128-inl.h +283 -244
  100. package/include/hwy/ops/x86_128-inl.h +3673 -1357
  101. package/include/hwy/ops/x86_256-inl.h +1737 -663
  102. package/include/hwy/ops/x86_512-inl.h +1697 -500
  103. package/include/hwy/per_target.h +4 -0
  104. package/include/hwy/profiler.h +648 -0
  105. package/include/hwy/robust_statistics.h +2 -2
  106. package/include/hwy/targets.h +40 -32
  107. package/include/hwy/timer-inl.h +3 -3
  108. package/include/hwy/timer.h +16 -1
  109. package/include/libheif/heif.h +170 -15
  110. package/include/libheif/heif_items.h +237 -0
  111. package/include/libheif/heif_properties.h +38 -2
  112. package/include/libheif/heif_regions.h +1 -1
  113. package/include/libheif/heif_version.h +2 -2
  114. package/include/libpng16/png.h +32 -29
  115. package/include/libpng16/pngconf.h +2 -2
  116. package/include/libpng16/pnglibconf.h +8 -3
  117. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
  118. package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
  119. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
  120. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  121. package/include/librsvg-2.0/librsvg/rsvg.h +55 -176
  122. package/include/libxml2/libxml/HTMLparser.h +12 -19
  123. package/include/libxml2/libxml/c14n.h +1 -12
  124. package/include/libxml2/libxml/debugXML.h +1 -1
  125. package/include/libxml2/libxml/encoding.h +9 -0
  126. package/include/libxml2/libxml/entities.h +12 -1
  127. package/include/libxml2/libxml/hash.h +19 -0
  128. package/include/libxml2/libxml/list.h +2 -2
  129. package/include/libxml2/libxml/nanohttp.h +17 -0
  130. package/include/libxml2/libxml/parser.h +73 -58
  131. package/include/libxml2/libxml/parserInternals.h +9 -1
  132. package/include/libxml2/libxml/pattern.h +6 -0
  133. package/include/libxml2/libxml/tree.h +32 -12
  134. package/include/libxml2/libxml/uri.h +11 -0
  135. package/include/libxml2/libxml/valid.h +29 -2
  136. package/include/libxml2/libxml/xinclude.h +7 -0
  137. package/include/libxml2/libxml/xmlIO.h +21 -5
  138. package/include/libxml2/libxml/xmlerror.h +14 -0
  139. package/include/libxml2/libxml/xmlexports.h +111 -15
  140. package/include/libxml2/libxml/xmlmemory.h +8 -45
  141. package/include/libxml2/libxml/xmlreader.h +2 -0
  142. package/include/libxml2/libxml/xmlsave.h +5 -0
  143. package/include/libxml2/libxml/xmlunicode.h +165 -1
  144. package/include/libxml2/libxml/xmlversion.h +15 -179
  145. package/include/libxml2/libxml/xmlwriter.h +1 -0
  146. package/include/libxml2/libxml/xpath.h +4 -0
  147. package/include/pango-1.0/pango/pango-features.h +2 -2
  148. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  149. package/include/pango-1.0/pango/pango-item.h +4 -2
  150. package/include/pango-1.0/pango/pango-version-macros.h +25 -0
  151. package/include/pango-1.0/pango/pangofc-font.h +2 -1
  152. package/include/pixman-1/pixman-version.h +2 -2
  153. package/include/png.h +32 -29
  154. package/include/pngconf.h +2 -2
  155. package/include/pnglibconf.h +8 -3
  156. package/include/vips/connection.h +9 -3
  157. package/include/vips/util.h +1 -11
  158. package/include/vips/version.h +4 -4
  159. package/include/webp/decode.h +58 -56
  160. package/include/webp/demux.h +25 -21
  161. package/include/webp/encode.h +44 -39
  162. package/include/webp/mux.h +76 -15
  163. package/include/webp/mux_types.h +2 -1
  164. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  165. package/include/webp/types.h +29 -8
  166. package/include/zconf.h +1 -1
  167. package/include/zlib.h +12 -12
  168. package/package.json +1 -1
  169. package/versions.json +18 -19
@@ -49,32 +49,47 @@ typedef struct _GAppLaunchContextPrivate GAppLaunchContextPrivate;
49
49
  /**
50
50
  * GAppInfoIface:
51
51
  * @g_iface: The parent interface.
52
- * @dup: Copies a #GAppInfo.
53
- * @equal: Checks two #GAppInfos for equality.
54
- * @get_id: Gets a string identifier for a #GAppInfo.
55
- * @get_name: Gets the name of the application for a #GAppInfo.
56
- * @get_description: Gets a short description for the application described by the #GAppInfo.
57
- * @get_executable: Gets the executable name for the #GAppInfo.
58
- * @get_icon: Gets the #GIcon for the #GAppInfo.
59
- * @launch: Launches an application specified by the #GAppInfo.
60
- * @supports_uris: Indicates whether the application specified supports launching URIs.
61
- * @supports_files: Indicates whether the application specified accepts filename arguments.
52
+ * @dup: Copies a [iface@Gio.AppInfo].
53
+ * @equal: Checks two [iface@Gio.AppInfo]s for equality.
54
+ * @get_id: Gets a string identifier for a [iface@Gio.AppInfo].
55
+ * @get_name: Gets the name of the application for a [iface@Gio.AppInfo].
56
+ * @get_description: Gets a short description for the application described by
57
+ * the [iface@Gio.AppInfo].
58
+ * @get_executable: Gets the executable name for the [iface@Gio.AppInfo].
59
+ * @get_icon: Gets the [iface@Gio.Icon] for the [iface@Gio.AppInfo].
60
+ * @launch: Launches an application specified by the [iface@Gio.AppInfo].
61
+ * @supports_uris: Indicates whether the application specified supports
62
+ * launching URIs.
63
+ * @supports_files: Indicates whether the application specified accepts
64
+ * filename arguments.
62
65
  * @launch_uris: Launches an application with a list of URIs.
63
- * @should_show: Returns whether an application should be shown (e.g. when getting a list of installed applications).
64
- * [FreeDesktop.Org Startup Notification Specification](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
65
- * @set_as_default_for_type: Sets an application as default for a given content type.
66
- * @set_as_default_for_extension: Sets an application as default for a given file extension.
67
- * @add_supports_type: Adds to the #GAppInfo information about supported file types.
68
- * @can_remove_supports_type: Checks for support for removing supported file types from a #GAppInfo.
69
- * @remove_supports_type: Removes a supported application type from a #GAppInfo.
70
- * @can_delete: Checks if a #GAppInfo can be deleted. Since 2.20
71
- * @do_delete: Deletes a #GAppInfo. Since 2.20
72
- * @get_commandline: Gets the commandline for the #GAppInfo. Since 2.20
73
- * @get_display_name: Gets the display name for the #GAppInfo. Since 2.24
74
- * @set_as_last_used_for_type: Sets the application as the last used. See g_app_info_set_as_last_used_for_type().
75
- * @get_supported_types: Retrieves the list of content types that @app_info claims to support.
76
- * @launch_uris_async: Asynchronously launches an application with a list of URIs. (Since: 2.60)
77
- * @launch_uris_finish: Finishes an operation started with @launch_uris_async. (Since: 2.60)
66
+ * @should_show: Returns whether an application should be shown (e.g. when
67
+ * getting a list of installed applications).
68
+ * [FreeDesktop.Org Startup Notification Specification](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
69
+ * @set_as_default_for_type: Sets an application as default for a given content
70
+ * type.
71
+ * @set_as_default_for_extension: Sets an application as default for a given
72
+ * file extension.
73
+ * @add_supports_type: Adds to the [iface@Gio.AppInfo] information about
74
+ * supported file types.
75
+ * @can_remove_supports_type: Checks for support for removing supported file
76
+ * types from a [iface@Gio.AppInfo].
77
+ * @remove_supports_type: Removes a supported application type from a
78
+ * [iface@Gio.AppInfo].
79
+ * @can_delete: Checks if a [iface@Gio.AppInfo] can be deleted. (Since 2.20)
80
+ * @do_delete: Deletes a [iface@Gio.AppInfo]. (Since 2.20)
81
+ * @get_commandline: Gets the commandline for the [iface@Gio.AppInfo].
82
+ * (Since 2.20)
83
+ * @get_display_name: Gets the display name for the [iface@Gio.AppInfo].
84
+ * (Since 2.24)
85
+ * @set_as_last_used_for_type: Sets the application as the last used. See
86
+ * [method@Gio.AppInfo.set_as_last_used_for_type].
87
+ * @get_supported_types: Retrieves the list of content types that @app_info
88
+ * claims to support.
89
+ * @launch_uris_async: Asynchronously launches an application with a list of
90
+ * URIs. (Since: 2.60)
91
+ * @launch_uris_finish: Finishes an operation started with @launch_uris_async.
92
+ * (Since: 2.60)
78
93
 
79
94
  * Application Information interface, for operating system portability.
80
95
  */
@@ -139,6 +139,12 @@ GIO_AVAILABLE_IN_ALL
139
139
  void g_application_set_application_id (GApplication *application,
140
140
  const gchar *application_id);
141
141
 
142
+ GIO_AVAILABLE_IN_2_80
143
+ const gchar * g_application_get_version (GApplication *application);
144
+ GIO_AVAILABLE_IN_2_80
145
+ void g_application_set_version (GApplication *application,
146
+ const gchar *version);
147
+
142
148
  GIO_AVAILABLE_IN_2_34
143
149
  GDBusConnection * g_application_get_dbus_connection (GApplication *application);
144
150
  GIO_AVAILABLE_IN_2_34
@@ -46,7 +46,7 @@ typedef struct _GAsyncResultIface GAsyncResultIface;
46
46
  * @get_source_object: Gets the source object that issued the asynchronous operation.
47
47
  * @is_tagged: Checks if a result is tagged with a particular source.
48
48
  *
49
- * Interface definition for #GAsyncResult.
49
+ * Interface definition for [iface@Gio.AsyncResult].
50
50
  **/
51
51
  struct _GAsyncResultIface
52
52
  {
@@ -84,6 +84,11 @@ GConverterResult g_converter_convert (GConverter *converter,
84
84
  GIO_AVAILABLE_IN_ALL
85
85
  void g_converter_reset (GConverter *converter);
86
86
 
87
+ GIO_AVAILABLE_IN_2_82
88
+ GBytes * g_converter_convert_bytes (GConverter *converter,
89
+ GBytes *bytes,
90
+ GError **error);
91
+
87
92
 
88
93
  G_END_DECLS
89
94
 
@@ -79,7 +79,7 @@ struct _GDBusArgInfo
79
79
  * @out_args: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusArgInfo structures or %NULL if there are no out arguments.
80
80
  * @annotations: (array zero-terminated=1): A pointer to a %NULL-terminated array of pointers to #GDBusAnnotationInfo structures or %NULL if there are no annotations.
81
81
  *
82
- * Information about a method on an D-Bus interface.
82
+ * Information about a method on a D-Bus interface.
83
83
  *
84
84
  * Since: 2.26
85
85
  */
@@ -944,6 +944,14 @@ void g_file_copy_async (GFile
944
944
  gpointer progress_callback_data,
945
945
  GAsyncReadyCallback callback,
946
946
  gpointer user_data);
947
+ GIO_AVAILABLE_IN_2_82
948
+ void g_file_copy_async_with_closures (GFile *source,
949
+ GFile *destination,
950
+ GFileCopyFlags flags,
951
+ int io_priority,
952
+ GCancellable *cancellable,
953
+ GClosure *progress_callback_closure,
954
+ GClosure *ready_callback_closure);
947
955
  GIO_AVAILABLE_IN_ALL
948
956
  gboolean g_file_copy_finish (GFile *file,
949
957
  GAsyncResult *res,
@@ -966,6 +974,14 @@ void g_file_move_async (GFile
966
974
  gpointer progress_callback_data,
967
975
  GAsyncReadyCallback callback,
968
976
  gpointer user_data);
977
+ GIO_AVAILABLE_IN_2_82
978
+ void g_file_move_async_with_closures (GFile *source,
979
+ GFile *destination,
980
+ GFileCopyFlags flags,
981
+ int io_priority,
982
+ GCancellable *cancellable,
983
+ GClosure *progress_callback_closure,
984
+ GClosure *ready_callback_closure);
969
985
  GIO_AVAILABLE_IN_2_72
970
986
  gboolean g_file_move_finish (GFile *file,
971
987
  GAsyncResult *result,
@@ -984,3 +984,37 @@
984
984
  #define GIO_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GIO_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GIO_DEPRECATED_IN_2_82 GIO_DEPRECATED
990
+ #define GIO_DEPRECATED_IN_2_82_FOR(f) GIO_DEPRECATED_FOR (f)
991
+ #define GIO_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GIO_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GIO_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GIO_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GIO_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GIO_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GIO_DEPRECATED_IN_2_82 _GIO_EXTERN
999
+ #define GIO_DEPRECATED_IN_2_82_FOR(f) _GIO_EXTERN
1000
+ #define GIO_DEPRECATED_MACRO_IN_2_82
1001
+ #define GIO_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GIO_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GIO_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GIO_DEPRECATED_TYPE_IN_2_82
1005
+ #define GIO_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GIO_AVAILABLE_IN_2_82 GIO_UNAVAILABLE (2, 82)
1010
+ #define GIO_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GIO_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GIO_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GIO_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GIO_AVAILABLE_IN_2_82 _GIO_EXTERN
1016
+ #define GIO_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GIO_AVAILABLE_MACRO_IN_2_82
1018
+ #define GIO_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GIO_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -82,7 +82,6 @@ typedef struct _GFileInfo GFileInfo;
82
82
  typedef struct _GFileAttributeMatcher GFileAttributeMatcher;
83
83
  typedef struct _GFileAttributeInfo GFileAttributeInfo;
84
84
  typedef struct _GFileAttributeInfoList GFileAttributeInfoList;
85
- typedef struct _GFileDescriptorBased GFileDescriptorBased;
86
85
  typedef struct _GFileInputStream GFileInputStream;
87
86
  typedef struct _GFileOutputStream GFileOutputStream;
88
87
  typedef struct _GFileIOStream GFileIOStream;
@@ -322,6 +322,14 @@ void g_settings_bind_with_mapping (GSettin
322
322
  GSettingsBindSetMapping set_mapping,
323
323
  gpointer user_data,
324
324
  GDestroyNotify destroy);
325
+ GIO_AVAILABLE_IN_2_82
326
+ void g_settings_bind_with_mapping_closures (GSettings *settings,
327
+ const char *key,
328
+ GObject *object,
329
+ const char *property,
330
+ GSettingsBindFlags flags,
331
+ GClosure *get_mapping,
332
+ GClosure *set_mapping);
325
333
  GIO_AVAILABLE_IN_ALL
326
334
  void g_settings_bind_writable (GSettings *settings,
327
335
  const gchar *key,
@@ -42,11 +42,11 @@ G_BEGIN_DECLS
42
42
  * GVfsFileLookupFunc:
43
43
  * @vfs: a #GVfs
44
44
  * @identifier: the identifier to look up a #GFile for. This can either
45
- * be an URI or a parse name as returned by g_file_get_parse_name()
45
+ * be a URI or a parse name as returned by g_file_get_parse_name()
46
46
  * @user_data: user data passed to the function
47
47
  *
48
48
  * This function type is used by g_vfs_register_uri_scheme() to make it
49
- * possible for a client to associate an URI scheme to a different #GFile
49
+ * possible for a client to associate a URI scheme to a different #GFile
50
50
  * implementation.
51
51
  *
52
52
  * The client should return a reference to the new file that has been
@@ -984,3 +984,37 @@
984
984
  #define GI_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GI_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GI_DEPRECATED_IN_2_82 GI_DEPRECATED
990
+ #define GI_DEPRECATED_IN_2_82_FOR(f) GI_DEPRECATED_FOR (f)
991
+ #define GI_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GI_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GI_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GI_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GI_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GI_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GI_DEPRECATED_IN_2_82 _GI_EXTERN
999
+ #define GI_DEPRECATED_IN_2_82_FOR(f) _GI_EXTERN
1000
+ #define GI_DEPRECATED_MACRO_IN_2_82
1001
+ #define GI_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GI_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GI_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GI_DEPRECATED_TYPE_IN_2_82
1005
+ #define GI_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GI_AVAILABLE_IN_2_82 GI_UNAVAILABLE (2, 82)
1010
+ #define GI_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GI_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GI_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GI_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GI_AVAILABLE_IN_2_82 _GI_EXTERN
1016
+ #define GI_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GI_AVAILABLE_MACRO_IN_2_82
1018
+ #define GI_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GI_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -32,16 +32,31 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_ARG_INFO (gi_arg_info_get_type ())
36
+
37
+ /**
38
+ * GI_ARG_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.ArgInfo] or derived pointer into a
42
+ * `(GIArgInfo*)` pointer.
43
+ *
44
+ * Depending on the current debugging level, this function may invoke
45
+ * certain runtime checks to identify invalid casts.
46
+ *
47
+ * Since: 2.80
48
+ */
49
+ #define GI_ARG_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_ARG_INFO, GIArgInfo))
50
+
35
51
  /**
36
52
  * GI_IS_ARG_INFO:
37
53
  * @info: an info structure
38
54
  *
39
- * Checks if @info is a [class@GIRepository.ArgInfo].
55
+ * Checks if @info is a [class@GIRepository.ArgInfo] (or a derived type).
40
56
  *
41
57
  * Since: 2.80
42
58
  */
43
- #define GI_IS_ARG_INFO(info) \
44
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_ARG)
59
+ #define GI_IS_ARG_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_ARG_INFO))
45
60
 
46
61
 
47
62
  GI_AVAILABLE_IN_ALL
@@ -69,15 +84,17 @@ GI_AVAILABLE_IN_ALL
69
84
  GIScopeType gi_arg_info_get_scope (GIArgInfo *info);
70
85
 
71
86
  GI_AVAILABLE_IN_ALL
72
- gint gi_arg_info_get_closure_index (GIArgInfo *info);
87
+ gboolean gi_arg_info_get_closure_index (GIArgInfo *info,
88
+ unsigned int *out_closure_index);
73
89
 
74
90
  GI_AVAILABLE_IN_ALL
75
- gint gi_arg_info_get_destroy_index (GIArgInfo *info);
91
+ gboolean gi_arg_info_get_destroy_index (GIArgInfo *info,
92
+ unsigned int *out_destroy_index);
76
93
 
77
94
  GI_AVAILABLE_IN_ALL
78
95
  GITypeInfo * gi_arg_info_get_type_info (GIArgInfo *info);
79
96
 
80
97
  GI_AVAILABLE_IN_ALL
81
- void gi_arg_info_load_type (GIArgInfo *info,
98
+ void gi_arg_info_load_type_info (GIArgInfo *info,
82
99
  GITypeInfo *type);
83
100
  G_END_DECLS
@@ -44,39 +44,71 @@ G_BEGIN_DECLS
44
44
  */
45
45
  typedef struct {
46
46
  /*< private >*/
47
- gpointer data;
48
- gpointer data2;
49
- gpointer data3;
50
- gpointer data4;
47
+ void *data;
48
+ void *_dummy[4];
51
49
  } GIAttributeIter;
52
50
 
53
- #define GI_TYPE_BASE_INFO (gi_base_info_get_type ())
51
+ /**
52
+ * GI_ATTRIBUTE_ITER_INIT:
53
+ *
54
+ * Initialise a stack-allocated [type@GIRepository.AttributeIter] to a value
55
+ * suitable for passing to the first call to an ‘iterate’ function.
56
+ *
57
+ * Since: 2.80
58
+ */
59
+ #define GI_ATTRIBUTE_ITER_INIT { NULL, { NULL, } }
60
+
61
+ #define GI_TYPE_BASE_INFO (gi_base_info_get_type ())
62
+
63
+ /**
64
+ * GI_BASE_INFO:
65
+ * @info: Info object which is subject to casting.
66
+ *
67
+ * Casts a [type@GIRepository.BaseInfo] or derived pointer into a
68
+ * `(GIBaseInfo*)` pointer.
69
+ *
70
+ * Depending on the current debugging level, this function may invoke
71
+ * certain runtime checks to identify invalid casts.
72
+ *
73
+ * Since: 2.80
74
+ */
75
+ #define GI_BASE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_BASE_INFO, GIBaseInfo))
54
76
 
77
+ /**
78
+ * GI_IS_BASE_INFO:
79
+ * @info: Instance to check for being a `GI_TYPE_BASE_INFO`.
80
+ *
81
+ * Checks whether a valid [type@GObject.TypeInstance] pointer is of type
82
+ * `GI_TYPE_BASE_INFO` (or a derived type).
83
+ *
84
+ * Since: 2.80
85
+ */
86
+ #define GI_IS_BASE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_BASE_INFO))
55
87
 
56
88
  GI_AVAILABLE_IN_ALL
57
89
  GType gi_base_info_get_type (void) G_GNUC_CONST;
58
90
 
59
91
  GI_AVAILABLE_IN_ALL
60
- GIBaseInfo * gi_base_info_ref (GIBaseInfo *info);
92
+ GIBaseInfo * gi_base_info_ref (void *info);
61
93
 
62
94
  GI_AVAILABLE_IN_ALL
63
- void gi_base_info_unref (GIBaseInfo *info);
95
+ void gi_base_info_unref (void *info);
64
96
 
65
97
  GI_AVAILABLE_IN_ALL
66
- GIInfoType gi_base_info_get_info_type (GIBaseInfo *info);
98
+ void gi_base_info_clear (void *info);
67
99
 
68
100
  GI_AVAILABLE_IN_ALL
69
- const gchar * gi_base_info_get_name (GIBaseInfo *info);
101
+ const char * gi_base_info_get_name (GIBaseInfo *info);
70
102
 
71
103
  GI_AVAILABLE_IN_ALL
72
- const gchar * gi_base_info_get_namespace (GIBaseInfo *info);
104
+ const char * gi_base_info_get_namespace (GIBaseInfo *info);
73
105
 
74
106
  GI_AVAILABLE_IN_ALL
75
107
  gboolean gi_base_info_is_deprecated (GIBaseInfo *info);
76
108
 
77
109
  GI_AVAILABLE_IN_ALL
78
- const gchar * gi_base_info_get_attribute (GIBaseInfo *info,
79
- const gchar *name);
110
+ const char * gi_base_info_get_attribute (GIBaseInfo *info,
111
+ const char *name);
80
112
 
81
113
  GI_AVAILABLE_IN_ALL
82
114
  gboolean gi_base_info_iterate_attributes (GIBaseInfo *info,
@@ -94,10 +126,4 @@ GI_AVAILABLE_IN_ALL
94
126
  gboolean gi_base_info_equal (GIBaseInfo *info1,
95
127
  GIBaseInfo *info2);
96
128
 
97
- GI_AVAILABLE_IN_ALL
98
- GIBaseInfo * gi_info_new (GIInfoType type,
99
- GIBaseInfo *container,
100
- GITypelib *typelib,
101
- guint32 offset);
102
-
103
129
  G_END_DECLS
@@ -32,6 +32,22 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_CALLABLE_INFO (gi_callable_info_get_type ())
36
+
37
+ /**
38
+ * GI_CALLABLE_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.CallableInfo] or derived pointer into a
42
+ * `(GICallableInfo*)` pointer.
43
+ *
44
+ * Depending on the current debugging level, this function may invoke
45
+ * certain runtime checks to identify invalid casts.
46
+ *
47
+ * Since: 2.80
48
+ */
49
+ #define GI_CALLABLE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_CALLABLE_INFO, GICallableInfo))
50
+
35
51
  /**
36
52
  * GI_IS_CALLABLE_INFO:
37
53
  * @info: an info structure
@@ -40,11 +56,7 @@ G_BEGIN_DECLS
40
56
  *
41
57
  * Since: 2.80
42
58
  */
43
- #define GI_IS_CALLABLE_INFO(info) \
44
- ((gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_FUNCTION) || \
45
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_CALLBACK) || \
46
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_SIGNAL) || \
47
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_VFUNC))
59
+ #define GI_IS_CALLABLE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_CALLABLE_INFO))
48
60
 
49
61
 
50
62
  GI_AVAILABLE_IN_ALL
@@ -61,8 +73,8 @@ void gi_callable_info_load_return_type (GICallableInfo *info,
61
73
  GITypeInfo *type);
62
74
 
63
75
  GI_AVAILABLE_IN_ALL
64
- const gchar * gi_callable_info_get_return_attribute (GICallableInfo *info,
65
- const gchar *name);
76
+ const char * gi_callable_info_get_return_attribute (GICallableInfo *info,
77
+ const char *name);
66
78
 
67
79
  GI_AVAILABLE_IN_ALL
68
80
  gboolean gi_callable_info_iterate_return_attributes (GICallableInfo *info,
@@ -80,27 +92,25 @@ GI_AVAILABLE_IN_ALL
80
92
  gboolean gi_callable_info_skip_return (GICallableInfo *info);
81
93
 
82
94
  GI_AVAILABLE_IN_ALL
83
- guint gi_callable_info_get_n_args (GICallableInfo *info);
95
+ unsigned int gi_callable_info_get_n_args (GICallableInfo *info);
84
96
 
85
97
  GI_AVAILABLE_IN_ALL
86
98
  GIArgInfo * gi_callable_info_get_arg (GICallableInfo *info,
87
- guint n);
99
+ unsigned int n);
88
100
 
89
101
  GI_AVAILABLE_IN_ALL
90
102
  void gi_callable_info_load_arg (GICallableInfo *info,
91
- guint n,
103
+ unsigned int n,
92
104
  GIArgInfo *arg);
93
105
 
94
106
  GI_AVAILABLE_IN_ALL
95
107
  gboolean gi_callable_info_invoke (GICallableInfo *info,
96
- gpointer function,
108
+ void *function,
97
109
  const GIArgument *in_args,
98
- gsize n_in_args,
99
- const GIArgument *out_args,
100
- gsize n_out_args,
110
+ size_t n_in_args,
111
+ GIArgument *out_args,
112
+ size_t n_out_args,
101
113
  GIArgument *return_value,
102
- gboolean is_method,
103
- gboolean throws,
104
114
  GError **error);
105
115
 
106
116
  GI_AVAILABLE_IN_ALL
@@ -31,6 +31,22 @@
31
31
 
32
32
  G_BEGIN_DECLS
33
33
 
34
+ #define GI_TYPE_CALLBACK_INFO (gi_callback_info_get_type ())
35
+
36
+ /**
37
+ * GI_CALLBACK_INFO:
38
+ * @info: Info object which is subject to casting.
39
+ *
40
+ * Casts a [type@GIRepository.CallbackInfo] or derived pointer into a
41
+ * `(GICallbackInfo*)` pointer.
42
+ *
43
+ * Depending on the current debugging level, this function may invoke
44
+ * certain runtime checks to identify invalid casts.
45
+ *
46
+ * Since: 2.80
47
+ */
48
+ #define GI_CALLBACK_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_CALLBACK_INFO, GICallbackInfo))
49
+
34
50
  /**
35
51
  * GI_IS_CALLBACK_INFO:
36
52
  * @info: an info structure
@@ -39,7 +55,6 @@ G_BEGIN_DECLS
39
55
  *
40
56
  * Since: 2.80
41
57
  */
42
- #define GI_IS_CALLBACK_INFO(info) \
43
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_CALLBACK)
58
+ #define GI_IS_CALLBACK_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_CALLBACK_INFO))
44
59
 
45
60
  G_END_DECLS
@@ -32,16 +32,31 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_CONSTANT_INFO (gi_constant_info_get_type ())
36
+
37
+ /**
38
+ * GI_CONSTANT_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.ConstantInfo] or derived pointer into a
42
+ * `(GIConstantInfo*)` pointer.
43
+ *
44
+ * Depending on the current debugging level, this function may invoke
45
+ * certain runtime checks to identify invalid casts.
46
+ *
47
+ * Since: 2.80
48
+ */
49
+ #define GI_CONSTANT_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_CONSTANT_INFO, GIConstantInfo))
50
+
35
51
  /**
36
52
  * GI_IS_CONSTANT_INFO:
37
53
  * @info: an info structure
38
54
  *
39
- * Checks if @info is a [class@GIRepository.ConstantInfo].
55
+ * Checks if @info is a [class@GIRepository.ConstantInfo] (or a derived type).
40
56
  *
41
57
  * Since: 2.80
42
58
  */
43
- #define GI_IS_CONSTANT_INFO(info) \
44
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_CONSTANT)
59
+ #define GI_IS_CONSTANT_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_CONSTANT_INFO))
45
60
 
46
61
 
47
62
  GI_AVAILABLE_IN_ALL
@@ -52,6 +67,6 @@ void gi_constant_info_free_value (GIConstantInfo *info,
52
67
  GIArgument *value);
53
68
 
54
69
  GI_AVAILABLE_IN_ALL
55
- gsize gi_constant_info_get_value (GIConstantInfo *info,
70
+ size_t gi_constant_info_get_value (GIConstantInfo *info,
56
71
  GIArgument *value);
57
72
  G_END_DECLS
@@ -32,52 +32,51 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_ENUM_INFO (gi_enum_info_get_type ())
36
+
35
37
  /**
36
- * GI_IS_ENUM_INFO:
37
- * @info: an info structure
38
+ * GI_ENUM_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.EnumInfo] or derived pointer into a
42
+ * `(GIEnumInfo*)` pointer.
38
43
  *
39
- * Checks if @info is a [class@GIRepository.EnumInfo].
44
+ * Depending on the current debugging level, this function may invoke
45
+ * certain runtime checks to identify invalid casts.
40
46
  *
41
47
  * Since: 2.80
42
48
  */
43
- #define GI_IS_ENUM_INFO(info) \
44
- ((gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_ENUM) || \
45
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_FLAGS))
49
+ #define GI_ENUM_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_ENUM_INFO, GIEnumInfo))
46
50
 
47
51
  /**
48
- * GI_IS_VALUE_INFO:
52
+ * GI_IS_ENUM_INFO:
49
53
  * @info: an info structure
50
54
  *
51
- * Checks if @info is a [class@GIRepository.ValueInfo].
55
+ * Checks if @info is a [class@GIRepository.EnumInfo] (or a derived type).
52
56
  *
53
57
  * Since: 2.80
54
58
  */
55
- #define GI_IS_VALUE_INFO(info) \
56
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_VALUE)
59
+ #define GI_IS_ENUM_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_ENUM_INFO))
57
60
 
58
61
 
59
62
  GI_AVAILABLE_IN_ALL
60
- guint gi_enum_info_get_n_values (GIEnumInfo *info);
63
+ unsigned int gi_enum_info_get_n_values (GIEnumInfo *info);
61
64
 
62
65
  GI_AVAILABLE_IN_ALL
63
- GIValueInfo * gi_enum_info_get_value (GIEnumInfo *info,
64
- guint n);
66
+ GIValueInfo * gi_enum_info_get_value (GIEnumInfo *info,
67
+ unsigned int n);
65
68
 
66
69
  GI_AVAILABLE_IN_ALL
67
- guint gi_enum_info_get_n_methods (GIEnumInfo *info);
70
+ unsigned int gi_enum_info_get_n_methods (GIEnumInfo *info);
68
71
 
69
72
  GI_AVAILABLE_IN_ALL
70
- GIFunctionInfo * gi_enum_info_get_method (GIEnumInfo *info,
71
- guint n);
73
+ GIFunctionInfo * gi_enum_info_get_method (GIEnumInfo *info,
74
+ unsigned int n);
72
75
 
73
76
  GI_AVAILABLE_IN_ALL
74
77
  GITypeTag gi_enum_info_get_storage_type (GIEnumInfo *info);
75
78
 
76
79
  GI_AVAILABLE_IN_ALL
77
- const gchar * gi_enum_info_get_error_domain (GIEnumInfo *info);
78
-
79
-
80
- GI_AVAILABLE_IN_ALL
81
- gint64 gi_value_info_get_value (GIValueInfo *info);
80
+ const char * gi_enum_info_get_error_domain (GIEnumInfo *info);
82
81
 
83
82
  G_END_DECLS