@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
package/include/expat.h CHANGED
@@ -11,11 +11,14 @@
11
11
  Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
12
12
  Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
13
13
  Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net>
14
- Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org>
14
+ Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
15
15
  Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
16
16
  Copyright (c) 2016 Thomas Beutlich <tc@tbeu.de>
17
17
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
18
18
  Copyright (c) 2022 Thijs Schreijer <thijs@thijsschreijer.nl>
19
+ Copyright (c) 2023 Hanno Böck <hanno@gentoo.org>
20
+ Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
21
+ Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
19
22
  Licensed under the MIT license:
20
23
 
21
24
  Permission is hereby granted, free of charge, to any person obtaining
@@ -269,7 +272,7 @@ XML_ParserCreate_MM(const XML_Char *encoding,
269
272
  const XML_Memory_Handling_Suite *memsuite,
270
273
  const XML_Char *namespaceSeparator);
271
274
 
272
- /* Prepare a parser object to be re-used. This is particularly
275
+ /* Prepare a parser object to be reused. This is particularly
273
276
  valuable when memory allocation overhead is disproportionately high,
274
277
  such as when a large number of small documnents need to be parsed.
275
278
  All handlers are cleared from the parser, except for the
@@ -951,7 +954,7 @@ XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser);
951
954
  XMLPARSEAPI(int)
952
955
  XML_GetCurrentByteCount(XML_Parser parser);
953
956
 
954
- /* If XML_CONTEXT_BYTES is defined, returns the input buffer, sets
957
+ /* If XML_CONTEXT_BYTES is >=1, returns the input buffer, sets
955
958
  the integer pointed to by offset to the offset within this buffer
956
959
  of the current parse position, and sets the integer pointed to by size
957
960
  to the size of this buffer (the number of input bytes). Otherwise
@@ -1025,7 +1028,9 @@ enum XML_FeatureEnum {
1025
1028
  XML_FEATURE_ATTR_INFO,
1026
1029
  /* Added in Expat 2.4.0. */
1027
1030
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
1028
- XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT
1031
+ XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT,
1032
+ /* Added in Expat 2.6.0. */
1033
+ XML_FEATURE_GE
1029
1034
  /* Additional features must be added to the end of this enum. */
1030
1035
  };
1031
1036
 
@@ -1038,24 +1043,30 @@ typedef struct {
1038
1043
  XMLPARSEAPI(const XML_Feature *)
1039
1044
  XML_GetFeatureList(void);
1040
1045
 
1041
- #ifdef XML_DTD
1042
- /* Added in Expat 2.4.0. */
1046
+ #if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
1047
+ /* Added in Expat 2.4.0 for XML_DTD defined and
1048
+ * added in Expat 2.6.0 for XML_GE == 1. */
1043
1049
  XMLPARSEAPI(XML_Bool)
1044
1050
  XML_SetBillionLaughsAttackProtectionMaximumAmplification(
1045
1051
  XML_Parser parser, float maximumAmplificationFactor);
1046
1052
 
1047
- /* Added in Expat 2.4.0. */
1053
+ /* Added in Expat 2.4.0 for XML_DTD defined and
1054
+ * added in Expat 2.6.0 for XML_GE == 1. */
1048
1055
  XMLPARSEAPI(XML_Bool)
1049
1056
  XML_SetBillionLaughsAttackProtectionActivationThreshold(
1050
1057
  XML_Parser parser, unsigned long long activationThresholdBytes);
1051
1058
  #endif
1052
1059
 
1060
+ /* Added in Expat 2.6.0. */
1061
+ XMLPARSEAPI(XML_Bool)
1062
+ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1063
+
1053
1064
  /* Expat follows the semantic versioning convention.
1054
- See http://semver.org.
1065
+ See https://semver.org
1055
1066
  */
1056
1067
  #define XML_MAJOR_VERSION 2
1057
- #define XML_MINOR_VERSION 5
1058
- #define XML_MICRO_VERSION 0
1068
+ #define XML_MINOR_VERSION 6
1069
+ #define XML_MICRO_VERSION 2
1059
1070
 
1060
1071
  #ifdef __cplusplus
1061
1072
  }
@@ -16,6 +16,9 @@
16
16
  /* Define to 1 if you have the `arc4random_buf' function. */
