@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.
- package/include/expat.h +21 -10
- package/include/expat_config.h +11 -5
- package/include/ffi.h +12 -25
- package/include/freetype2/freetype/config/ftoption.h +1 -1
- package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
- package/include/glib-2.0/gio/gapplication.h +6 -0
- package/include/glib-2.0/gio/giotypes.h +0 -1
- package/include/glib-2.0/girepository/giarginfo.h +23 -6
- package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
- package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
- package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
- package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
- package/include/glib-2.0/girepository/gienuminfo.h +20 -21
- package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
- package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
- package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
- package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
- package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
- package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
- package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
- package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
- package/include/glib-2.0/girepository/girepository.h +53 -62
- package/include/glib-2.0/girepository/girffi.h +8 -7
- package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
- package/include/glib-2.0/girepository/gistructinfo.h +26 -11
- package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
- package/include/glib-2.0/girepository/gitypelib.h +9 -13
- package/include/glib-2.0/girepository/gitypes.h +52 -104
- package/include/glib-2.0/girepository/giunioninfo.h +28 -12
- package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
- package/include/glib-2.0/girepository/givalueinfo.h +65 -0
- package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
- package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
- package/include/glib-2.0/glib/gbitlock.h +31 -0
- package/include/glib-2.0/glib/gmessages.h +8 -0
- package/include/glib-2.0/glib/gslice.h +2 -0
- package/include/glib-2.0/glib/gstrfuncs.h +24 -18
- package/include/glib-2.0/glib/gthread.h +191 -3
- package/include/glib-2.0/glib-unix.h +7 -1
- package/include/glib-2.0/gobject/genums.h +6 -6
- package/include/glib-2.0/gobject/glib-types.h +11 -0
- package/include/glib-2.0/gobject/gsignal.h +16 -6
- package/include/hwy/aligned_allocator.h +171 -6
- package/include/hwy/base.h +1765 -543
- package/include/hwy/cache_control.h +24 -6
- package/include/hwy/detect_compiler_arch.h +23 -2
- package/include/hwy/detect_targets.h +56 -13
- package/include/hwy/foreach_target.h +24 -0
- package/include/hwy/highway.h +20 -3
- package/include/hwy/ops/arm_neon-inl.h +1086 -667
- package/include/hwy/ops/arm_sve-inl.h +1091 -235
- package/include/hwy/ops/emu128-inl.h +271 -196
- package/include/hwy/ops/generic_ops-inl.h +2270 -399
- package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
- package/include/hwy/ops/rvv-inl.h +1043 -311
- package/include/hwy/ops/scalar-inl.h +189 -159
- package/include/hwy/ops/set_macros-inl.h +66 -6
- package/include/hwy/ops/shared-inl.h +175 -56
- package/include/hwy/ops/wasm_128-inl.h +153 -136
- package/include/hwy/ops/x86_128-inl.h +1647 -646
- package/include/hwy/ops/x86_256-inl.h +1003 -370
- package/include/hwy/ops/x86_512-inl.h +948 -353
- package/include/hwy/per_target.h +4 -0
- package/include/hwy/profiler.h +648 -0
- package/include/hwy/robust_statistics.h +2 -2
- package/include/hwy/targets.h +18 -11
- package/include/hwy/timer.h +11 -0
- package/include/libpng16/png.h +32 -29
- package/include/libpng16/pngconf.h +2 -2
- package/include/libpng16/pnglibconf.h +7 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/libxml2/libxml/parser.h +16 -7
- package/include/libxml2/libxml/xmlIO.h +0 -1
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-fontmap.h +7 -0
- package/include/pixman-1/pixman-version.h +2 -2
- package/include/png.h +32 -29
- package/include/pngconf.h +2 -2
- package/include/pnglibconf.h +7 -2
- package/include/vips/connection.h +9 -3
- package/include/vips/util.h +0 -9
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- 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
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
81
|
+
GIRepository *gi_repository_new (void);
|
|
98
82
|
|
|
99
83
|
GI_AVAILABLE_IN_ALL
|
|
100
|
-
GIRepository *
|
|
84
|
+
void gi_repository_prepend_search_path (GIRepository *repository,
|
|
85
|
+
const char *directory);
|
|
101
86
|
|
|
102
87
|
GI_AVAILABLE_IN_ALL
|
|
103
|
-
GIRepository *
|
|
88
|
+
void gi_repository_prepend_library_path (GIRepository *repository,
|
|
89
|
+
const char *directory);
|
|
104
90
|
|
|
105
91
|
GI_AVAILABLE_IN_ALL
|
|
106
|
-
|
|
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
|
-
|
|
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
|
|
123
|
-
const
|
|
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
|
|
128
|
-
const
|
|
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
|
|
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
|
|
138
|
-
const
|
|
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
|
|
145
|
-
const
|
|
146
|
-
const
|
|
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
|
-
|
|
152
|
-
const
|
|
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
|
-
|
|
156
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
156
|
+
size_t *n_interfaces_out,
|
|
169
157
|
GIInterfaceInfo ***interfaces_out);
|
|
170
158
|
|
|
171
159
|
GI_AVAILABLE_IN_ALL
|
|
172
|
-
|
|
173
|
-
const
|
|
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
|
|
178
|
-
|
|
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
|
|
186
|
-
const
|
|
173
|
+
const char * gi_repository_get_typelib_path (GIRepository *repository,
|
|
174
|
+
const char *namespace_);
|
|
187
175
|
GI_AVAILABLE_IN_ALL
|
|
188
|
-
const
|
|
189
|
-
|
|
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
|
|
192
|
-
const
|
|
180
|
+
const char * gi_repository_get_c_prefix (GIRepository *repository,
|
|
181
|
+
const char *namespace_);
|
|
193
182
|
GI_AVAILABLE_IN_ALL
|
|
194
|
-
const
|
|
195
|
-
const
|
|
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
|
-
|
|
240
|
+
unsigned int n_param_values,
|
|
252
241
|
const GValue *param_values,
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
68
|
+
void *native_address;
|
|
69
69
|
/*< private >*/
|
|
70
|
-
|
|
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
|
-
|
|
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 (
|
|
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
|
|
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
|
-
|
|
119
|
+
void *user_data);
|
|
119
120
|
|
|
120
121
|
GI_AVAILABLE_IN_ALL
|
|
121
|
-
|
|
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
|
-
|
|
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
|
-
|
|
67
|
+
unsigned int n);
|
|
53
68
|
|
|
54
69
|
GI_AVAILABLE_IN_ALL
|
|
55
70
|
GIFieldInfo * gi_struct_info_find_field (GIStructInfo *info,
|
|
56
|
-
const
|
|
71
|
+
const char *name);
|
|
57
72
|
|
|
58
73
|
GI_AVAILABLE_IN_ALL
|
|
59
|
-
|
|
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
|
-
|
|
78
|
+
unsigned int n);
|
|
64
79
|
|
|
65
80
|
GI_AVAILABLE_IN_ALL
|
|
66
81
|
GIFunctionInfo * gi_struct_info_find_method (GIStructInfo *info,
|
|
67
|
-
const
|
|
82
|
+
const char *name);
|
|
68
83
|
|
|
69
84
|
GI_AVAILABLE_IN_ALL
|
|
70
|
-
|
|
85
|
+
size_t gi_struct_info_get_size (GIStructInfo *info);
|
|
71
86
|
|
|
72
87
|
GI_AVAILABLE_IN_ALL
|
|
73
|
-
|
|
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
|
|
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
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
128
|
+
void *hash_pointer,
|
|
116
129
|
GIArgument *arg);
|
|
117
130
|
|
|
118
131
|
GI_AVAILABLE_IN_ALL
|
|
119
|
-
|
|
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
|
-
|
|
137
|
+
void *hash_pointer,
|
|
125
138
|
GIArgument *arg);
|
|
126
139
|
|
|
127
140
|
GI_AVAILABLE_IN_ALL
|
|
128
|
-
|
|
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
|
-
|
|
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 *
|
|
46
|
-
|
|
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 *
|
|
51
|
-
GError **error);
|
|
52
|
-
|
|
48
|
+
GITypelib * gi_typelib_ref (GITypelib *typelib);
|
|
53
49
|
GI_AVAILABLE_IN_ALL
|
|
54
|
-
void
|
|
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
|
|
59
|
-
|
|
54
|
+
const char *symbol_name,
|
|
55
|
+
void **symbol);
|
|
60
56
|
|
|
61
57
|
GI_AVAILABLE_IN_ALL
|
|
62
|
-
const
|
|
58
|
+
const char * gi_typelib_get_namespace (GITypelib *typelib);
|
|
63
59
|
|
|
64
60
|
|
|
65
61
|
G_END_DECLS
|