@img/sharp-libvips-dev 1.0.1 → 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 (85) hide show
  1. package/include/expat.h +21 -10
  2. package/include/expat_config.h +11 -5
  3. package/include/ffi.h +12 -25
  4. package/include/freetype2/freetype/config/ftoption.h +1 -1
  5. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
  6. package/include/glib-2.0/gio/gapplication.h +6 -0
  7. package/include/glib-2.0/gio/giotypes.h +0 -1
  8. package/include/glib-2.0/girepository/giarginfo.h +23 -6
  9. package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
  10. package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
  11. package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
  12. package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
  13. package/include/glib-2.0/girepository/gienuminfo.h +20 -21
  14. package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
  15. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  16. package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
  17. package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
  18. package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
  19. package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
  20. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
  21. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  22. package/include/glib-2.0/girepository/girepository.h +53 -62
  23. package/include/glib-2.0/girepository/girffi.h +8 -7
  24. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  25. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  26. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  27. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  28. package/include/glib-2.0/girepository/gitypes.h +52 -104
  29. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  30. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  31. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  32. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  33. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  34. package/include/glib-2.0/glib/gbitlock.h +31 -0
  35. package/include/glib-2.0/glib/gmessages.h +8 -0
  36. package/include/glib-2.0/glib/gslice.h +2 -0
  37. package/include/glib-2.0/glib/gstrfuncs.h +24 -18
  38. package/include/glib-2.0/glib/gthread.h +191 -3
  39. package/include/glib-2.0/glib-unix.h +7 -1
  40. package/include/glib-2.0/gobject/genums.h +6 -6
  41. package/include/glib-2.0/gobject/glib-types.h +11 -0
  42. package/include/glib-2.0/gobject/gsignal.h +16 -6
  43. package/include/hwy/aligned_allocator.h +171 -6
  44. package/include/hwy/base.h +1765 -543
  45. package/include/hwy/cache_control.h +24 -6
  46. package/include/hwy/detect_compiler_arch.h +23 -2
  47. package/include/hwy/detect_targets.h +56 -13
  48. package/include/hwy/foreach_target.h +24 -0
  49. package/include/hwy/highway.h +20 -3
  50. package/include/hwy/ops/arm_neon-inl.h +1086 -667
  51. package/include/hwy/ops/arm_sve-inl.h +1091 -235
  52. package/include/hwy/ops/emu128-inl.h +271 -196
  53. package/include/hwy/ops/generic_ops-inl.h +2270 -399
  54. package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
  55. package/include/hwy/ops/rvv-inl.h +1043 -311
  56. package/include/hwy/ops/scalar-inl.h +189 -159
  57. package/include/hwy/ops/set_macros-inl.h +66 -6
  58. package/include/hwy/ops/shared-inl.h +175 -56
  59. package/include/hwy/ops/wasm_128-inl.h +153 -136
  60. package/include/hwy/ops/x86_128-inl.h +1647 -646
  61. package/include/hwy/ops/x86_256-inl.h +1003 -370
  62. package/include/hwy/ops/x86_512-inl.h +948 -353
  63. package/include/hwy/per_target.h +4 -0
  64. package/include/hwy/profiler.h +648 -0
  65. package/include/hwy/robust_statistics.h +2 -2
  66. package/include/hwy/targets.h +18 -11
  67. package/include/hwy/timer.h +11 -0
  68. package/include/libpng16/png.h +32 -29
  69. package/include/libpng16/pngconf.h +2 -2
  70. package/include/libpng16/pnglibconf.h +7 -2
  71. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  72. package/include/libxml2/libxml/parser.h +16 -7
  73. package/include/libxml2/libxml/xmlIO.h +0 -1
  74. package/include/libxml2/libxml/xmlversion.h +4 -4
  75. package/include/pango-1.0/pango/pango-features.h +3 -3
  76. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  77. package/include/pixman-1/pixman-version.h +2 -2
  78. package/include/png.h +32 -29
  79. package/include/pngconf.h +2 -2
  80. package/include/pnglibconf.h +7 -2
  81. package/include/vips/connection.h +9 -3
  82. package/include/vips/util.h +0 -9
  83. package/include/vips/version.h +4 -4
  84. package/package.json +1 -1
  85. package/versions.json +11 -11
