@revizly/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 (84) hide show
  1. package/include/expat.h +19 -9
  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.h +49 -62
  22. package/include/glib-2.0/girepository/girffi.h +7 -7
  23. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  24. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  25. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  26. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  27. package/include/glib-2.0/girepository/gitypes.h +52 -104
  28. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  29. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  30. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  31. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  32. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  33. package/include/glib-2.0/glib/gbitlock.h +31 -0
  34. package/include/glib-2.0/glib/gmessages.h +5 -0
  35. package/include/glib-2.0/glib/gslice.h +2 -0
  36. package/include/glib-2.0/glib/gstrfuncs.h +24 -18
  37. package/include/glib-2.0/glib/gthread.h +191 -3
  38. package/include/glib-2.0/glib-unix.h +7 -1
  39. package/include/glib-2.0/gobject/genums.h +6 -6
  40. package/include/glib-2.0/gobject/glib-types.h +11 -0
  41. package/include/hwy/aligned_allocator.h +171 -6
  42. package/include/hwy/base.h +1765 -543
  43. package/include/hwy/cache_control.h +24 -6
  44. package/include/hwy/detect_compiler_arch.h +23 -2
  45. package/include/hwy/detect_targets.h +56 -13
  46. package/include/hwy/foreach_target.h +24 -0
  47. package/include/hwy/highway.h +20 -3
  48. package/include/hwy/ops/arm_neon-inl.h +1086 -667
  49. package/include/hwy/ops/arm_sve-inl.h +1091 -235
  50. package/include/hwy/ops/emu128-inl.h +271 -196
  51. package/include/hwy/ops/generic_ops-inl.h +2270 -399
  52. package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
  53. package/include/hwy/ops/rvv-inl.h +1043 -311
  54. package/include/hwy/ops/scalar-inl.h +189 -159
  55. package/include/hwy/ops/set_macros-inl.h +66 -6
  56. package/include/hwy/ops/shared-inl.h +175 -56
  57. package/include/hwy/ops/wasm_128-inl.h +153 -136
  58. package/include/hwy/ops/x86_128-inl.h +1647 -646
  59. package/include/hwy/ops/x86_256-inl.h +1003 -370
  60. package/include/hwy/ops/x86_512-inl.h +948 -353
  61. package/include/hwy/per_target.h +4 -0
  62. package/include/hwy/profiler.h +648 -0
  63. package/include/hwy/robust_statistics.h +2 -2
  64. package/include/hwy/targets.h +18 -11
  65. package/include/hwy/timer.h +11 -0
  66. package/include/libde265/de265-version.h +36 -0
  67. package/include/libde265/de265.h +453 -0
  68. package/include/libde265/en265.h +218 -0
  69. package/include/libpng16/png.h +32 -29
  70. package/include/libpng16/pngconf.h +2 -2
  71. package/include/libpng16/pnglibconf.h +7 -2
  72. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  73. package/include/librsvg-2.0/librsvg/rsvg.h +7 -1
  74. package/include/libxml2/libxml/parser.h +16 -7
  75. package/include/libxml2/libxml/xmlIO.h +0 -1
  76. package/include/libxml2/libxml/xmlversion.h +4 -4
  77. package/include/pango-1.0/pango/pango-features.h +2 -2
  78. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  79. package/include/pixman-1/pixman-version.h +2 -2
  80. package/include/png.h +32 -29
  81. package/include/pngconf.h +2 -2
  82. package/include/pnglibconf.h +7 -2
  83. package/package.json +1 -1
  84. package/versions.json +11 -10
@@ -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,33 +51,14 @@
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:
@@ -94,22 +76,23 @@ typedef enum
94
76
  /* Repository */
95
77
 
96
78
  GI_AVAILABLE_IN_ALL
97
- GType gi_repository_get_type (void) G_GNUC_CONST;
98
-
99
- GI_AVAILABLE_IN_ALL
100
- GIRepository *gi_repository_get_default (void);
79
+ GIRepository *gi_repository_new (void);
101
80
 