17
17
  /* #undef HAVE_ARC4RANDOM_BUF */
18
18
 
19
+ /* define if the compiler supports basic C++11 syntax */
20
+ /* #undef HAVE_CXX11 */
21
+
19
22
  /* Define to 1 if you have the <dlfcn.h> header file. */
20
23
  #define HAVE_DLFCN_H 1
21
24
 
@@ -74,13 +77,13 @@
74
77
  #define PACKAGE "expat"
75
78
 
76
79
  /* Define to the address where bug reports for this package should be sent. */
77
- #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org"
80
+ #define PACKAGE_BUGREPORT "https://github.com/libexpat/libexpat/issues"
78
81
 
79
82
  /* Define to the full name of this package. */
80
83
  #define PACKAGE_NAME "expat"
81
84
 
82
85
  /* Define to the full name and version of this package. */
83
- #define PACKAGE_STRING "expat 2.5.0"
86
+ #define PACKAGE_STRING "expat 2.6.2"
84
87
 
85
88
  /* Define to the one symbol short name of this package. */
86
89
  #define PACKAGE_TARNAME "expat"
@@ -89,7 +92,7 @@
89
92
  #define PACKAGE_URL ""
90
93
 
91
94
  /* Define to the version of this package. */
92
- #define PACKAGE_VERSION "2.5.0"
95
+ #define PACKAGE_VERSION "2.6.2"
93
96
 
94
97
  /* Define to 1 if all of the C90 standard headers exist (not just the ones
95
98
  required in a freestanding environment). This macro is provided for
@@ -97,7 +100,7 @@
97
100
  #define STDC_HEADERS 1
98
101
 
99
102
  /* Version number of package */
100
- #define VERSION "2.5.0"
103
+ #define VERSION "2.6.2"
101
104
 
102
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
103
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
@@ -116,7 +119,7 @@
116
119
  /* #undef XML_ATTR_INFO */
117
120
 
118
121
  /* Define to specify how much context to retain around the current parse
119
- point. */
122
+ point, 0 to disable. */
120
123
  #define XML_CONTEXT_BYTES 1024
121
124
 
122
125
  /* Define to include code reading entropy from `/dev/urandom'. */
@@ -125,6 +128,9 @@
125
128
  /* Define to make parameter entity parsing functionality available. */
126
129
  #define XML_DTD 1
127
130
 
131
+ /* Define as 1/0 to enable/disable support for general entities. */
132
+ #define XML_GE 1
133
+
128
134
  /* Define to make XML Namespaces functionality available. */
129
135
  #define XML_NS 1
130
136
 
package/include/ffi.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* -----------------------------------------------------------------*-C-*-
2
- libffi 3.4.4
3
- - Copyright (c) 2011, 2014, 2019, 2021, 2022 Anthony Green
2
+ libffi 3.4.6
3
+ - Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024 Anthony Green
4
4
  - Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person
@@ -140,13 +140,11 @@ typedef struct _ffi_type
140
140
  when using the static version of the library.
141
141
  Besides, as a workaround, they can define FFI_BUILDING if they
142
142
  *know* they are going to link with the static library. */
143
- #if defined _MSC_VER
143
+ #if defined _MSC_VER && !defined(FFI_STATIC_BUILD)
144
144
  # if defined FFI_BUILDING_DLL /* Building libffi.DLL with msvcc.sh */
145
145
  # define FFI_API __declspec(dllexport)
146
- # elif !defined FFI_BUILDING /* Importing libffi.DLL */
146
+ # else /* Importing libffi.DLL */
147
147
  # define FFI_API __declspec(dllimport)
148
- # else /* Building/linking static library */
149
- # define FFI_API
150
148
  # endif
151
149
  #else
152
150
  # define FFI_API
@@ -222,21 +220,12 @@ FFI_EXTERN ffi_type ffi_type_sint64;
222
220
  FFI_EXTERN ffi_type ffi_type_float;
223
221
  FFI_EXTERN ffi_type ffi_type_double;
224
222
  FFI_EXTERN ffi_type ffi_type_pointer;
225
-
226
- #if 1
227
223
  FFI_EXTERN ffi_type ffi_type_longdouble;
228
- #else
229
- #define ffi_type_longdouble ffi_type_double
230
- #endif
231
224
 