@@ -38,6 +38,7 @@
38
38
  #include <girepository/giconstantinfo.h>
39
39
  #include <girepository/gienuminfo.h>
40
40
  #include <girepository/gifieldinfo.h>
41
+ #include <girepository/giflagsinfo.h>
41
42
  #include <girepository/gifunctioninfo.h>
42
43
  #include <girepository/giinterfaceinfo.h>
43
44
  #include <girepository/giobjectinfo.h>
@@ -50,36 +51,18 @@
50
51
  #include <girepository/gitypes.h>
51
52
  #include <girepository/giunioninfo.h>
52
53
  #include <girepository/giunresolvedinfo.h>
54
+ #include <girepository/givalueinfo.h>
53
55
  #include <girepository/givfuncinfo.h>
54
56
 
55
57
  G_BEGIN_DECLS
56
58
 
57
- #define GI_TYPE_REPOSITORY (gi_repository_get_type ())
58
- #define GI_REPOSITORY(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GI_TYPE_REPOSITORY, GIRepository))
59
- #define GI_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GI_TYPE_REPOSITORY, GIRepositoryClass))
60
- #define GI_IS_REPOSITORY(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GI_TYPE_REPOSITORY))
61
- #define GI_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GI_TYPE_REPOSITORY))
62
- #define GI_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GI_TYPE_REPOSITORY, GIRepositoryClass))
63
-
64
- typedef struct _GIRepository GIRepository;
65
- typedef struct _GIRepositoryClass GIRepositoryClass;
66
- typedef struct _GIRepositoryPrivate GIRepositoryPrivate;
67
-
68
- struct _GIRepository
69
- {
70
- /*< private >*/
71
- GObject parent;
72
- GIRepositoryPrivate *priv;
73
- };
74
-
75
- struct _GIRepositoryClass
76
- {
77
- /*< private >*/
78
- GObjectClass parent;
79
- };
59
+ #define GI_TYPE_REPOSITORY (gi_repository_get_type ())
60
+ GI_AVAILABLE_IN_ALL
61
+ G_DECLARE_FINAL_TYPE (GIRepository, gi_repository, GI, REPOSITORY, GObject)
80
62
 
81
63
  /**
82
64
  * GIRepositoryLoadFlags:
65
+ * @GI_REPOSITORY_LOAD_FLAG_NONE: No flags set.
83
66
  * @GI_REPOSITORY_LOAD_FLAG_LAZY: Lazily load the typelib.
84
67
  *
85
68
  * Flags that control how a typelib is loaded.
@@ -88,28 +71,30 @@ struct _GIRepositoryClass
88
71
  */
89
72
  typedef enum
90
73
  {
74
+ GI_REPOSITORY_LOAD_FLAG_NONE = 0,
91
75
  GI_REPOSITORY_LOAD_FLAG_LAZY = 1 << 0
92
76
  } GIRepositoryLoadFlags;
93
77
 
94
78
  /* Repository */
95
79
 
96
80
  GI_AVAILABLE_IN_ALL
97
- GType gi_repository_get_type (void) G_GNUC_CONST;
81
+ GIRepository *gi_repository_new (void);
98
82
 
99
83
  GI_AVAILABLE_IN_ALL
100
- GIRepository *gi_repository_get_default (void);
84
+ void gi_repository_prepend_search_path (GIRepository *repository,
85
+ const char *directory);
101
86
 
102
87
  GI_AVAILABLE_IN_ALL
103
- GIRepository *gi_repository_new (void);
88
+ void gi_repository_prepend_library_path (GIRepository *repository,
89
+ const char *directory);
104
90
 
105
91
  GI_AVAILABLE_IN_ALL