102
81
  GI_AVAILABLE_IN_ALL
103
- GIRepository *gi_repository_new (void);
82
+ void gi_repository_prepend_search_path (GIRepository *repository,
83
+ const char *directory);
104
84
 
105
85
  GI_AVAILABLE_IN_ALL
106
- void gi_repository_prepend_search_path (const char *directory);
86
+ void gi_repository_prepend_library_path (GIRepository *repository,
87
+ const char *directory);
107
88
 
108
89
  GI_AVAILABLE_IN_ALL
109
- void gi_repository_prepend_library_path (const char *directory);
90
+ const char * const * gi_repository_get_search_path (GIRepository *repository,
91
+ size_t *n_paths_out);
110
92
 
111
93
  GI_AVAILABLE_IN_ALL
112
- const char * const * gi_repository_get_search_path (size_t *n_paths_out);
94
+ const char * const *gi_repository_get_library_path (GIRepository *repository,
95
+ size_t *n_paths_out);
113
96
 
114
97
  GI_AVAILABLE_IN_ALL
115
98
  const char * gi_repository_load_typelib (GIRepository *repository,
@@ -119,44 +102,47 @@ const char * gi_repository_load_typelib (GIRepository *repository,
119
102
 
120
103
  GI_AVAILABLE_IN_ALL
121
104
  gboolean gi_repository_is_registered (GIRepository *repository,
122
- const gchar *namespace_,
123
- const gchar *version);
105
+ const char *namespace_,
106
+ const char *version);
124
107
 
125
108
  GI_AVAILABLE_IN_ALL
126
109
  GIBaseInfo * gi_repository_find_by_name (GIRepository *repository,
127
- const gchar *namespace_,
128
- const gchar *name);
110
+ const char *namespace_,
111
+ const char *name);
129
112
 
130
113
  GI_AVAILABLE_IN_ALL
131
114
  char ** gi_repository_enumerate_versions (GIRepository *repository,
132
- const gchar *namespace_,
115
+ const char *namespace_,
133
116
  size_t *n_versions_out);
134
117
 
135
118
  GI_AVAILABLE_IN_ALL
136
119
  GITypelib * gi_repository_require (GIRepository *repository,
137
- const gchar *namespace_,
138
- const gchar *version,
120
+ const char *namespace_,
121
+ const char *version,
139
122
  GIRepositoryLoadFlags flags,
140
123
  GError **error);
141
124
 
142
125
  GI_AVAILABLE_IN_ALL
143
126
  GITypelib * gi_repository_require_private (GIRepository *repository,
144
- const gchar *typelib_dir,
145
- const gchar *namespace_,
146
- const gchar *version,
127
+ const char *typelib_dir,
128
+ const char *namespace_,
129
+ const char *version,
147
130
  GIRepositoryLoadFlags flags,
148
131
  GError **error);
149
132
 
150
133
  GI_AVAILABLE_IN_ALL
151
- gchar ** gi_repository_get_immediate_dependencies (GIRepository *repository,
152
- const gchar *namespace_);
134
+ char ** gi_repository_get_immediate_dependencies (GIRepository *repository,
135
+ const char *namespace_,
136
+ size_t *n_dependencies_out);
153
137
 
154
138
  GI_AVAILABLE_IN_ALL
155
- gchar ** gi_repository_get_dependencies (GIRepository *repository,
156
- const gchar *namespace_);
139
+ char ** gi_repository_get_dependencies (GIRepository *repository,
140
+ const char *namespace_,
141
+ size_t *n_dependencies_out);
157
142
 
158
143
  GI_AVAILABLE_IN_ALL
159
- gchar ** gi_repository_get_loaded_namespaces (GIRepository *repository);
144
+ char ** gi_repository_get_loaded_namespaces (GIRepository *repository,
145
+ size_t *n_namespaces_out);
160
146
 