232
225
  #ifdef FFI_TARGET_HAS_COMPLEX_TYPE
233
226
  FFI_EXTERN ffi_type ffi_type_complex_float;
234
227
  FFI_EXTERN ffi_type ffi_type_complex_double;
235
- #if 1
236
228
  FFI_EXTERN ffi_type ffi_type_complex_longdouble;
237
- #else
238
- #define ffi_type_complex_longdouble ffi_type_complex_double
239
- #endif
240
229
  #endif
241
230
  #endif /* LIBFFI_HIDE_BASIC_TYPES */
242
231
 
@@ -363,14 +352,6 @@ typedef struct {
363
352
  FFI_API void *ffi_closure_alloc (size_t size, void **code);
364
353
  FFI_API void ffi_closure_free (void *);
365
354
 
366
- #if defined(PA_LINUX) || defined(PA_HPUX)
367
- #define FFI_CLOSURE_PTR(X) ((void *)((unsigned int)(X) | 2))
368
- #define FFI_RESTORE_PTR(X) ((void *)((unsigned int)(X) & ~3))
369
- #else
370
- #define FFI_CLOSURE_PTR(X) (X)
371
- #define FFI_RESTORE_PTR(X) (X)
372
- #endif
373
-
374
355
  FFI_API ffi_status
375
356
  ffi_prep_closure (ffi_closure*,
376
357
  ffi_cif *,
@@ -474,7 +455,7 @@ ffi_prep_java_raw_closure_loc (ffi_java_raw_closure*,
474
455
 
475
456
  #endif /* FFI_CLOSURES */
476
457
 
477
- #if FFI_GO_CLOSURES
458
+ #ifdef FFI_GO_CLOSURES
478
459
 
479
460
  typedef struct {
480
461
  void *tramp;
@@ -517,8 +498,14 @@ FFI_API
517
498
  ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type *struct_type,
518
499
  size_t *offsets);
519
500
 
520
- /* Useful for eliminating compiler warnings. */
501
+ /* Convert between closure and function pointers. */
502
+ #if defined(PA_LINUX) || defined(PA_HPUX)
503
+ #define FFI_FN(f) ((void (*)(void))((unsigned int)(f) | 2))
504
+ #define FFI_CL(f) ((void *)((unsigned int)(f) & ~3))
505
+ #else
521
506
  #define FFI_FN(f) ((void (*)(void))f)
507
+ #define FFI_CL(f) ((void *)(f))
508
+ #endif
522
509
 
523
510
  /* ---- Definitions shared with assembly code ---------------------------- */
524
511
 
@@ -290,7 +290,7 @@ FT_BEGIN_HEADER
290
290
  * options set by those programs have precedence, overwriting the value
291
291
  * here with the configured one.
292
292
  */
293
- /* #define FT_CONFIG_OPTION_USE_HARFBUZZ */
293
+ #define FT_CONFIG_OPTION_USE_HARFBUZZ
294
294
 
295
295
 
296
296
  /**************************************************************************
@@ -27,14 +27,15 @@
27
27
 
28
28
  G_BEGIN_DECLS
29
29
 
30
+ typedef struct _GFileDescriptorBased GFileDescriptorBased;
31
+ typedef struct _GFileDescriptorBasedIface GFileDescriptorBasedIface;
32
+
30
33
  #define G_TYPE_FILE_DESCRIPTOR_BASED (g_file_descriptor_based_get_type ())
31
34
  #define G_FILE_DESCRIPTOR_BASED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_FILE_DESCRIPTOR_BASED, GFileDescriptorBased))
32
35
  #define G_IS_FILE_DESCRIPTOR_BASED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_FILE_DESCRIPTOR_BASED))
33
36
  #define G_FILE_DESCRIPTOR_BASED_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), G_TYPE_FILE_DESCRIPTOR_BASED, GFileDescriptorBasedIface))
34
37
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFileDescriptorBased, g_object_unref)
35
38
 
36
- typedef struct _GFileDescriptorBasedIface GFileDescriptorBasedIface;
37
-
38
39
  /**
39
40
  * GFileDescriptorBasedIface:
40
41
  * @g_iface: The parent interface.
@@ -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
@@ -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;
@@ -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