106
- void gi_repository_prepend_search_path (const char *directory);
92
+ const char * const * gi_repository_get_search_path (GIRepository *repository,
93
+ size_t *n_paths_out);
107
94
 
108
95
  GI_AVAILABLE_IN_ALL
109
- void gi_repository_prepend_library_path (const char *directory);
110
-
111
- GI_AVAILABLE_IN_ALL
112
- const char * const * gi_repository_get_search_path (size_t *n_paths_out);
96
+ const char * const *gi_repository_get_library_path (GIRepository *repository,
97
+ size_t *n_paths_out);
113
98
 
114
99
  GI_AVAILABLE_IN_ALL
115
100
  const char * gi_repository_load_typelib (GIRepository *repository,
@@ -119,44 +104,47 @@ const char * gi_repository_load_typelib (GIRepository *repository,
119
104
 
120
105
  GI_AVAILABLE_IN_ALL
121
106
  gboolean gi_repository_is_registered (GIRepository *repository,
122
- const gchar *namespace_,
123
- const gchar *version);
107
+ const char *namespace_,
108
+ const char *version);
124
109
 
125
110
  GI_AVAILABLE_IN_ALL
126
111
  GIBaseInfo * gi_repository_find_by_name (GIRepository *repository,
127
- const gchar *namespace_,
128
- const gchar *name);
112
+ const char *namespace_,
113
+ const char *name);
129
114
 
130
115
  GI_AVAILABLE_IN_ALL
131
116
  char ** gi_repository_enumerate_versions (GIRepository *repository,
132
- const gchar *namespace_,
117
+ const char *namespace_,
133
118
  size_t *n_versions_out);
134
119
 
135
120
  GI_AVAILABLE_IN_ALL
136
121
  GITypelib * gi_repository_require (GIRepository *repository,
137
- const gchar *namespace_,
138
- const gchar *version,
122
+ const char *namespace_,
123
+ const char *version,
139
124
  GIRepositoryLoadFlags flags,
140
125
  GError **error);
141
126
 
142
127
  GI_AVAILABLE_IN_ALL
143
128
  GITypelib * gi_repository_require_private (GIRepository *repository,
144
- const gchar *typelib_dir,
145
- const gchar *namespace_,
146
- const gchar *version,
129
+ const char *typelib_dir,
130
+ const char *namespace_,
131
+ const char *version,
147
132
  GIRepositoryLoadFlags flags,
148
133
  GError **error);
149
134
 
150
135
  GI_AVAILABLE_IN_ALL
151
- gchar ** gi_repository_get_immediate_dependencies (GIRepository *repository,
152
- const gchar *namespace_);
136
+ char ** gi_repository_get_immediate_dependencies (GIRepository *repository,
137
+ const char *namespace_,
138
+ size_t *n_dependencies_out);
153
139
 
154
140
  GI_AVAILABLE_IN_ALL
155
- gchar ** gi_repository_get_dependencies (GIRepository *repository,
156
- const gchar *namespace_);
141
+ char ** gi_repository_get_dependencies (GIRepository *repository,
142
+ const char *namespace_,
143
+ size_t *n_dependencies_out);
157
144
 
158
145
  GI_AVAILABLE_IN_ALL
159
- gchar ** gi_repository_get_loaded_namespaces (GIRepository *repository);
146
+ char ** gi_repository_get_loaded_namespaces (GIRepository *repository,
147
+ size_t *n_namespaces_out);
160
148
 
161
149
  GI_AVAILABLE_IN_ALL
