@img/sharp-libvips-dev 1.0.0 → 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 (230) hide show
  1. package/include/aom/aom_encoder.h +3 -3
  2. package/include/aom/aomcx.h +17 -8
  3. package/include/expat.h +21 -10
  4. package/include/expat_config.h +11 -5
  5. package/include/ffi.h +12 -25
  6. package/include/fontconfig/fontconfig.h +5 -3
  7. package/include/freetype2/freetype/config/ftoption.h +1 -1
  8. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -7
  9. package/include/gio-unix-2.0/gio/gunixinputstream.h +0 -5
  10. package/include/gio-unix-2.0/gio/gunixoutputstream.h +0 -5
  11. package/include/glib-2.0/gio/gappinfo.h +0 -7
  12. package/include/glib-2.0/gio/gapplication.h +6 -0
  13. package/include/glib-2.0/gio/gapplicationcommandline.h +12 -1
  14. package/include/glib-2.0/gio/gasyncinitable.h +0 -7
  15. package/include/glib-2.0/gio/gasyncresult.h +0 -6
  16. package/include/glib-2.0/gio/gbufferedinputstream.h +0 -5
  17. package/include/glib-2.0/gio/gbufferedoutputstream.h +0 -5
  18. package/include/glib-2.0/gio/gbytesicon.h +0 -5
  19. package/include/glib-2.0/gio/gcancellable.h +0 -5
  20. package/include/glib-2.0/gio/gconverter.h +0 -7
  21. package/include/glib-2.0/gio/gconverterinputstream.h +0 -6
  22. package/include/glib-2.0/gio/gconverteroutputstream.h +0 -6
  23. package/include/glib-2.0/gio/gdatagrambased.h +0 -7
  24. package/include/glib-2.0/gio/gdatainputstream.h +0 -6
  25. package/include/glib-2.0/gio/gdataoutputstream.h +0 -6
  26. package/include/glib-2.0/gio/gdbusinterface.h +0 -8
  27. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +0 -8
  28. package/include/glib-2.0/gio/gdbusmessage.h +2 -1
  29. package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +0 -8
  30. package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +0 -8
  31. package/include/glib-2.0/gio/gdbusobjectproxy.h +0 -8
  32. package/include/glib-2.0/gio/gdbusobjectskeleton.h +0 -8
  33. package/include/glib-2.0/gio/gdbusproxy.h +0 -8
  34. package/include/glib-2.0/gio/gdebugcontroller.h +0 -8
  35. package/include/glib-2.0/gio/gdebugcontrollerdbus.h +0 -7
  36. package/include/glib-2.0/gio/gdtlsserverconnection.h +0 -8
  37. package/include/glib-2.0/gio/gemblem.h +0 -5
  38. package/include/glib-2.0/gio/gemblemedicon.h +0 -5
  39. package/include/glib-2.0/gio/gfile.h +0 -10
  40. package/include/glib-2.0/gio/gfileenumerator.h +0 -5
  41. package/include/glib-2.0/gio/gfileicon.h +0 -5
  42. package/include/glib-2.0/gio/gfileinfo.h +0 -5
  43. package/include/glib-2.0/gio/gfileinputstream.h +0 -8
  44. package/include/glib-2.0/gio/gfileiostream.h +0 -8
  45. package/include/glib-2.0/gio/gfilemonitor.h +0 -5
  46. package/include/glib-2.0/gio/gfilenamecompleter.h +0 -5
  47. package/include/glib-2.0/gio/gfileoutputstream.h +0 -8
  48. package/include/glib-2.0/gio/gfilterinputstream.h +0 -5
  49. package/include/glib-2.0/gio/gfilteroutputstream.h +0 -5
  50. package/include/glib-2.0/gio/gicon.h +0 -5
  51. package/include/glib-2.0/gio/ginitable.h +0 -7
  52. package/include/glib-2.0/gio/ginputstream.h +0 -5
  53. package/include/glib-2.0/gio/gio-autocleanups.h +4 -0
  54. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  55. package/include/glib-2.0/gio/gioenums.h +6 -1
  56. package/include/glib-2.0/gio/giomodule.h +0 -5
  57. package/include/glib-2.0/gio/giostream.h +0 -5
  58. package/include/glib-2.0/gio/giotypes.h +5 -108
  59. package/include/glib-2.0/gio/gloadableicon.h +0 -6
  60. package/include/glib-2.0/gio/gmemoryinputstream.h +0 -5
  61. package/include/glib-2.0/gio/gmemoryoutputstream.h +0 -5
  62. package/include/glib-2.0/gio/gmountoperation.h +0 -6
  63. package/include/glib-2.0/gio/gnetworking.h +4 -0
  64. package/include/glib-2.0/gio/goutputstream.h +0 -9
  65. package/include/glib-2.0/gio/gpollableinputstream.h +0 -7
  66. package/include/glib-2.0/gio/gpollableoutputstream.h +0 -7
  67. package/include/glib-2.0/gio/gproxy.h +0 -7
  68. package/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -8
  69. package/include/glib-2.0/gio/gseekable.h +0 -5
  70. package/include/glib-2.0/gio/gsettingsbackend.h +0 -5
  71. package/include/glib-2.0/gio/gsimpleactiongroup.h +0 -7
  72. package/include/glib-2.0/gio/gsimpleasyncresult.h +0 -5
  73. package/include/glib-2.0/gio/gsimpleproxyresolver.h +0 -5
  74. package/include/glib-2.0/gio/gsocket.h +13 -0
  75. package/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -6
  76. package/include/glib-2.0/gio/gsocketconnectable.h +0 -5
  77. package/include/glib-2.0/gio/gtask.h +12 -0
  78. package/include/glib-2.0/gio/gthemedicon.h +0 -5
  79. package/include/glib-2.0/gio/gtlsserverconnection.h +0 -8
  80. package/include/glib-2.0/gio/gunixcredentialsmessage.h +0 -8
  81. package/include/glib-2.0/gio/gvfs.h +0 -5
  82. package/include/glib-2.0/gio/gvolume.h +2 -2
  83. package/include/glib-2.0/gio/gvolumemonitor.h +0 -5
  84. package/include/glib-2.0/girepository/gi-visibility.h +986 -0
  85. package/include/glib-2.0/girepository/giarginfo.h +100 -0
  86. package/include/glib-2.0/girepository/gibaseinfo.h +129 -0
  87. package/include/glib-2.0/girepository/gicallableinfo.h +119 -0
  88. package/include/glib-2.0/girepository/gicallbackinfo.h +60 -0
  89. package/include/glib-2.0/girepository/giconstantinfo.h +72 -0
  90. package/include/glib-2.0/girepository/gienuminfo.h +82 -0
  91. package/include/glib-2.0/girepository/gifieldinfo.h +84 -0
  92. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  93. package/include/glib-2.0/girepository/gifunctioninfo.h +117 -0
  94. package/include/glib-2.0/girepository/giinterfaceinfo.h +120 -0
  95. package/include/glib-2.0/girepository/giobjectinfo.h +230 -0
  96. package/include/glib-2.0/girepository/gipropertyinfo.h +77 -0
  97. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +75 -0
  98. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  99. package/include/glib-2.0/girepository/girepository.h +247 -0
  100. package/include/glib-2.0/girepository/girffi.h +129 -0
  101. package/include/glib-2.0/girepository/gisignalinfo.h +72 -0
  102. package/include/glib-2.0/girepository/gistructinfo.h +102 -0
  103. package/include/glib-2.0/girepository/gitypeinfo.h +144 -0
  104. package/include/glib-2.0/girepository/gitypelib.h +61 -0
  105. package/include/glib-2.0/girepository/gitypes.h +421 -0
  106. package/include/glib-2.0/girepository/giunioninfo.h +105 -0
  107. package/include/glib-2.0/girepository/giunresolvedinfo.h +60 -0
  108. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  109. package/include/glib-2.0/girepository/givfuncinfo.h +88 -0
  110. package/include/glib-2.0/glib/deprecated/gcompletion.h +1 -1
  111. package/include/glib-2.0/glib/deprecated/grel.h +0 -23
  112. package/include/glib-2.0/glib/deprecated/gthread.h +10 -6
  113. package/include/glib-2.0/glib/gatomic.h +20 -20
  114. package/include/glib-2.0/glib/gbitlock.h +31 -0
  115. package/include/glib-2.0/glib/gbookmarkfile.h +39 -1
  116. package/include/glib-2.0/glib/gchecksum.h +0 -10
  117. package/include/glib-2.0/glib/gdate.h +0 -9
  118. package/include/glib-2.0/glib/gdatetime.h +33 -1
  119. package/include/glib-2.0/glib/gdir.h +5 -0
  120. package/include/glib-2.0/glib/ghmac.h +0 -9
  121. package/include/glib-2.0/glib/glib-autocleanups.h +4 -0
  122. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  123. package/include/glib-2.0/glib/gmacros.h +1 -0
  124. package/include/glib-2.0/glib/gmessages.h +11 -0
  125. package/include/glib-2.0/glib/gpathbuf.h +0 -7
  126. package/include/glib-2.0/glib/gslice.h +2 -0
  127. package/include/glib-2.0/glib/gstdio.h +1 -1
  128. package/include/glib-2.0/glib/gstrfuncs.h +24 -18
  129. package/include/glib-2.0/glib/gstrvbuilder.h +4 -8
  130. package/include/glib-2.0/glib/gtestutils.h +5 -0
  131. package/include/glib-2.0/glib/gthread.h +216 -3
  132. package/include/glib-2.0/glib/gunicode.h +12 -2
  133. package/include/glib-2.0/glib/gvarianttype.h +1 -10
  134. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  135. package/include/glib-2.0/glib/gwin32.h +4 -4
  136. package/include/glib-2.0/glib-unix.h +214 -0
  137. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  138. package/include/glib-2.0/gobject/gbinding.h +0 -8
  139. package/include/glib-2.0/gobject/gbindinggroup.h +0 -8
  140. package/include/glib-2.0/gobject/gclosure.h +1 -9
  141. package/include/glib-2.0/gobject/genums.h +6 -6
  142. package/include/glib-2.0/gobject/glib-types.h +44 -0
  143. package/include/glib-2.0/gobject/gobject-autocleanups.h +4 -0
  144. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  145. package/include/glib-2.0/gobject/gobject.h +1 -16
  146. package/include/glib-2.0/gobject/gparam.h +3 -12
  147. package/include/glib-2.0/gobject/gsignal.h +16 -6
  148. package/include/glib-2.0/gobject/gsignalgroup.h +0 -8
  149. package/include/glib-2.0/gobject/gtype.h +53 -20
  150. package/include/glib-2.0/gobject/gtypemodule.h +0 -7
  151. package/include/glib-2.0/gobject/gtypeplugin.h +0 -6
  152. package/include/glib-2.0/gobject/gvaluearray.h +0 -7
  153. package/include/glib-2.0/gobject/gvaluecollector.h +1 -11
  154. package/include/glib-2.0/gobject/gvaluetypes.h +2 -0
  155. package/include/hwy/aligned_allocator.h +171 -6
  156. package/include/hwy/base.h +1765 -543
  157. package/include/hwy/cache_control.h +24 -6
  158. package/include/hwy/detect_compiler_arch.h +23 -2
  159. package/include/hwy/detect_targets.h +56 -13
  160. package/include/hwy/foreach_target.h +24 -0
  161. package/include/hwy/highway.h +20 -3
  162. package/include/hwy/ops/arm_neon-inl.h +1086 -667
  163. package/include/hwy/ops/arm_sve-inl.h +1091 -235
  164. package/include/hwy/ops/emu128-inl.h +271 -196
  165. package/include/hwy/ops/generic_ops-inl.h +2270 -399
  166. package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
  167. package/include/hwy/ops/rvv-inl.h +1043 -311
  168. package/include/hwy/ops/scalar-inl.h +189 -159
  169. package/include/hwy/ops/set_macros-inl.h +66 -6
  170. package/include/hwy/ops/shared-inl.h +175 -56
  171. package/include/hwy/ops/wasm_128-inl.h +153 -136
  172. package/include/hwy/ops/x86_128-inl.h +1647 -646
  173. package/include/hwy/ops/x86_256-inl.h +1003 -370
  174. package/include/hwy/ops/x86_512-inl.h +948 -353
  175. package/include/hwy/per_target.h +4 -0
  176. package/include/hwy/profiler.h +648 -0
  177. package/include/hwy/robust_statistics.h +2 -2
  178. package/include/hwy/targets.h +18 -11
  179. package/include/hwy/timer.h +11 -0
  180. package/include/lcms2.h +46 -7
  181. package/include/lcms2_plugin.h +4 -4
  182. package/include/libheif/heif_version.h +2 -2
  183. package/include/libpng16/png.h +32 -29
  184. package/include/libpng16/pngconf.h +2 -2
  185. package/include/libpng16/pnglibconf.h +7 -2
  186. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  187. package/include/libxml2/libxml/HTMLparser.h +23 -0
  188. package/include/libxml2/libxml/SAX.h +0 -2
  189. package/include/libxml2/libxml/SAX2.h +0 -2
  190. package/include/libxml2/libxml/c14n.h +0 -2
  191. package/include/libxml2/libxml/dict.h +1 -0
  192. package/include/libxml2/libxml/encoding.h +16 -14
  193. package/include/libxml2/libxml/entities.h +4 -0
  194. package/include/libxml2/libxml/globals.h +15 -503
  195. package/include/libxml2/libxml/hash.h +57 -61
  196. package/include/libxml2/libxml/nanoftp.h +2 -2
  197. package/include/libxml2/libxml/parser.h +137 -18
  198. package/include/libxml2/libxml/parserInternals.h +1 -0
  199. package/include/libxml2/libxml/relaxng.h +2 -1
  200. package/include/libxml2/libxml/schemasInternals.h +1 -0
  201. package/include/libxml2/libxml/schematron.h +1 -0
  202. package/include/libxml2/libxml/threads.h +4 -11
  203. package/include/libxml2/libxml/tree.h +68 -20
  204. package/include/libxml2/libxml/uri.h +2 -1
  205. package/include/libxml2/libxml/valid.h +2 -0
  206. package/include/libxml2/libxml/xmlIO.h +65 -13
  207. package/include/libxml2/libxml/xmlerror.h +37 -8
  208. package/include/libxml2/libxml/xmlmemory.h +37 -40
  209. package/include/libxml2/libxml/xmlreader.h +6 -0
  210. package/include/libxml2/libxml/xmlregexp.h +2 -9
  211. package/include/libxml2/libxml/xmlsave.h +9 -0
  212. package/include/libxml2/libxml/xmlschemas.h +3 -0
  213. package/include/libxml2/libxml/xmlversion.h +28 -43
  214. package/include/libxml2/libxml/xpath.h +1 -1
  215. package/include/libxml2/libxml/xpathInternals.h +2 -1
  216. package/include/libxml2/libxml/xpointer.h +5 -4
  217. package/include/pango-1.0/pango/pango-features.h +3 -3
  218. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  219. package/include/pixman-1/pixman-version.h +3 -3
  220. package/include/pixman-1/pixman.h +9 -2
  221. package/include/png.h +32 -29
  222. package/include/pngconf.h +2 -2
  223. package/include/pnglibconf.h +7 -2
  224. package/include/vips/connection.h +9 -3
  225. package/include/vips/util.h +0 -9
  226. package/include/vips/version.h +4 -4
  227. package/include/zconf.h +3 -0
  228. package/include/zlib.h +3 -3
  229. package/package.json +1 -1
  230. package/versions.json +15 -15
