@img/sharp-libvips-dev 1.3.0-rc.2 → 1.3.0-rc.4
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/archive.h +2 -2
- package/include/archive_entry.h +1 -1
- package/include/expat.h +2 -2
- package/include/expat_config.h +3 -6
- package/include/expat_external.h +2 -3
- package/include/freetype2/freetype/config/ftconfig.h +1 -1
- package/include/freetype2/freetype/config/ftheader.h +1 -1
- package/include/freetype2/freetype/config/ftoption.h +8 -2
- package/include/freetype2/freetype/config/ftstdlib.h +1 -1
- package/include/freetype2/freetype/config/integer-types.h +1 -1
- package/include/freetype2/freetype/config/mac-support.h +3 -1
- package/include/freetype2/freetype/config/public-macros.h +1 -1
- package/include/freetype2/freetype/freetype.h +9 -18
- package/include/freetype2/freetype/ftadvanc.h +1 -1
- package/include/freetype2/freetype/ftbbox.h +1 -1
- package/include/freetype2/freetype/ftbdf.h +10 -4
- package/include/freetype2/freetype/ftbitmap.h +1 -1
- package/include/freetype2/freetype/ftbzip2.h +1 -1
- package/include/freetype2/freetype/ftcache.h +1 -1
- package/include/freetype2/freetype/ftcid.h +1 -1
- package/include/freetype2/freetype/ftcolor.h +1 -1
- package/include/freetype2/freetype/ftdriver.h +1 -1
- package/include/freetype2/freetype/fterrdef.h +1 -1
- package/include/freetype2/freetype/fterrors.h +1 -1
- package/include/freetype2/freetype/ftfntfmt.h +1 -1
- package/include/freetype2/freetype/ftgasp.h +1 -1
- package/include/freetype2/freetype/ftglyph.h +1 -1
- package/include/freetype2/freetype/ftgxval.h +1 -1
- package/include/freetype2/freetype/ftgzip.h +1 -1
- package/include/freetype2/freetype/ftimage.h +2 -2
- package/include/freetype2/freetype/ftincrem.h +1 -1
- package/include/freetype2/freetype/ftlcdfil.h +3 -9
- package/include/freetype2/freetype/ftlist.h +1 -1
- package/include/freetype2/freetype/ftlogging.h +1 -1
- package/include/freetype2/freetype/ftlzw.h +1 -1
- package/include/freetype2/freetype/ftmac.h +1 -1
- package/include/freetype2/freetype/ftmm.h +1 -1
- package/include/freetype2/freetype/ftmodapi.h +1 -1
- package/include/freetype2/freetype/ftmoderr.h +1 -1
- package/include/freetype2/freetype/ftotval.h +1 -1
- package/include/freetype2/freetype/ftoutln.h +1 -1
- package/include/freetype2/freetype/ftparams.h +3 -6
- package/include/freetype2/freetype/ftpfr.h +1 -1
- package/include/freetype2/freetype/ftrender.h +1 -1
- package/include/freetype2/freetype/ftsizes.h +1 -1
- package/include/freetype2/freetype/ftsnames.h +1 -1
- package/include/freetype2/freetype/ftstroke.h +1 -1
- package/include/freetype2/freetype/ftsynth.h +1 -1
- package/include/freetype2/freetype/ftsystem.h +1 -1
- package/include/freetype2/freetype/fttrigon.h +1 -1
- package/include/freetype2/freetype/fttypes.h +1 -1
- package/include/freetype2/freetype/ftwinfnt.h +1 -1
- package/include/freetype2/freetype/otsvg.h +1 -1
- package/include/freetype2/freetype/t1tables.h +3 -3
- package/include/freetype2/freetype/ttnameid.h +2 -2
- package/include/freetype2/freetype/tttables.h +1 -1
- package/include/freetype2/freetype/tttags.h +1 -1
- package/include/freetype2/ft2build.h +1 -1
- package/include/glib-2.0/gio/gfileattribute.h +1 -1
- package/include/glib-2.0/gio/gfileinfo.h +5 -0
- package/include/glib-2.0/gio/gicon.h +1 -1
- package/include/glib-2.0/gio/gio-autocleanups.h +0 -1
- package/include/glib-2.0/gio/gio.h +2 -0
- package/include/glib-2.0/gio/gioenums.h +61 -40
- package/include/glib-2.0/gio/gioenumtypes.h +2 -0
- package/include/glib-2.0/gio/giptosmessage.h +46 -0
- package/include/glib-2.0/gio/gipv6tclassmessage.h +46 -0
- package/include/glib-2.0/gio/gresolver.h +1 -1
- package/include/glib-2.0/gio/gsettings.h +1 -1
- package/include/glib-2.0/gio/gsocketcontrolmessage.h +2 -0
- package/include/glib-2.0/girepository/girepository.h +1 -1
- package/include/glib-2.0/girepository/girffi.h +2 -2
- package/include/glib-2.0/girepository/gitypes.h +3 -3
- package/include/glib-2.0/glib/gatomic.h +26 -2
- package/include/glib-2.0/glib/gfileutils.h +2 -2
- package/include/glib-2.0/glib/ghook.h +3 -1
- package/include/glib-2.0/glib/giochannel.h +1 -1
- package/include/glib-2.0/glib/gkeyfile.h +1 -1
- package/include/glib-2.0/glib/gmacros.h +32 -0
- package/include/glib-2.0/glib/gmain.h +4 -0
- package/include/glib-2.0/glib/gmarkup.h +8 -1
- package/include/glib-2.0/glib/gmessages.h +1 -1
- package/include/glib-2.0/glib/gnode.h +1 -1
- package/include/glib-2.0/glib/goption.h +1 -1
- package/include/glib-2.0/glib/gslice.h +12 -4
- package/include/glib-2.0/glib/gspawn.h +1 -1
- package/include/glib-2.0/glib/gstrfuncs.h +1 -1
- package/include/glib-2.0/glib/gtestutils.h +6 -3
- package/include/glib-2.0/glib/gtimer.h +1 -0
- package/include/glib-2.0/glib/guri.h +3 -3
- package/include/glib-2.0/glib/gutils.h +1 -1
- package/include/glib-2.0/gmodule.h +1 -1
- package/include/glib-2.0/gobject/gbinding.h +1 -1
- package/include/glib-2.0/gobject/gobject.h +1 -1
- package/include/glib-2.0/gobject/gparam.h +1 -1
- package/include/glib-2.0/gobject/gsignal.h +3 -3
- package/include/glib-2.0/gobject/gtype.h +3 -3
- package/include/harfbuzz/hb-buffer.h +11 -3
- package/include/harfbuzz/hb-cplusplus.hh +31 -27
- package/include/harfbuzz/hb-features.h +28 -0
- package/include/harfbuzz/hb-ot-color.h +14 -0
- package/include/harfbuzz/hb-ot-shape.h +15 -0
- package/include/harfbuzz/hb-paint.h +19 -18
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/lcms2.h +3 -3
- package/include/lcms2_plugin.h +1 -1
- package/include/libheif/heif_sequences.h +1 -1
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +637 -488
- package/include/libpng16/pngconf.h +2 -2
- package/include/libpng16/pnglibconf.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +4 -4
- package/include/libxml2/libxml/catalog.h +2 -0
- package/include/libxml2/libxml/relaxng.h +4 -0
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pango-1.0/pango/pango-features.h +2 -2
- package/include/pango-1.0/pango/pango-script.h +2 -0
- package/include/png.h +637 -488
- package/include/pngconf.h +2 -2
- package/include/pnglibconf.h +2 -2
- package/include/vips/colour.h +2 -2
- package/include/vips/memory.h +1 -1
- package/include/vips/version.h +4 -4
- package/include/zlib.h +3 -3
- package/package.json +1 -1
- package/versions.json +16 -16
- package/include/harfbuzz/hb-subset-serialize.h +0 -83
- package/include/harfbuzz/hb-subset.h +0 -297
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* GIO - GLib Input, Output and Streaming Library
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Collabora Ltd.
|
|
4
|
+
*
|
|
5
|
+
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
6
|
+
*
|
|
7
|
+
* This library is free software; you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
9
|
+
* License as published by the Free Software Foundation; either
|
|
10
|
+
* version 2.1 of the License, or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This library is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15
|
+
* Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General
|
|
18
|
+
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
19
|
+
*
|
|
20
|
+
* Authors: Jakub Adam <jakub.adam@collabora.com>
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
#ifndef __G_IPV6_TCLASS_MESSAGE_H__
|
|
24
|
+
#define __G_IPV6_TCLASS_MESSAGE_H__
|
|
25
|
+
|
|
26
|
+
#include <gio/gsocketcontrolmessage.h>
|
|
27
|
+
|
|
28
|
+
G_BEGIN_DECLS
|
|
29
|
+
|
|
30
|
+
#define G_TYPE_IPV6_TCLASS_MESSAGE (g_ipv6_tclass_message_get_type ())
|
|
31
|
+
|
|
32
|
+
GIO_AVAILABLE_IN_2_88
|
|
33
|
+
G_DECLARE_FINAL_TYPE (GIPv6TclassMessage, g_ipv6_tclass_message, G, IPV6_TCLASS_MESSAGE, GSocketControlMessage)
|
|
34
|
+
|
|
35
|
+
GIO_AVAILABLE_IN_2_88
|
|
36
|
+
GSocketControlMessage *g_ipv6_tclass_message_new (guint8 dscp, GEcnCodePoint ecn);
|
|
37
|
+
|
|
38
|
+
GIO_AVAILABLE_IN_2_88
|
|
39
|
+
guint8 g_ipv6_tclass_message_get_dscp (GIPv6TclassMessage *message);
|
|
40
|
+
|
|
41
|
+
GIO_AVAILABLE_IN_2_88
|
|
42
|
+
GEcnCodePoint g_ipv6_tclass_message_get_ecn (GIPv6TclassMessage *message);
|
|
43
|
+
|
|
44
|
+
G_END_DECLS
|
|
45
|
+
|
|
46
|
+
#endif /* __G_IPV6_TCLASS_MESSAGE_H__ */
|
|
@@ -60,7 +60,7 @@ typedef enum {
|
|
|
60
60
|
G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT = 0,
|
|
61
61
|
G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY = 1 << 0,
|
|
62
62
|
G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY = 1 << 1,
|
|
63
|
-
} GResolverNameLookupFlags;
|
|
63
|
+
} G_GNUC_FLAG_ENUM GResolverNameLookupFlags;
|
|
64
64
|
|
|
65
65
|
struct _GResolverClass {
|
|
66
66
|
GObjectClass parent_class;
|
|
@@ -308,7 +308,7 @@ typedef enum
|
|
|
308
308
|
G_SETTINGS_BIND_NO_SENSITIVITY = (1<<2),
|
|
309
309
|
G_SETTINGS_BIND_GET_NO_CHANGES = (1<<3),
|
|
310
310
|
G_SETTINGS_BIND_INVERT_BOOLEAN = (1<<4)
|
|
311
|
-
} GSettingsBindFlags;
|
|
311
|
+
} G_GNUC_FLAG_ENUM GSettingsBindFlags;
|
|
312
312
|
|
|
313
313
|
GIO_AVAILABLE_IN_ALL
|
|
314
314
|
void g_settings_bind (GSettings *settings,
|
|
@@ -49,6 +49,8 @@ G_BEGIN_DECLS
|
|
|
49
49
|
typedef struct _GSocketControlMessagePrivate GSocketControlMessagePrivate;
|
|
50
50
|
typedef struct _GSocketControlMessageClass GSocketControlMessageClass;
|
|
51
51
|
|
|
52
|
+
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GSocketControlMessage, g_object_unref)
|
|
53
|
+
|
|
52
54
|
/**
|
|
53
55
|
* GSocketControlMessageClass:
|
|
54
56
|
* @get_size: gets the size of the message.
|
|
@@ -119,8 +119,8 @@ ffi_closure * gi_callable_info_create_closure (GICallableInfo *callable_in
|
|
|
119
119
|
void *user_data);
|
|
120
120
|
|
|
121
121
|
GI_AVAILABLE_IN_ALL
|
|
122
|
-
void
|
|
123
|
-
|
|
122
|
+
void *gi_callable_info_get_closure_native_address (GICallableInfo *callable_info,
|
|
123
|
+
ffi_closure *closure);
|
|
124
124
|
|
|
125
125
|
GI_AVAILABLE_IN_ALL
|
|
126
126
|
void gi_callable_info_destroy_closure (GICallableInfo *callable_info,
|
|
@@ -380,7 +380,7 @@ typedef enum
|
|
|
380
380
|
GI_FIELD_INFO_FLAGS_NONE GI_AVAILABLE_ENUMERATOR_IN_2_86 = 0,
|
|
381
381
|
GI_FIELD_IS_READABLE = 1 << 0,
|
|
382
382
|
GI_FIELD_IS_WRITABLE = 1 << 1
|
|
383
|
-
} GIFieldInfoFlags;
|
|
383
|
+
} G_GNUC_FLAG_ENUM GIFieldInfoFlags;
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* GIVFuncInfoFlags:
|
|
@@ -399,7 +399,7 @@ typedef enum
|
|
|
399
399
|
GI_VFUNC_MUST_CHAIN_UP = 1 << 0,
|
|
400
400
|
GI_VFUNC_MUST_OVERRIDE = 1 << 1,
|
|
401
401
|
GI_VFUNC_MUST_NOT_OVERRIDE = 1 << 2,
|
|
402
|
-
} GIVFuncInfoFlags;
|
|
402
|
+
} G_GNUC_FLAG_ENUM GIVFuncInfoFlags;
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* GIFunctionInfoFlags:
|
|
@@ -423,6 +423,6 @@ typedef enum
|
|
|
423
423
|
GI_FUNCTION_IS_SETTER = 1 << 3,
|
|
424
424
|
GI_FUNCTION_WRAPS_VFUNC = 1 << 4,
|
|
425
425
|
GI_FUNCTION_IS_ASYNC = 1 << 5,
|
|
426
|
-
} GIFunctionInfoFlags;
|
|
426
|
+
} G_GNUC_FLAG_ENUM GIFunctionInfoFlags;
|
|
427
427
|
|
|
428
428
|
G_END_DECLS
|
|
@@ -350,6 +350,14 @@ G_END_DECLS
|
|
|
350
350
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
351
351
|
gaig_result; \
|
|
352
352
|
}))
|
|
353
|
+
#if defined(_GLIB_GCC_HAVE_SYNC_SWAP)
|
|
354
|
+
#define g_atomic_int_set(atomic, newval) \
|
|
355
|
+
(G_GNUC_EXTENSION ({ \
|
|
356
|
+
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
|
|
357
|
+
(void) (0 ? *(atomic) ^ (newval) : 1); \
|
|
358
|
+
(void) __sync_swap ((atomic), (newval)); \
|
|
359
|
+
}))
|
|
360
|
+
#else /* !_GLIB_GCC_HAVE_SYNC_SWAP */
|
|
353
361
|
#define g_atomic_int_set(atomic, newval) \
|
|
354
362
|
(G_GNUC_EXTENSION ({ \
|
|
355
363
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
|
|
@@ -357,7 +365,10 @@ G_END_DECLS
|
|
|
357
365
|
__sync_synchronize (); \
|
|
358
366
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
359
367
|
*(atomic) = (newval); \
|
|
368
|
+
__asm__ __volatile__ ("" : : : "memory"); \
|
|
369
|
+
__sync_synchronize (); \
|
|
360
370
|
}))
|
|
371
|
+
#endif /* !_GLIB_GCC_HAVE_SYNC_SWAP */
|
|
361
372
|
#define g_atomic_pointer_get(atomic) \
|
|
362
373
|
(G_GNUC_EXTENSION ({ \
|
|
363
374
|
gpointer gapg_result; \
|
|
@@ -367,6 +378,14 @@ G_END_DECLS
|
|
|
367
378
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
368
379
|
gapg_result; \
|
|
369
380
|
}))
|
|
381
|
+
#if defined(_GLIB_GCC_HAVE_SYNC_SWAP)
|
|
382
|
+
#define g_atomic_pointer_set(atomic, newval) \
|
|
383
|
+
(G_GNUC_EXTENSION ({ \
|
|
384
|
+
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
385
|
+
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
386
|
+
(void) __sync_swap ((atomic), (newval)); \
|
|
387
|
+
}))
|
|
388
|
+
#else /* ! _GLIB_GCC_HAVE_SYNC_SWAP */
|
|
370
389
|
#if defined(glib_typeof)
|
|
371
390
|
#define g_atomic_pointer_set(atomic, newval) \
|
|
372
391
|
(G_GNUC_EXTENSION ({ \
|
|
@@ -375,8 +394,10 @@ G_END_DECLS
|
|
|
375
394
|
__sync_synchronize (); \
|
|
376
395
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
377
396
|
*(atomic) = (glib_typeof (*(atomic))) (guintptr) (newval); \
|
|
397
|
+
__asm__ __volatile__ ("" : : : "memory"); \
|
|
398
|
+
__sync_synchronize (); \
|
|
378
399
|
}))
|
|
379
|
-
#else /*
|
|
400
|
+
#else /* ! glib_typeof */
|
|
380
401
|
#define g_atomic_pointer_set(atomic, newval) \
|
|
381
402
|
(G_GNUC_EXTENSION ({ \
|
|
382
403
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
@@ -384,8 +405,11 @@ G_END_DECLS
|
|
|
384
405
|
__sync_synchronize (); \
|
|
385
406
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
386
407
|
*(atomic) = (gpointer) (guintptr) (newval); \
|
|
408
|
+
__asm__ __volatile__ ("" : : : "memory"); \
|
|
409
|
+
__sync_synchronize (); \
|
|
387
410
|
}))
|
|
388
|
-
#endif /*
|
|
411
|
+
#endif /* ! glib_typeof */
|
|
412
|
+
#endif /* ! _GLIB_GCC_HAVE_SYNC_SWAP */
|
|
389
413
|
|
|
390
414
|
#define g_atomic_int_inc(atomic) \
|
|
391
415
|
(G_GNUC_EXTENSION ({ \
|
|
@@ -72,7 +72,7 @@ typedef enum
|
|
|
72
72
|
G_FILE_TEST_IS_DIR = 1 << 2,
|
|
73
73
|
G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
|
|
74
74
|
G_FILE_TEST_EXISTS = 1 << 4
|
|
75
|
-
} GFileTest;
|
|
75
|
+
} G_GNUC_FLAG_ENUM GFileTest;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* GFileSetContentsFlags:
|
|
@@ -104,7 +104,7 @@ typedef enum
|
|
|
104
104
|
G_FILE_SET_CONTENTS_CONSISTENT = 1 << 0,
|
|
105
105
|
G_FILE_SET_CONTENTS_DURABLE = 1 << 1,
|
|
106
106
|
G_FILE_SET_CONTENTS_ONLY_EXISTING = 1 << 2
|
|
107
|
-
} GFileSetContentsFlags
|
|
107
|
+
} G_GNUC_FLAG_ENUM GFileSetContentsFlags
|
|
108
108
|
GLIB_AVAILABLE_ENUMERATOR_IN_2_66;
|
|
109
109
|
|
|
110
110
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -56,8 +56,10 @@ typedef enum
|
|
|
56
56
|
{
|
|
57
57
|
G_HOOK_FLAG_ACTIVE = 1 << 0,
|
|
58
58
|
G_HOOK_FLAG_IN_CALL = 1 << 1,
|
|
59
|
+
G_HOOK_FLAG_RESERVED1 = 1 << 2, /*< private >*/
|
|
60
|
+
G_HOOK_FLAG_RESERVED2 = 1 << 3, /*< private >*/
|
|
59
61
|
G_HOOK_FLAG_MASK = 0x0f
|
|
60
|
-
} GHookFlagMask;
|
|
62
|
+
} G_GNUC_FLAG_ENUM GHookFlagMask;
|
|
61
63
|
#define G_HOOK_FLAG_USER_SHIFT (4)
|
|
62
64
|
|
|
63
65
|
|
|
@@ -779,6 +779,38 @@
|
|
|
779
779
|
#define GLIB_CANNOT_IGNORE_DEPRECATIONS
|
|
780
780
|
#endif
|
|
781
781
|
|
|
782
|
+
/**
|
|
783
|
+
* G_GNUC_FLAG_ENUM:
|
|
784
|
+
*
|
|
785
|
+
* Expands to the GNU C `flag_enum` attribute if the compiler is gcc or clang.
|
|
786
|
+
* This attribute indicates that an enumerated type is used in bitwise
|
|
787
|
+
* operations.
|
|
788
|
+
* It is sometimes used in static analysis.
|
|
789
|
+
*
|
|
790
|
+
* See the
|
|
791
|
+
* [GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-flag_005fenum-type-attribute)
|
|
792
|
+
* for details.
|
|
793
|
+
*
|
|
794
|
+
* |[<!-- language="C" -->
|
|
795
|
+
* typedef enum {
|
|
796
|
+
* G_KEY_FILE_NONE = 0,
|
|
797
|
+
* G_KEY_FILE_KEEP_COMMENTS = 1 << 0,
|
|
798
|
+
* G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1
|
|
799
|
+
* } G_GNUC_FLAG_ENUM GKeyFileFlags;
|
|
800
|
+
* ]|
|
|
801
|
+
*
|
|
802
|
+
* (The attribute can also be placed after `enum` and before the opening brace,
|
|
803
|
+
* but that may cause it to be misinterpreted as the name of the enum if the
|
|
804
|
+
* macro is not defined.)
|
|
805
|
+
*
|
|
806
|
+
* Since: 2.88
|
|
807
|
+
*/
|
|
808
|
+
#if g_macro__has_attribute(flag_enum)
|
|
809
|
+
#define G_GNUC_FLAG_ENUM __attribute__((flag_enum))
|
|
810
|
+
#else
|
|
811
|
+
#define G_GNUC_FLAG_ENUM
|
|
812
|
+
#endif
|
|
813
|
+
|
|
782
814
|
/**
|
|
783
815
|
* G_GNUC_MAY_ALIAS:
|
|
784
816
|
*
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
#include <glib/gslist.h>
|
|
29
29
|
#include <glib/gthread.h>
|
|
30
30
|
|
|
31
|
+
#include <stdint.h>
|
|
32
|
+
|
|
31
33
|
G_BEGIN_DECLS
|
|
32
34
|
|
|
33
35
|
typedef enum /*< flags >*/
|
|
@@ -830,6 +832,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|
|
830
832
|
|
|
831
833
|
GLIB_AVAILABLE_IN_ALL
|
|
832
834
|
gint64 g_get_monotonic_time (void);
|
|
835
|
+
GLIB_AVAILABLE_IN_2_88
|
|
836
|
+
uint64_t g_get_monotonic_time_ns (void);
|
|
833
837
|
GLIB_AVAILABLE_IN_ALL
|
|
834
838
|
gint64 g_get_real_time (void);
|
|
835
839
|
|
|
@@ -102,7 +102,7 @@ typedef enum
|
|
|
102
102
|
G_MARKUP_TREAT_CDATA_AS_TEXT = 1 << 1,
|
|
103
103
|
G_MARKUP_PREFIX_ERROR_POSITION = 1 << 2,
|
|
104
104
|
G_MARKUP_IGNORE_QUALIFIED = 1 << 3
|
|
105
|
-
} GMarkupParseFlags;
|
|
105
|
+
} G_GNUC_FLAG_ENUM GMarkupParseFlags;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* GMarkupParseContext:
|
|
@@ -229,6 +229,13 @@ void g_markup_parse_context_get_position (GMarkupParseContext *c
|
|
|
229
229
|
gint *char_number);
|
|
230
230
|
GLIB_AVAILABLE_IN_2_88
|
|
231
231
|
gsize g_markup_parse_context_get_offset (GMarkupParseContext *context);
|
|
232
|
+
|
|
233
|
+
GLIB_AVAILABLE_IN_2_88
|
|
234
|
+
void g_markup_parse_context_get_tag_start (GMarkupParseContext *context,
|
|
235
|
+
gsize *line_number,
|
|
236
|
+
gsize *char_number,
|
|
237
|
+
gsize *offset);
|
|
238
|
+
|
|
232
239
|
GLIB_AVAILABLE_IN_ALL
|
|
233
240
|
gpointer g_markup_parse_context_get_user_data (GMarkupParseContext *context);
|
|
234
241
|
|
|
@@ -67,7 +67,7 @@ typedef enum
|
|
|
67
67
|
G_LOG_LEVEL_DEBUG = 1 << 7,
|
|
68
68
|
|
|
69
69
|
G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL)
|
|
70
|
-
} GLogLevelFlags;
|
|
70
|
+
} G_GNUC_FLAG_ENUM GLogLevelFlags;
|
|
71
71
|
|
|
72
72
|
/* GLib log levels that are considered fatal by default */
|
|
73
73
|
#define G_LOG_FATAL_MASK (G_LOG_FLAG_RECURSION | G_LOG_LEVEL_ERROR)
|
|
@@ -45,21 +45,29 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
45
45
|
void g_slice_free_chain_with_offset (gsize block_size,
|
|
46
46
|
gpointer mem_chain,
|
|
47
47
|
gsize next_offset);
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
#ifndef __GI_SCANNER__
|
|
50
|
+
/* Private helper to give the allocation size for a struct — we want to
|
|
51
|
+
* guarantee non-empty allocations, so it returns a minimum of 1B. This is
|
|
52
|
+
* necessary because some compilers do allow empty (zero size) structs. */
|
|
53
|
+
#define g_slice_alloc_size(type) (sizeof (type) > 0 ? sizeof (type) : 1)
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
#define g_slice_new(type) ((type*) g_slice_alloc (g_slice_alloc_size (type)))
|
|
49
57
|
|
|
50
58
|
/* Allow the compiler to inline memset(). Since the size is a constant, this
|
|
51
59
|
* can significantly improve performance. */
|
|
52
60
|
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
|
|
53
61
|
# define g_slice_new0(type) \
|
|
54
62
|
(type *) (G_GNUC_EXTENSION ({ \
|
|
55
|
-
gsize __s =
|
|
63
|
+
gsize __s = g_slice_alloc_size (type); \
|
|
56
64
|
gpointer __p; \
|
|
57
65
|
__p = g_slice_alloc (__s); \
|
|
58
66
|
memset (__p, 0, __s); \
|
|
59
67
|
__p; \
|
|
60
68
|
}))
|
|
61
69
|
#else
|
|
62
|
-
# define g_slice_new0(type) ((type*) g_slice_alloc0 (
|
|
70
|
+
# define g_slice_new0(type) ((type*) g_slice_alloc0 (g_slice_alloc_size (type)))
|
|
63
71
|
#endif
|
|
64
72
|
|
|
65
73
|
/* MemoryBlockType *
|
|
@@ -76,7 +84,7 @@ void g_slice_free_chain_with_offset (gsize block_size,
|
|
|
76
84
|
|
|
77
85
|
/* we go through extra hoops to ensure type safety */
|
|
78
86
|
#define g_slice_dup(type, mem) \
|
|
79
|
-
(1 ? (type*) g_slice_copy (
|
|
87
|
+
(1 ? (type*) g_slice_copy (g_slice_alloc_size (type), (mem)) \
|
|
80
88
|
: ((void) ((type*) 0 == (mem)), (type*) 0))
|
|
81
89
|
#define g_slice_free(type, mem) \
|
|
82
90
|
G_STMT_START { \
|
|
@@ -526,7 +526,7 @@ typedef enum {
|
|
|
526
526
|
G_TEST_TRAP_SILENCE_STDOUT = 1 << 7,
|
|
527
527
|
G_TEST_TRAP_SILENCE_STDERR = 1 << 8,
|
|
528
528
|
G_TEST_TRAP_INHERIT_STDIN = 1 << 9
|
|
529
|
-
} GTestTrapFlags GLIB_DEPRECATED_TYPE_IN_2_38_FOR(GTestSubprocessFlags);
|
|
529
|
+
} G_GNUC_FLAG_ENUM GTestTrapFlags GLIB_DEPRECATED_TYPE_IN_2_38_FOR(GTestSubprocessFlags);
|
|
530
530
|
|
|
531
531
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
532
532
|
|
|
@@ -540,8 +540,9 @@ typedef enum {
|
|
|
540
540
|
G_TEST_SUBPROCESS_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
541
541
|
G_TEST_SUBPROCESS_INHERIT_STDIN = 1 << 0,
|
|
542
542
|
G_TEST_SUBPROCESS_INHERIT_STDOUT = 1 << 1,
|
|
543
|
-
G_TEST_SUBPROCESS_INHERIT_STDERR = 1 << 2
|
|
544
|
-
|
|
543
|
+
G_TEST_SUBPROCESS_INHERIT_STDERR = 1 << 2,
|
|
544
|
+
G_TEST_SUBPROCESS_INHERIT_DESCRIPTORS GLIB_AVAILABLE_ENUMERATOR_IN_2_88 = 1 << 3,
|
|
545
|
+
} G_GNUC_FLAG_ENUM GTestSubprocessFlags;
|
|
545
546
|
|
|
546
547
|
GLIB_AVAILABLE_IN_2_38
|
|
547
548
|
void g_test_trap_subprocess (const char *test_path,
|
|
@@ -555,6 +556,8 @@ void g_test_trap_subprocess_with_envp (const char *test_path,
|
|
|
555
556
|
|
|
556
557
|
GLIB_AVAILABLE_IN_ALL
|
|
557
558
|
gboolean g_test_trap_has_passed (void);
|
|
559
|
+
GLIB_AVAILABLE_IN_2_88
|
|
560
|
+
gboolean g_test_trap_has_skipped (void);
|
|
558
561
|
GLIB_AVAILABLE_IN_ALL
|
|
559
562
|
gboolean g_test_trap_reached_timeout (void);
|
|
560
563
|
#define g_test_trap_assert_passed() g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 0, 0)
|
|
@@ -90,7 +90,7 @@ typedef enum {
|
|
|
90
90
|
G_URI_FLAGS_ENCODED_PATH = 1 << 6,
|
|
91
91
|
G_URI_FLAGS_ENCODED_FRAGMENT = 1 << 7,
|
|
92
92
|
G_URI_FLAGS_SCHEME_NORMALIZE GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = 1 << 8,
|
|
93
|
-
} GUriFlags;
|
|
93
|
+
} G_GNUC_FLAG_ENUM GUriFlags;
|
|
94
94
|
|
|
95
95
|
GLIB_AVAILABLE_IN_2_66
|
|
96
96
|
gboolean g_uri_split (const gchar *uri_ref,
|
|
@@ -211,7 +211,7 @@ typedef enum {
|
|
|
211
211
|
G_URI_HIDE_AUTH_PARAMS = 1 << 2,
|
|
212
212
|
G_URI_HIDE_QUERY = 1 << 3,
|
|
213
213
|
G_URI_HIDE_FRAGMENT = 1 << 4,
|
|
214
|
-
} GUriHideFlags;
|
|
214
|
+
} G_GNUC_FLAG_ENUM GUriHideFlags;
|
|
215
215
|
|
|
216
216
|
GLIB_AVAILABLE_IN_2_66
|
|
217
217
|
char * g_uri_to_string (GUri *uri);
|
|
@@ -261,7 +261,7 @@ typedef enum {
|
|
|
261
261
|
G_URI_PARAMS_CASE_INSENSITIVE = 1 << 0,
|
|
262
262
|
G_URI_PARAMS_WWW_FORM = 1 << 1,
|
|
263
263
|
G_URI_PARAMS_PARSE_RELAXED = 1 << 2,
|
|
264
|
-
} GUriParamsFlags;
|
|
264
|
+
} G_GNUC_FLAG_ENUM GUriParamsFlags;
|
|
265
265
|
|
|
266
266
|
GLIB_AVAILABLE_IN_2_66
|
|
267
267
|
GHashTable *g_uri_parse_params (const gchar *params,
|
|
@@ -299,7 +299,7 @@ typedef enum
|
|
|
299
299
|
G_FORMAT_SIZE_BITS = 1 << 2,
|
|
300
300
|
G_FORMAT_SIZE_ONLY_VALUE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 1 << 3,
|
|
301
301
|
G_FORMAT_SIZE_ONLY_UNIT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 1 << 4
|
|
302
|
-
} GFormatSizeFlags;
|
|
302
|
+
} G_GNUC_FLAG_ENUM GFormatSizeFlags;
|
|
303
303
|
|
|
304
304
|
GLIB_AVAILABLE_IN_2_30
|
|
305
305
|
gchar *g_format_size_full (guint64 size,
|
|
@@ -65,7 +65,7 @@ typedef enum
|
|
|
65
65
|
G_MODULE_BIND_LAZY = 1 << 0,
|
|
66
66
|
G_MODULE_BIND_LOCAL = 1 << 1,
|
|
67
67
|
G_MODULE_BIND_MASK = 0x03
|
|
68
|
-
} GModuleFlags;
|
|
68
|
+
} G_GNUC_FLAG_ENUM GModuleFlags;
|
|
69
69
|
|
|
70
70
|
typedef struct _GModule GModule;
|
|
71
71
|
typedef const gchar* (*GModuleCheckInit) (GModule *module);
|
|
@@ -94,7 +94,7 @@ typedef enum { /*< prefix=G_BINDING >*/
|
|
|
94
94
|
G_BINDING_BIDIRECTIONAL = 1 << 0,
|
|
95
95
|
G_BINDING_SYNC_CREATE = 1 << 1,
|
|
96
96
|
G_BINDING_INVERT_BOOLEAN = 1 << 2
|
|
97
|
-
} GBindingFlags;
|
|
97
|
+
} G_GNUC_FLAG_ENUM GBindingFlags;
|
|
98
98
|
|
|
99
99
|
GOBJECT_AVAILABLE_IN_ALL
|
|
100
100
|
GType g_binding_flags_get_type (void) G_GNUC_CONST;
|
|
@@ -140,7 +140,7 @@ typedef enum
|
|
|
140
140
|
G_SIGNAL_DEPRECATED = 1 << 8,
|
|
141
141
|
/* normal signal flags until 1 << 16 */
|
|
142
142
|
G_SIGNAL_ACCUMULATOR_FIRST_RUN = 1 << 17,
|
|
143
|
-
} GSignalFlags;
|
|
143
|
+
} G_GNUC_FLAG_ENUM GSignalFlags;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* G_SIGNAL_MUST_COLLECT:
|
|
@@ -197,7 +197,7 @@ typedef enum
|
|
|
197
197
|
G_CONNECT_DEFAULT GOBJECT_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
198
198
|
G_CONNECT_AFTER = 1 << 0,
|
|
199
199
|
G_CONNECT_SWAPPED = 1 << 1
|
|
200
|
-
} GConnectFlags;
|
|
200
|
+
} G_GNUC_FLAG_ENUM GConnectFlags;
|
|
201
201
|
/**
|
|
202
202
|
* GSignalMatchType:
|
|
203
203
|
* @G_SIGNAL_MATCH_ID: The signal id must be equal.
|
|
@@ -219,7 +219,7 @@ typedef enum
|
|
|
219
219
|
G_SIGNAL_MATCH_FUNC = 1 << 3,
|
|
220
220
|
G_SIGNAL_MATCH_DATA = 1 << 4,
|
|
221
221
|
G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
|
|
222
|
-
} GSignalMatchType;
|
|
222
|
+
} G_GNUC_FLAG_ENUM GSignalMatchType;
|
|
223
223
|
/**
|
|
224
224
|
* G_SIGNAL_MATCH_MASK:
|
|
225
225
|
*
|
|
@@ -728,7 +728,7 @@ typedef enum /*< skip >*/
|
|
|
728
728
|
G_TYPE_DEBUG_SIGNALS = 1 << 1,
|
|
729
729
|
G_TYPE_DEBUG_INSTANCE_COUNT = 1 << 2,
|
|
730
730
|
G_TYPE_DEBUG_MASK = 0x07
|
|
731
|
-
} GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36;
|
|
731
|
+
} G_GNUC_FLAG_ENUM GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36;
|
|
732
732
|
|
|
733
733
|
|
|
734
734
|
/* --- prototypes --- */
|
|
@@ -1067,7 +1067,7 @@ typedef enum /*< skip >*/
|
|
|
1067
1067
|
G_TYPE_FLAG_INSTANTIATABLE = (1 << 1),
|
|
1068
1068
|
G_TYPE_FLAG_DERIVABLE = (1 << 2),
|
|
1069
1069
|
G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3)
|
|
1070
|
-
} GTypeFundamentalFlags;
|
|
1070
|
+
} G_GNUC_FLAG_ENUM GTypeFundamentalFlags;
|
|
1071
1071
|
/**
|
|
1072
1072
|
* GTypeFlags:
|
|
1073
1073
|
* @G_TYPE_FLAG_NONE: No special flags. Since: 2.74
|
|
@@ -1091,7 +1091,7 @@ typedef enum /*< skip >*/
|
|
|
1091
1091
|
G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5),
|
|
1092
1092
|
G_TYPE_FLAG_FINAL GOBJECT_AVAILABLE_ENUMERATOR_IN_2_70 = (1 << 6),
|
|
1093
1093
|
G_TYPE_FLAG_DEPRECATED GOBJECT_AVAILABLE_ENUMERATOR_IN_2_76 = (1 << 7)
|
|
1094
|
-
} GTypeFlags;
|
|
1094
|
+
} G_GNUC_FLAG_ENUM GTypeFlags;
|
|
1095
1095
|
/**
|
|
1096
1096
|
* GTypeInfo:
|
|
1097
1097
|
* @class_size: Size of the class structure (required for interface, classed and instantiatable types)
|
|
@@ -495,7 +495,7 @@ typedef enum {
|
|
|
495
495
|
(1u << HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES))))
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
* HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS
|
|
498
|
+
* HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS:
|
|
499
499
|
* @level: #hb_buffer_cluster_level_t to test
|
|
500
500
|
*
|
|
501
501
|
* Tests whether a cluster level does not group cluster values by graphemes.
|
|
@@ -505,7 +505,7 @@ typedef enum {
|
|
|
505
505
|
*/
|
|
506
506
|
#define HB_BUFFER_CLUSTER_LEVEL_IS_CHARACTERS(level) \
|
|
507
507
|
((bool) ((1u << (unsigned) (level)) & \
|
|
508
|
-
((1u <<
|
|
508
|
+
((1u << HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS) | \
|
|
509
509
|
(1u << HB_BUFFER_CLUSTER_LEVEL_CHARACTERS))))
|
|
510
510
|
|
|
511
511
|
HB_EXTERN void
|
|
@@ -672,7 +672,12 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
|
|
|
672
672
|
* @HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS: serialize glyph extents.
|
|
673
673
|
* @HB_BUFFER_SERIALIZE_FLAG_GLYPH_FLAGS: serialize glyph flags. Since: 1.5.0
|
|
674
674
|
* @HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES: do not serialize glyph advances,
|
|
675
|
-
* glyph offsets will reflect absolute glyph positions. Since: 1.8.0
|
|
675
|
+
* glyph offsets will reflect absolute glyph positions. Since: 1.8.0.
|
|
676
|
+
* Note: when this flag is used with a partial range of the buffer (i.e.
|
|
677
|
+
* @start is not 0), calculating the absolute positions has a cost
|
|
678
|
+
* proportional to @start. If the buffer is serialized in many small
|
|
679
|
+
* chunks, this can lead to quadratic behavior. It is recommended to
|
|
680
|
+
* use a larger @buf_size to minimize this cost.
|
|
676
681
|
* @HB_BUFFER_SERIALIZE_FLAG_DEFINED: All currently defined flags. Since: 4.4.0
|
|
677
682
|
*
|
|
678
683
|
* Flags that control what glyph information are serialized in hb_buffer_serialize_glyphs().
|
|
@@ -865,6 +870,9 @@ hb_buffer_set_message_func (hb_buffer_t *buffer,
|
|
|
865
870
|
hb_buffer_message_func_t func,
|
|
866
871
|
void *user_data, hb_destroy_func_t destroy);
|
|
867
872
|
|
|
873
|
+
HB_EXTERN void
|
|
874
|
+
hb_buffer_changed (hb_buffer_t *buffer);
|
|
875
|
+
|
|
868
876
|
|
|
869
877
|
HB_END_DECLS
|
|
870
878
|
|