162
150
  GIBaseInfo * gi_repository_find_by_gtype (GIRepository *repository,
@@ -165,34 +153,35 @@ GIBaseInfo * gi_repository_find_by_gtype (GIRepository *repository,
165
153
  GI_AVAILABLE_IN_ALL
166
154
  void gi_repository_get_object_gtype_interfaces (GIRepository *repository,
167
155
  GType gtype,
168
- gsize *n_interfaces_out,
156
+ size_t *n_interfaces_out,
169
157
  GIInterfaceInfo ***interfaces_out);
170
158
 
171
159
  GI_AVAILABLE_IN_ALL
172
- guint gi_repository_get_n_infos (GIRepository *repository,
173
- const gchar *namespace_);
160
+ unsigned int gi_repository_get_n_infos (GIRepository *repository,
161
+ const char *namespace_);
174
162
 
175
163
  GI_AVAILABLE_IN_ALL
176
164
  GIBaseInfo * gi_repository_get_info (GIRepository *repository,
177
- const gchar *namespace_,
178
- guint idx);
165
+ const char *namespace_,
166
+ unsigned int idx);
179
167
 
180
168
  GI_AVAILABLE_IN_ALL
181
169
  GIEnumInfo * gi_repository_find_by_error_domain (GIRepository *repository,
182
170
  GQuark domain);
183
171
 
184
172
  GI_AVAILABLE_IN_ALL
185
- const gchar * gi_repository_get_typelib_path (GIRepository *repository,
186
- const gchar *namespace_);
173
+ const char * gi_repository_get_typelib_path (GIRepository *repository,
174
+ const char *namespace_);
187
175
  GI_AVAILABLE_IN_ALL
188
- const gchar * gi_repository_get_shared_library (GIRepository *repository,
189
- const gchar *namespace_);
176
+ const char * const *gi_repository_get_shared_libraries (GIRepository *repository,
177
+ const char *namespace_,
178
+ size_t *out_n_elements);
190
179
  GI_AVAILABLE_IN_ALL
191
- const gchar * gi_repository_get_c_prefix (GIRepository *repository,
192
- const gchar *namespace_);
180
+ const char * gi_repository_get_c_prefix (GIRepository *repository,
181
+ const char *namespace_);
193
182
  GI_AVAILABLE_IN_ALL
194
- const gchar * gi_repository_get_version (GIRepository *repository,
195
- const gchar *namespace_);
183
+ const char * gi_repository_get_version (GIRepository *repository,
184
+ const char *namespace_);
196
185
 
197
186
 
198
187
  GI_AVAILABLE_IN_ALL
@@ -248,9 +237,11 @@ GQuark gi_repository_error_quark (void);
248
237
  GI_AVAILABLE_IN_ALL
249
238
  void gi_cclosure_marshal_generic (GClosure *closure,
250
239
  GValue *return_gvalue,
251
- guint n_param_values,
240
+ unsigned int n_param_values,
252
241
  const GValue *param_values,
253
- gpointer invocation_hint,
254
- gpointer marshal_data);
242
+ void *invocation_hint,
243
+ void *marshal_data);
244
+
245
+ #include <girepository/girepository-autocleanups.h>
255
246
 
256
247
  G_END_DECLS