@@ -0,0 +1,144 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Type
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * SPDX-License-Identifier: LGPL-2.1-or-later
8
+ *
9
+ * This library is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU Lesser General Public
11
+ * License as published by the Free Software Foundation; either
12
+ * version 2 of the License, or (at your option) any later version.
13
+ *
14
+ * This library is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ * Lesser General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Lesser General Public
20
+ * License along with this library; if not, write to the
21
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
+ * Boston, MA 02111-1307, USA.
23
+ */
24
+
25
+ #pragma once
26
+
27
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
28
+ #error "Only <girepository.h> can be included directly."
29
+ #endif
30
+
31
+ #include <girepository/gitypes.h>
32
+
33
+ G_BEGIN_DECLS
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
+
51
+ /**
52
+ * GI_IS_TYPE_INFO:
53
+ * @info: an info structure
54
+ *
55
+ * Checks if @info is a [alias@GIRepository.TypeInfo] (or a derived type).
56
+ *
57
+ * Since: 2.80
58
+ */
59
+ #define GI_IS_TYPE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_TYPE_INFO))
60
+
61
+ /**
62
+ * GI_TYPE_TAG_IS_BASIC:
63
+ * @tag: a type tag
64
+ *
65
+ * Checks if @tag is a basic type.
66
+ *
67
+ * Since: 2.80
68
+ */
69
+ #define GI_TYPE_TAG_IS_BASIC(tag) ((tag) < GI_TYPE_TAG_ARRAY || (tag) == GI_TYPE_TAG_UNICHAR)
70
+
71
+ /**
72
+ * GI_TYPE_TAG_IS_NUMERIC:
73
+ * @tag: a type tag
74
+ *
75
+ * Checks if @tag is a numeric type. That is, integer or floating point.
76
+ *
77
+ * Since: 2.80
78
+ */
79
+ #define GI_TYPE_TAG_IS_NUMERIC(tag) ((tag) >= GI_TYPE_TAG_INT8 && (tag) <= GI_TYPE_TAG_DOUBLE)
80
+
81
+ /**
82
+ * GI_TYPE_TAG_IS_CONTAINER:
83
+ * @tag: a type tag
84
+ *
85
+ * Checks if @tag is a container type. That is, a type which may have a nonnull
86
+ * return from [method@GIRepository.TypeInfo.get_param_type].
87
+ *
88
+ * Since: 2.80
89
+ */
90
+ #define GI_TYPE_TAG_IS_CONTAINER(tag) ((tag) == GI_TYPE_TAG_ARRAY || \
91
+ ((tag) >= GI_TYPE_TAG_GLIST && (tag) <= GI_TYPE_TAG_GHASH))
92
+
93
+ GI_AVAILABLE_IN_ALL
94
+ const char * gi_type_tag_to_string (GITypeTag type);
95
+
96
+ GI_AVAILABLE_IN_ALL
97
+ gboolean gi_type_info_is_pointer (GITypeInfo *info);
98
+
99
+ GI_AVAILABLE_IN_ALL
100
+ GITypeTag gi_type_info_get_tag (GITypeInfo *info);
101
+
102
+ GI_AVAILABLE_IN_ALL
103
+ GITypeInfo * gi_type_info_get_param_type (GITypeInfo *info,
104
+ unsigned int n);
105
+
106
+ GI_AVAILABLE_IN_ALL
107
+ GIBaseInfo * gi_type_info_get_interface (GITypeInfo *info);
108
+
109
+ GI_AVAILABLE_IN_ALL
110
+ gboolean gi_type_info_get_array_length_index (GITypeInfo *info,
111
+ unsigned int *out_length_index);
112
+
113
+ GI_AVAILABLE_IN_ALL
114
+ gboolean gi_type_info_get_array_fixed_size (GITypeInfo *info,
115
+ size_t *out_size);
116
+
117
+ GI_AVAILABLE_IN_ALL
118
+ gboolean gi_type_info_is_zero_terminated (GITypeInfo *info);
119
+
120
+ GI_AVAILABLE_IN_ALL
121
+ GIArrayType gi_type_info_get_array_type (GITypeInfo *info);
122
+
123
+ GI_AVAILABLE_IN_ALL
124
+ GITypeTag gi_type_info_get_storage_type (GITypeInfo *info);
125
+
126
+ GI_AVAILABLE_IN_ALL
127
+ void gi_type_info_argument_from_hash_pointer (GITypeInfo *info,
128
+ void *hash_pointer,
129
+ GIArgument *arg);
130
+
131
+ GI_AVAILABLE_IN_ALL
132
+ void * gi_type_info_hash_pointer_from_argument (GITypeInfo *info,
133
+ GIArgument *arg);
134
+
135
+ GI_AVAILABLE_IN_ALL
136
+ void gi_type_tag_argument_from_hash_pointer (GITypeTag storage_type,
137
+ void *hash_pointer,
138
+ GIArgument *arg);
139
+
140
+ GI_AVAILABLE_IN_ALL
141
+ void * gi_type_tag_hash_pointer_from_argument (GITypeTag storage_type,
142
+ GIArgument *arg);
143
+
144
+ G_END_DECLS
@@ -0,0 +1,61 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: Public typelib API
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * SPDX-License-Identifier: LGPL-2.1-or-later
8
+ *
9
+ * This library is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU Lesser General Public
11
+ * License as published by the Free Software Foundation; either
12
+ * version 2 of the License, or (at your option) any later version.
13
+ *
14
+ * This library is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ * Lesser General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Lesser General Public
20
+ * License along with this library; if not, write to the
21
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
+ * Boston, MA 02111-1307, USA.
23
+ */
24
+
25
+ #pragma once
26
+
27
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
28
+ #error "Only <girepository.h> can be included directly."
29
+ #endif
30
+
31
+ #include <glib.h>
32
+
33
+ #include <girepository/gi-visibility.h>
34
+
35
+ G_BEGIN_DECLS
36
+
37
+ typedef struct _GITypelib GITypelib;
38
+
39
+ #define GI_TYPE_TYPELIB (gi_typelib_get_type ())
40
+ GI_AVAILABLE_IN_ALL
41
+ GType gi_typelib_get_type (void) G_GNUC_CONST;
42
+
43
+ GI_AVAILABLE_IN_ALL
44
+ GITypelib * gi_typelib_new_from_bytes (GBytes *bytes,
45
+ GError **error);
46
+
47
+ GI_AVAILABLE_IN_ALL
48
+ GITypelib * gi_typelib_ref (GITypelib *typelib);
49
+ GI_AVAILABLE_IN_ALL
50
+ void gi_typelib_unref (GITypelib *typelib);
51
+
52
+ GI_AVAILABLE_IN_ALL
53
+ gboolean gi_typelib_symbol (GITypelib *typelib,
54
+ const char *symbol_name,
55
+ void **symbol);
56
+
57
+ GI_AVAILABLE_IN_ALL
58
+ const char * gi_typelib_get_namespace (GITypelib *typelib);
59
+
60
+
61
+ G_END_DECLS
@@ -0,0 +1,421 @@
1
+ /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2
+ * GObject introspection: types
3
+ *
4
+ * Copyright (C) 2005 Matthias Clasen
5
+ * Copyright (C) 2008,2009 Red Hat, Inc.
6
+ *
7
+ * SPDX-License-Identifier: LGPL-2.1-or-later
8
+ *
9
+ * This library is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU Lesser General Public
11
+ * License as published by the Free Software Foundation; either
12
+ * version 2 of the License, or (at your option) any later version.
13
+ *
14
+ * This library is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ * Lesser General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Lesser General Public
20
+ * License along with this library; if not, write to the
21
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
+ * Boston, MA 02111-1307, USA.
23
+ */
24
+
25
+ #pragma once
26
+
27
+ #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
28
+ #error "Only <girepository.h> can be included directly."
29
+ #endif
30
+
31
+ #include <stdint.h>
32
+
33
+ #include <glib.h>
34
+ #include <glib-object.h>
35
+
36
+ #include "gi-visibility.h"
37
+
38
+ G_BEGIN_DECLS
39
+
40
+ /* Documented in gibaseinfo.c */
41
+ typedef struct _GIBaseInfo GIBaseInfo;
42
+ typedef struct _GIBaseInfoClass GIBaseInfoClass;
43
+
44
+ typedef struct
45
+ {
46
+ /*< private >*/
47
+ GTypeInstance parent_instance;
48
+
49
+ int dummy0;
50
+ void *dummy1[3];
51
+ uint32_t dummy2[2];
52
+ void *dummy3[6];
53
+ } GIBaseInfoStack;
54
+
55
+ /* Documented in gicallableinfo.c */
56
+ typedef struct _GICallableInfo GICallableInfo;
57
+ GI_AVAILABLE_IN_ALL GType gi_callable_info_get_type (void);
58
+
59
+ /* Documented in gifunctioninfo.c */
60
+ typedef struct _GIFunctionInfo GIFunctionInfo;
61
+ GI_AVAILABLE_IN_ALL GType gi_function_info_get_type (void);
62
+
63
+ /* Documented in gicallbackinfo.c */
64
+ typedef struct _GICallbackInfo GICallbackInfo;
65
+ GI_AVAILABLE_IN_ALL GType gi_callback_info_get_type (void);
66
+
67
+ /* Documented in giregisteredtypeinfo.c */
68
+ typedef struct _GIRegisteredTypeInfo GIRegisteredTypeInfo;
69
+ GI_AVAILABLE_IN_ALL GType gi_registered_type_info_get_type (void);
70
+
71
+ /* Documented in gistructinfo.c */
72
+ typedef struct _GIStructInfo GIStructInfo;
73
+ GI_AVAILABLE_IN_ALL GType gi_struct_info_get_type (void);
74
+
75
+ /* Documented in giunioninfo.c */
76
+ typedef struct _GIUnionInfo GIUnionInfo;
77
+ GI_AVAILABLE_IN_ALL GType gi_union_info_get_type (void);
78
+
79
+ /* Documented in gienuminfo.c */
80
+ typedef struct _GIEnumInfo GIEnumInfo;
81
+ GI_AVAILABLE_IN_ALL GType gi_enum_info_get_type (void);
82
+
83
+ /* Documented in giflagsinfo.c */
84
+ typedef struct _GIFlagsInfo GIFlagsInfo;
85
+ GI_AVAILABLE_IN_ALL GType gi_flags_info_get_type (void);
86
+
87
+ /* Documented in giobjectinfo.c */
88
+ typedef struct _GIObjectInfo GIObjectInfo;
89
+ GI_AVAILABLE_IN_ALL GType gi_object_info_get_type (void);
90
+
91
+ /* Documented in giinterfaceinfo.c */
92
+ typedef struct _GIInterfaceInfo GIInterfaceInfo;
93
+ GI_AVAILABLE_IN_ALL GType gi_interface_info_get_type (void);
94
+
95
+ /* Documented in giconstantinfo.c */
96
+ typedef struct _GIConstantInfo GIConstantInfo;
97
+ GI_AVAILABLE_IN_ALL GType gi_constant_info_get_type (void);
98
+
99
+ /* Documented in givalueinfo.c */
100
+ typedef struct _GIValueInfo GIValueInfo;
101
+ GI_AVAILABLE_IN_ALL GType gi_value_info_get_type (void);
102
+
103
+ /* Documented in gisignalinfo.c */
104
+ typedef struct _GISignalInfo GISignalInfo;
105
+ GI_AVAILABLE_IN_ALL GType gi_signal_info_get_type (void);
106
+
107
+ /* Documented in givfuncinfo.c */
108
+ typedef struct _GIVFuncInfo GIVFuncInfo;
109
+ GI_AVAILABLE_IN_ALL GType gi_vfunc_info_get_type (void);
110
+
111
+ /* Documented in gipropertyinfo.c */
112
+ typedef struct _GIPropertyInfo GIPropertyInfo;
113
+ GI_AVAILABLE_IN_ALL GType gi_property_info_get_type (void);
114
+
115
+ /* Documented in gifieldinfo.c */
116
+ typedef struct _GIFieldInfo GIFieldInfo;
117
+ GI_AVAILABLE_IN_ALL GType gi_field_info_get_type (void);
118
+
119
+ /* Documented in giarginfo.c */
120
+ typedef struct
121
+ {
122
+ /*< private >*/
123
+ GIBaseInfoStack parent;
124
+
125
+ void *padding[6];
126
+ } GIArgInfo;
127
+ GI_AVAILABLE_IN_ALL GType gi_arg_info_get_type (void);
128
+
129
+ /* Documented in gitypeinfo.c */
130
+ typedef struct
131
+ {
132
+ /*< private >*/
133
+ GIBaseInfoStack parent;
134
+
135
+ void *padding[6];
136
+ } GITypeInfo;
137
+ GI_AVAILABLE_IN_ALL GType gi_type_info_get_type (void);
138
+
139
+ /* Documented in giunresolvedinfo.c */
140
+ typedef struct _GIUnresolvedInfo GIUnresolvedInfo;
141
+ GI_AVAILABLE_IN_ALL GType gi_unresolved_info_get_type (void);
142
+
143
+ union _GIArgument
144
+ {
145
+ gboolean v_boolean;
146
+ int8_t v_int8;
147
+ uint8_t v_uint8;
148
+ int16_t v_int16;
149
+ uint16_t v_uint16;
150
+ int32_t v_int32;
151
+ uint32_t v_uint32;
152
+ int64_t v_int64;
153
+ uint64_t v_uint64;
154
+ float v_float;
155
+ double v_double;
156
+ short v_short;
157
+ unsigned short v_ushort;
158
+ int v_int;
159
+ unsigned int v_uint;
160
+ long v_long;
161
+ unsigned long v_ulong;
162
+ gssize v_ssize;
163
+ size_t v_size;
164
+ char *v_string;
165
+ void *v_pointer;
166
+ };
167
+
168
+ /**
169
+ * GIArgument:
170
+ * @v_boolean: boolean value
171
+ * @v_int8: 8-bit signed integer value
172
+ * @v_uint8: 8-bit unsigned integer value
173
+ * @v_int16: 16-bit signed integer value
174
+ * @v_uint16: 16-bit unsigned integer value
175
+ * @v_int32: 32-bit signed integer value
176
+ * @v_uint32: 32-bit unsigned integer value
177
+ * @v_int64: 64-bit signed integer value
178
+ * @v_uint64: 64-bit unsigned integer value
179
+ * @v_float: single float value
180
+ * @v_double: double float value
181
+ * @v_short: signed short integer value
182
+ * @v_ushort: unsigned short integer value
183
+ * @v_int: signed integer value
184
+ * @v_uint: unsigned integer value
185
+ * @v_long: signed long integer value
186
+ * @v_ulong: unsigned long integer value
187
+ * @v_ssize: sized `size_t` value
188
+ * @v_size: unsigned `size_t` value
189
+ * @v_string: nul-terminated string value
190
+ * @v_pointer: arbitrary pointer value
191
+ *
192
+ * Stores an argument of varying type.
193
+ *
194
+ * Since: 2.80
195
+ */
196
+ typedef union _GIArgument GIArgument;
197
+
198
+ /**
199
+ * GITransfer:
200
+ * @GI_TRANSFER_NOTHING: Transfer nothing from the callee (function or the type
201
+ * instance the property belongs to) to the caller. The callee retains the
202
+ * ownership of the transfer and the caller doesn’t need to do anything to
203
+ * free up the resources of this transfer.
204
+ * @GI_TRANSFER_CONTAINER: Transfer the container (list, array, hash table) from
205
+ * the callee to the caller. The callee retains the ownership of the
206
+ * individual items in the container and the caller has to free up the
207
+ * container resources ([func@GLib.List.free],
208
+ * [func@GLib.HashTable.destroy], etc) of this transfer.
209
+ * @GI_TRANSFER_EVERYTHING: Transfer everything, e.g. the container and its
210
+ * contents from the callee to the caller. This is the case when the callee
211
+ * creates a copy of all the data it returns. The caller is responsible for
212
+ * cleaning up the container and item resources of this transfer.
213
+ *
214
+ * `GITransfer` specifies who’s responsible for freeing the resources after an
215
+ * ownership transfer is complete.
216
+ *
217
+ * The transfer is the exchange of data between two parts, from the callee to
218
+ * the caller.
219
+ *
220
+ * The callee is either a function/method/signal or an object/interface where a
221
+ * property is defined. The caller is the side accessing a property or calling a
222
+ * function.
223
+ *
224
+ * In the case of a containing type such as a list, an array or a hash table the
225
+ * container itself is specified differently from the items within the
226
+ * container. Each container is freed differently, check the documentation for
227
+ * the types themselves for information on how to free them.
228
+ *
229
+ * Since: 2.80
230
+ */
231
+ typedef enum {
232
+ GI_TRANSFER_NOTHING,
233
+ GI_TRANSFER_CONTAINER,
234
+ GI_TRANSFER_EVERYTHING
235
+ } GITransfer;
236
+
237
+ /**
238
+ * GIDirection:
239
+ * @GI_DIRECTION_IN: ‘in’ argument.
240
+ * @GI_DIRECTION_OUT: ‘out’ argument.
241
+ * @GI_DIRECTION_INOUT: ‘in and out’ argument.
242
+ *
243
+ * The direction of a [class@GIRepository.ArgInfo].
244
+ *
245
+ * Since: 2.80
246
+ */
247
+ typedef enum {
248
+ GI_DIRECTION_IN,
249
+ GI_DIRECTION_OUT,
250
+ GI_DIRECTION_INOUT
251
+ } GIDirection;
252
+
253
+ /**
254
+ * GIScopeType:
255
+ * @GI_SCOPE_TYPE_INVALID: The argument is not of callback type.
256
+ * @GI_SCOPE_TYPE_CALL: The callback and associated `user_data` is only
257
+ * used during the call to this function.
258
+ * @GI_SCOPE_TYPE_ASYNC: The callback and associated `user_data` is
259
+ * only used until the callback is invoked, and the callback.
260
+ * is invoked always exactly once.
261
+ * @GI_SCOPE_TYPE_NOTIFIED: The callback and associated
262
+ * `user_data` is used until the caller is notified via the
263
+ * [type@GLib.DestroyNotify].
264
+ * @GI_SCOPE_TYPE_FOREVER: The callback and associated `user_data` is
265
+ * used until the process terminates
266
+ *
267
+ * Scope type of a [class@GIRepository.ArgInfo] representing callback,
268
+ * determines how the callback is invoked and is used to decided when the invoke
269
+ * structs can be freed.
270
+ *
271
+ * Since: 2.80
272
+ */
273
+ typedef enum {
274
+ GI_SCOPE_TYPE_INVALID,
275
+ GI_SCOPE_TYPE_CALL,
276
+ GI_SCOPE_TYPE_ASYNC,
277
+ GI_SCOPE_TYPE_NOTIFIED,
278
+ GI_SCOPE_TYPE_FOREVER
279
+ } GIScopeType;
280
+
281
+ /**
282
+ * GITypeTag:
283
+ * @GI_TYPE_TAG_VOID: void
284
+ * @GI_TYPE_TAG_BOOLEAN: boolean
285
+ * @GI_TYPE_TAG_INT8: 8-bit signed integer
286
+ * @GI_TYPE_TAG_UINT8: 8-bit unsigned integer
287
+ * @GI_TYPE_TAG_INT16: 16-bit signed integer
288
+ * @GI_TYPE_TAG_UINT16: 16-bit unsigned integer
289
+ * @GI_TYPE_TAG_INT32: 32-bit signed integer
290
+ * @GI_TYPE_TAG_UINT32: 32-bit unsigned integer
291
+ * @GI_TYPE_TAG_INT64: 64-bit signed integer
292
+ * @GI_TYPE_TAG_UINT64: 64-bit unsigned integer
293
+ * @GI_TYPE_TAG_FLOAT: float
294
+ * @GI_TYPE_TAG_DOUBLE: double floating point
295
+ * @GI_TYPE_TAG_GTYPE: a [type@GObject.Type]
296
+ * @GI_TYPE_TAG_UTF8: a UTF-8 encoded string
297
+ * @GI_TYPE_TAG_FILENAME: a filename, encoded in the same encoding
298
+ * as the native filesystem is using.
299
+ * @GI_TYPE_TAG_ARRAY: an array
300
+ * @GI_TYPE_TAG_INTERFACE: an extended interface object
301
+ * @GI_TYPE_TAG_GLIST: a [type@GLib.List]
302
+ * @GI_TYPE_TAG_GSLIST: a [type@GLib.SList]
303
+ * @GI_TYPE_TAG_GHASH: a [type@GLib.HashTable]
304
+ * @GI_TYPE_TAG_ERROR: a [type@GLib.Error]
305
+ * @GI_TYPE_TAG_UNICHAR: Unicode character
306
+ *
307
+ * The type tag of a [class@GIRepository.TypeInfo].
308
+ *
309
+ * Since: 2.80
310
+ */
311
+ typedef enum {
312
+ /* Basic types */
313
+ GI_TYPE_TAG_VOID = 0,
314
+ GI_TYPE_TAG_BOOLEAN = 1,
315
+ GI_TYPE_TAG_INT8 = 2, /* Start of GI_TYPE_TAG_IS_NUMERIC types */
316
+ GI_TYPE_TAG_UINT8 = 3,
317
+ GI_TYPE_TAG_INT16 = 4,
318
+ GI_TYPE_TAG_UINT16 = 5,
319
+ GI_TYPE_TAG_INT32 = 6,
320
+ GI_TYPE_TAG_UINT32 = 7,
321
+ GI_TYPE_TAG_INT64 = 8,
322
+ GI_TYPE_TAG_UINT64 = 9,
323
+ GI_TYPE_TAG_FLOAT = 10,
324
+ GI_TYPE_TAG_DOUBLE = 11, /* End of numeric types */
325
+ GI_TYPE_TAG_GTYPE = 12,
326
+ GI_TYPE_TAG_UTF8 = 13,
327
+ GI_TYPE_TAG_FILENAME = 14,
328
+ /* Non-basic types; compare with GI_TYPE_TAG_IS_BASIC */
329
+ GI_TYPE_TAG_ARRAY = 15, /* container (see GI_TYPE_TAG_IS_CONTAINER) */
330
+ GI_TYPE_TAG_INTERFACE = 16,
331
+ GI_TYPE_TAG_GLIST = 17, /* container */
332
+ GI_TYPE_TAG_GSLIST = 18, /* container */
333
+ GI_TYPE_TAG_GHASH = 19, /* container */
334
+ GI_TYPE_TAG_ERROR = 20,
335
+ /* Another basic type */
336
+ GI_TYPE_TAG_UNICHAR = 21
337
+ /* Note - there is currently only room for 32 tags */
338
+ } GITypeTag;
339
+
340
+ /**
341
+ * GI_TYPE_TAG_N_TYPES:
342
+ *
343
+ * Number of entries in [enum@GIRepository.TypeTag].
344
+ *
345
+ * Since: 2.80
346
+ */
347
+ #define GI_TYPE_TAG_N_TYPES (GI_TYPE_TAG_UNICHAR+1)
348
+
349
+ /**
350
+ * GIArrayType:
351
+ * @GI_ARRAY_TYPE_C: a C array, `char[]` for instance
352
+ * @GI_ARRAY_TYPE_ARRAY: a [type@GLib.Array] array
353
+ * @GI_ARRAY_TYPE_PTR_ARRAY: a [type@GLib.PtrArray] array
354
+ * @GI_ARRAY_TYPE_BYTE_ARRAY: a [type@GLib.ByteArray] array
355
+ *
356
+ * The type of array in a [class@GIRepository.TypeInfo].
357
+ *
358
+ * Since: 2.80
359
+ */
360
+ typedef enum {
361
+ GI_ARRAY_TYPE_C,
362
+ GI_ARRAY_TYPE_ARRAY,
363
+ GI_ARRAY_TYPE_PTR_ARRAY,
364
+ GI_ARRAY_TYPE_BYTE_ARRAY
365
+ } GIArrayType;
366
+
367
+ /**
368
+ * GIFieldInfoFlags:
369
+ * @GI_FIELD_IS_READABLE: field is readable.
370
+ * @GI_FIELD_IS_WRITABLE: field is writable.
371
+ *
372
+ * Flags for a [class@GIRepository.FieldInfo].
373
+ *
374
+ * Since: 2.80
375
+ */
376
+
377
+ typedef enum
378
+ {
379
+ GI_FIELD_IS_READABLE = 1 << 0,
380
+ GI_FIELD_IS_WRITABLE = 1 << 1
381
+ } GIFieldInfoFlags;
382
+
383
+ /**
384
+ * GIVFuncInfoFlags:
385
+ * @GI_VFUNC_MUST_CHAIN_UP: chains up to the parent type
386
+ * @GI_VFUNC_MUST_OVERRIDE: overrides
387
+ * @GI_VFUNC_MUST_NOT_OVERRIDE: does not override
388
+ *
389
+ * Flags of a [class@GIRepository.VFuncInfo] struct.
390
+ *
391
+ * Since: 2.80
392
+ */
393
+ typedef enum
394
+ {
395
+ GI_VFUNC_MUST_CHAIN_UP = 1 << 0,
396
+ GI_VFUNC_MUST_OVERRIDE = 1 << 1,
397
+ GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2,
398
+ } GIVFuncInfoFlags;
399
+
400
+ /**
401
+ * GIFunctionInfoFlags:
402
+ * @GI_FUNCTION_IS_METHOD: is a method.
403
+ * @GI_FUNCTION_IS_CONSTRUCTOR: is a constructor.
404
+ * @GI_FUNCTION_IS_GETTER: is a getter of a [class@GIRepository.PropertyInfo].
405
+ * @GI_FUNCTION_IS_SETTER: is a setter of a [class@GIRepository.PropertyInfo].
406
+ * @GI_FUNCTION_WRAPS_VFUNC: represents a virtual function.
407
+ *
408
+ * Flags for a [class@GIRepository.FunctionInfo] struct.
409
+ *
410
+ * Since: 2.80
411
+ */
412
+ typedef enum
413
+ {
414
+ GI_FUNCTION_IS_METHOD = 1 << 0,
415
+ GI_FUNCTION_IS_CONSTRUCTOR = 1 << 1,
416
+ GI_FUNCTION_IS_GETTER = 1 << 2,
417
+ GI_FUNCTION_IS_SETTER = 1 << 3,
418
+ GI_FUNCTION_WRAPS_VFUNC = 1 << 4,
419
+ } GIFunctionInfoFlags;
420
+
421
+ G_END_DECLS