161
147
  GI_AVAILABLE_IN_ALL
162
148
  GIBaseInfo * gi_repository_find_by_gtype (GIRepository *repository,
@@ -165,34 +151,35 @@ GIBaseInfo * gi_repository_find_by_gtype (GIRepository *repository,
165
151
  GI_AVAILABLE_IN_ALL
166
152
  void gi_repository_get_object_gtype_interfaces (GIRepository *repository,
167
153
  GType gtype,
168
- gsize *n_interfaces_out,
154
+ size_t *n_interfaces_out,
169
155
  GIInterfaceInfo ***interfaces_out);
170
156
 
171
157
  GI_AVAILABLE_IN_ALL
172
- guint gi_repository_get_n_infos (GIRepository *repository,
173
- const gchar *namespace_);
158
+ unsigned int gi_repository_get_n_infos (GIRepository *repository,
159
+ const char *namespace_);
174
160
 
175
161
  GI_AVAILABLE_IN_ALL
176
162
  GIBaseInfo * gi_repository_get_info (GIRepository *repository,
177
- const gchar *namespace_,
178
- guint idx);
163
+ const char *namespace_,
164
+ unsigned int idx);
179
165
 
180
166
  GI_AVAILABLE_IN_ALL
181
167
  GIEnumInfo * gi_repository_find_by_error_domain (GIRepository *repository,
182
168
  GQuark domain);
183
169
 
184
170
  GI_AVAILABLE_IN_ALL
185
- const gchar * gi_repository_get_typelib_path (GIRepository *repository,
186
- const gchar *namespace_);
171
+ const char * gi_repository_get_typelib_path (GIRepository *repository,
172
+ const char *namespace_);
187
173
  GI_AVAILABLE_IN_ALL
188
- const gchar * gi_repository_get_shared_library (GIRepository *repository,
189
- const gchar *namespace_);
174
+ const char * const *gi_repository_get_shared_libraries (GIRepository *repository,
175
+ const char *namespace_,
176
+ size_t *out_n_elements);
190
177
  GI_AVAILABLE_IN_ALL
191
- const gchar * gi_repository_get_c_prefix (GIRepository *repository,
192
- const gchar *namespace_);
178
+ const char * gi_repository_get_c_prefix (GIRepository *repository,
179
+ const char *namespace_);
193
180
  GI_AVAILABLE_IN_ALL
194
- const gchar * gi_repository_get_version (GIRepository *repository,
195
- const gchar *namespace_);
181
+ const char * gi_repository_get_version (GIRepository *repository,
182
+ const char *namespace_);
196
183
 
197
184
 
198
185
  GI_AVAILABLE_IN_ALL
@@ -248,9 +235,9 @@ GQuark gi_repository_error_quark (void);
248
235
  GI_AVAILABLE_IN_ALL
249
236
  void gi_cclosure_marshal_generic (GClosure *closure,
250
237
  GValue *return_gvalue,
251
- guint n_param_values,
238
+ unsigned int n_param_values,
252
239
  const GValue *param_values,
253
- gpointer invocation_hint,
254
- gpointer marshal_data);
240
+ void *invocation_hint,
241
+ void *marshal_data);
255
242
 
256
243
  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,23 @@ 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
113
 
114
114
  GI_AVAILABLE_IN_ALL
115
115
  ffi_closure * gi_callable_info_create_closure (GICallableInfo *callable_info,
116
116
  ffi_cif *cif,
117
117
  GIFFIClosureCallback callback,
118
- gpointer user_data);
118
+ void *user_data);
119
119
 
120
120
  GI_AVAILABLE_IN_ALL
121
- gpointer * gi_callable_info_get_closure_native_address (GICallableInfo *callable_info,
121
+ void ** gi_callable_info_get_closure_native_address (GICallableInfo *callable_info,
122
122
  ffi_closure *closure);
123
123
 
124
124
  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