@@ -65,9 +65,9 @@ typedef void (*GIFFIClosureCallback) (ffi_cif *cif,
65
65
  */
66
66
  typedef struct {
67
67
  ffi_cif cif;
68
- gpointer native_address;
68
+ void *native_address;
69
69
  /*< private >*/
70
- gpointer padding[3];
70
+ void *padding[3];
71
71
  } GIFunctionInvoker;
72
72
 
73
73
  /**
@@ -92,7 +92,7 @@ void gi_type_info_extract_ffi_return_value (GITypeInfo
92
92
 
93
93
  GI_AVAILABLE_IN_ALL
94
94
  void gi_type_tag_extract_ffi_return_value (GITypeTag return_tag,
95
- GIInfoType interface_type,
95
+ GType interface_type,
96
96
  GIFFIReturnValue *ffi_value,
97
97
  GIArgument *arg);
98
98
 
@@ -102,23 +102,24 @@ gboolean gi_function_info_prep_invoker (GIFunctionInfo *info,
102
102
  GError **error);
103
103
 
104
104
  GI_AVAILABLE_IN_ALL
105
- gboolean gi_function_invoker_new_for_address (gpointer addr,
105
+ gboolean gi_function_invoker_new_for_address (void *addr,
106
106
  GICallableInfo *info,
107
107
  GIFunctionInvoker *invoker,
108
108
  GError **error);
109
109
 
110
110
  GI_AVAILABLE_IN_ALL
111
- void gi_function_invoker_destroy (GIFunctionInvoker *invoker);
111
+ void gi_function_invoker_clear (GIFunctionInvoker *invoker);
112
112
 
113
+ G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (GIFunctionInvoker, gi_function_invoker_clear)
113
114
 
114
115
  GI_AVAILABLE_IN_ALL
115
116
  ffi_closure * gi_callable_info_create_closure (GICallableInfo *callable_info,
116
117
  ffi_cif *cif,
117
118
  GIFFIClosureCallback callback,
118
- gpointer user_data);
119
+ void *user_data);
119
120
 
120
121
  GI_AVAILABLE_IN_ALL
121
- gpointer * gi_callable_info_get_closure_native_address (GICallableInfo *callable_info,
122
+ void ** gi_callable_info_get_closure_native_address (GICallableInfo *callable_info,
122
123
  ffi_closure *closure);
123
124
 
124
125
  GI_AVAILABLE_IN_ALL
@@ -33,16 +33,31 @@
33
33
 
34
34
  G_BEGIN_DECLS
35
35
 
36
+ #define GI_TYPE_SIGNAL_INFO (gi_signal_info_get_type ())
37
+
38
+ /**
39
+ * GI_SIGNAL_INFO:
40
+ * @info: Info object which is subject to casting.
41
+ *
42
+ * Casts a [type@GIRepository.SignalInfo] or derived pointer into a
43
+ * `(GISignalInfo*)` pointer.
44
+ *
45
+ * Depending on the current debugging level, this function may invoke
46
+ * certain runtime checks to identify invalid casts.
47
+ *
48
+ * Since: 2.80
49
+ */
50
+ #define GI_SIGNAL_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_SIGNAL_INFO, GISignalInfo))
51
+
36
52
  /**
37
53
  * GI_IS_SIGNAL_INFO:
38
54
  * @info: an info structure
39
55
  *
40
- * Checks if @info is a [class@GIRepository.SignalInfo].
56
+ * Checks if @info is a [class@GIRepository.SignalInfo] (or a derived type).
41
57
  *
42
58
  * Since: 2.80
43
59
  */
44
- #define GI_IS_SIGNAL_INFO(info) \
45
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_SIGNAL)
60
+ #define GI_IS_SIGNAL_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_SIGNAL_INFO))
46
61
 
47
62
 
48
63
  GI_AVAILABLE_IN_ALL
@@ -32,45 +32,60 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_STRUCT_INFO (gi_struct_info_get_type ())
36
+
37
+ /**
38
+ * GI_STRUCT_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.StructInfo] or derived pointer into a
42
+ * `(GIStructInfo*)` 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_STRUCT_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_STRUCT_INFO, GIStructInfo))
50
+
35
51
  /**
36
52
  * GI_IS_STRUCT_INFO:
37
53
  * @info: an info structure
38
54
  *
39
- * Checks if @info is a [class@GIRepository.StructInfo].
55
+ * Checks if @info is a [class@GIRepository.StructInfo] (or a derived type).
40
56
  *
41
57
  * Since: 2.80
42
58
  */
43
- #define GI_IS_STRUCT_INFO(info) \
44
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_STRUCT)
59
+ #define GI_IS_STRUCT_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_STRUCT_INFO))
45
60
 
46
61
 
47
62
  GI_AVAILABLE_IN_ALL
48
- guint gi_struct_info_get_n_fields (GIStructInfo *info);
63
+ unsigned int gi_struct_info_get_n_fields (GIStructInfo *info);
49
64
 
50
65
  GI_AVAILABLE_IN_ALL
51
66
  GIFieldInfo * gi_struct_info_get_field (GIStructInfo *info,
52
- guint n);
67
+ unsigned int n);
53
68
 
54
69
  GI_AVAILABLE_IN_ALL
55
70
  GIFieldInfo * gi_struct_info_find_field (GIStructInfo *info,
56
- const gchar *name);
71
+ const char *name);
57
72
 
58
73
  GI_AVAILABLE_IN_ALL
59
- guint gi_struct_info_get_n_methods (GIStructInfo *info);
74
+ unsigned int gi_struct_info_get_n_methods (GIStructInfo *info);
60
75
 
61
76
  GI_AVAILABLE_IN_ALL
62
77
  GIFunctionInfo * gi_struct_info_get_method (GIStructInfo *info,
63
- guint n);
78
+ unsigned int n);
64
79
 
65
80
  GI_AVAILABLE_IN_ALL
66
81
  GIFunctionInfo * gi_struct_info_find_method (GIStructInfo *info,
67
- const gchar *name);
82
+ const char *name);
68
83
 
69
84
  GI_AVAILABLE_IN_ALL
70
- gsize gi_struct_info_get_size (GIStructInfo *info);
85
+ size_t gi_struct_info_get_size (GIStructInfo *info);
71
86
 
72
87
  GI_AVAILABLE_IN_ALL
73
- gsize gi_struct_info_get_alignment (GIStructInfo *info);
88
+ size_t gi_struct_info_get_alignment (GIStructInfo *info);
74
89
 
75
90
  GI_AVAILABLE_IN_ALL
76
91
  gboolean gi_struct_info_is_gtype_struct (GIStructInfo *info);
@@ -32,16 +32,31 @@
32
32
 
33
33
  G_BEGIN_DECLS
34
34
 
35
+ #define GI_TYPE_TYPE_INFO (gi_type_info_get_type ())
36
+
37
+ /**
38
+ * GI_TYPE_INFO:
39
+ * @info: Info object which is subject to casting.
40
+ *
41
+ * Casts a [type@GIRepository.TypeInfo] or derived pointer into a
42
+ * `(GITypeInfo*)` 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_TYPE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_TYPE_INFO, GITypeInfo))
50
+
35
51
  /**
36
52
  * GI_IS_TYPE_INFO:
37
53
  * @info: an info structure
38
54
  *
39
- * Checks if @info is a [alias@GIRepository.TypeInfo].
55
+ * Checks if @info is a [alias@GIRepository.TypeInfo] (or a derived type).
40
56
  *
41
57
  * Since: 2.80
42
58
  */
43
- #define GI_IS_TYPE_INFO(info) \
44
- (gi_base_info_get_info_type ((GIBaseInfo*) info) == GI_INFO_TYPE_TYPE)
59
+ #define GI_IS_TYPE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_TYPE_INFO))
45
60
 
46
61
  /**
47
62
  * GI_TYPE_TAG_IS_BASIC:
@@ -76,11 +91,7 @@ G_BEGIN_DECLS
76
91
  ((tag) >= GI_TYPE_TAG_GLIST && (tag) <= GI_TYPE_TAG_GHASH))
77
92
 
78
93
  GI_AVAILABLE_IN_ALL
79
- const gchar* gi_type_tag_to_string (GITypeTag type);
80
-
81
- GI_AVAILABLE_IN_ALL
82
- const gchar* gi_info_type_to_string (GIInfoType type);
83
-
94
+ const char * gi_type_tag_to_string (GITypeTag type);
84
95
 
85
96
  GI_AVAILABLE_IN_ALL
86
97
  gboolean gi_type_info_is_pointer (GITypeInfo *info);
@@ -89,17 +100,19 @@ GI_AVAILABLE_IN_ALL
89
100
  GITypeTag gi_type_info_get_tag (GITypeInfo *info);
90
101
 
91
102
  GI_AVAILABLE_IN_ALL
92
- GITypeInfo * gi_type_info_get_param_type (GITypeInfo *info,
93
- guint n);
103
+ GITypeInfo * gi_type_info_get_param_type (GITypeInfo *info,
104
+ unsigned int n);
94
105
 
95
106
  GI_AVAILABLE_IN_ALL
96
107
  GIBaseInfo * gi_type_info_get_interface (GITypeInfo *info);
97
108
 
98
109
  GI_AVAILABLE_IN_ALL
99
- gint gi_type_info_get_array_length_index (GITypeInfo *info);
110
+ gboolean gi_type_info_get_array_length_index (GITypeInfo *info,
111
+ unsigned int *out_length_index);
100
112
 
101
113
  GI_AVAILABLE_IN_ALL
102
- gssize gi_type_info_get_array_fixed_size (GITypeInfo *info);
114
+ gboolean gi_type_info_get_array_fixed_size (GITypeInfo *info,
115
+ size_t *out_size);
103
116
 
104
117
  GI_AVAILABLE_IN_ALL
105
118
  gboolean gi_type_info_is_zero_terminated (GITypeInfo *info);
@@ -112,20 +125,20 @@ GITypeTag gi_type_info_get_storage_type (GITypeInfo *info);
112
125
 
113
126
  GI_AVAILABLE_IN_ALL
114
127
  void gi_type_info_argument_from_hash_pointer (GITypeInfo *info,
115
- gpointer hash_pointer,
128
+ void *hash_pointer,
116
129
  GIArgument *arg);
117
130
 
118
131
  GI_AVAILABLE_IN_ALL
119
- gpointer gi_type_info_hash_pointer_from_argument (GITypeInfo *info,
132
+ void * gi_type_info_hash_pointer_from_argument (GITypeInfo *info,
120
133
  GIArgument *arg);
121
134
 
122
135
  GI_AVAILABLE_IN_ALL
123
136
  void gi_type_tag_argument_from_hash_pointer (GITypeTag storage_type,
124
- gpointer hash_pointer,
137
+ void *hash_pointer,
125
138
  GIArgument *arg);
126
139
 
127
140
  GI_AVAILABLE_IN_ALL
128
- gpointer gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type,
141
+ void * gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type,
129
142
  GIArgument *arg);
130
143
 
131
144
  G_END_DECLS
@@ -36,30 +36,26 @@ G_BEGIN_DECLS
36
36
 
37
37
  typedef struct _GITypelib GITypelib;
38
38
 
39
+ #define GI_TYPE_TYPELIB (gi_typelib_get_type ())
39
40
  GI_AVAILABLE_IN_ALL
40
- GITypelib * gi_typelib_new_from_memory (guint8 *memory,
41
- gsize len,
42
- GError **error);
41
+ GType gi_typelib_get_type (void) G_GNUC_CONST;
43
42
 
44
43
  GI_AVAILABLE_IN_ALL
45
- GITypelib * gi_typelib_new_from_const_memory (const guint8 *memory,
46
- gsize len,
47
- GError **error);
44
+ GITypelib * gi_typelib_new_from_bytes (GBytes *bytes,
45
+ GError **error);
48
46
 
49
47
  GI_AVAILABLE_IN_ALL
50
- GITypelib * gi_typelib_new_from_mapped_file (GMappedFile *mfile,
51
- GError **error);
52
-
48
+ GITypelib * gi_typelib_ref (GITypelib *typelib);
53
49
  GI_AVAILABLE_IN_ALL
54
- void gi_typelib_free (GITypelib *typelib);
50
+ void gi_typelib_unref (GITypelib *typelib);
55
51
 
56
52
  GI_AVAILABLE_IN_ALL
57
53
  gboolean gi_typelib_symbol (GITypelib *typelib,
58
- const gchar *symbol_name,
59
- gpointer *symbol);
54
+ const char *symbol_name,
55
+ void **symbol);
60
56
 
61
57
  GI_AVAILABLE_IN_ALL
62
- const gchar * gi_typelib_get_namespace (GITypelib *typelib);
58
+ const char * gi_typelib_get_namespace (GITypelib *typelib);
63
59
 
64
60
 
65
61
  G_END_DECLS