@revizly/sharp-libvips-dev 1.0.27 → 1.0.28
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/freetype2/freetype/config/ftoption.h +7 -1
- package/include/freetype2/freetype/config/mac-support.h +2 -0
- package/include/freetype2/freetype/freetype.h +8 -17
- package/include/freetype2/freetype/ftbdf.h +9 -3
- package/include/freetype2/freetype/ftimage.h +1 -1
- package/include/freetype2/freetype/ftlcdfil.h +2 -8
- package/include/freetype2/freetype/ftparams.h +2 -5
- package/include/freetype2/freetype/t1tables.h +2 -2
- package/include/glib-2.0/gio/gfileinfo.h +5 -0
- 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 +21 -0
- 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/gsocketcontrolmessage.h +2 -0
- package/include/glib-2.0/glib/gatomic.h +26 -2
- package/include/glib-2.0/glib/gmain.h +4 -0
- package/include/glib-2.0/glib/gmarkup.h +7 -0
- package/include/glib-2.0/glib/gslice.h +4 -4
- package/include/glib-2.0/glib/gtestutils.h +2 -0
- package/include/glib-2.0/glib/gtimer.h +1 -0
- package/include/harfbuzz/hb-buffer.h +11 -3
- package/include/harfbuzz/hb-cplusplus.hh +31 -27
- package/include/harfbuzz/hb-features.h +21 -0
- package/include/harfbuzz/hb-ot-color.h +14 -0
- package/include/harfbuzz/hb-paint.h +19 -18
- package/include/harfbuzz/hb-version.h +4 -4
- package/include/libpng16/png.h +7 -7
- package/include/libpng16/pngconf.h +1 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- 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/png.h +7 -7
- package/include/pngconf.h +1 -1
- package/include/pnglibconf.h +1 -1
- package/package.json +1 -1
- package/versions.json +8 -8
- package/include/harfbuzz/hb-subset-serialize.h +0 -83
- package/include/harfbuzz/hb-subset.h +0 -297
package/include/archive.h
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* assert that ARCHIVE_VERSION_NUMBER >= 2012108.
|
|
35
35
|
*/
|
|
36
36
|
/* Note: Compiler will complain if this does not match archive_entry.h! */
|
|
37
|
-
#define ARCHIVE_VERSION_NUMBER
|
|
37
|
+
#define ARCHIVE_VERSION_NUMBER 3008006
|
|
38
38
|
|
|
39
39
|
#include <sys/stat.h>
|
|
40
40
|
#include <stddef.h> /* for wchar_t */
|
|
@@ -177,7 +177,7 @@ __LA_DECL int archive_version_number(void);
|
|
|
177
177
|
/*
|
|
178
178
|
* Textual name/version of the library, useful for version displays.
|
|
179
179
|
*/
|
|
180
|
-
#define ARCHIVE_VERSION_ONLY_STRING "3.8.
|
|
180
|
+
#define ARCHIVE_VERSION_ONLY_STRING "3.8.6"
|
|
181
181
|
#define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
|
|
182
182
|
__LA_DECL const char * archive_version_string(void);
|
|
183
183
|
|
package/include/archive_entry.h
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
#define ARCHIVE_ENTRY_H_INCLUDED
|
|
29
29
|
|
|
30
30
|
/* Note: Compiler will complain if this does not match archive.h! */
|
|
31
|
-
#define ARCHIVE_VERSION_NUMBER
|
|
31
|
+
#define ARCHIVE_VERSION_NUMBER 3008006
|
|
32
32
|
|
|
33
33
|
/*
|
|
34
34
|
* Note: archive_entry.h is for use outside of libarchive; the
|
|
@@ -759,7 +759,13 @@ FT_BEGIN_HEADER
|
|
|
759
759
|
/**************************************************************************
|
|
760
760
|
*
|
|
761
761
|
* Define `TT_CONFIG_OPTION_BDF` if you want to include support for an
|
|
762
|
-
* embedded 'BDF~' table within SFNT-based
|
|
762
|
+
* embedded 'BDF~' table within an SFNT-based `.otb` font file. This table
|
|
763
|
+
* is an extension used by X11 to preserve BDF properties after conversion
|
|
764
|
+
* to SFNT containers. See
|
|
765
|
+
*
|
|
766
|
+
* https://fontforge.org/docs/techref/non-standard.html#non-standard-bdf
|
|
767
|
+
*
|
|
768
|
+
* for more details.
|
|
763
769
|
*/
|
|
764
770
|
#define TT_CONFIG_OPTION_BDF
|
|
765
771
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
* This is the only necessary change, so it is defined here instead
|
|
25
25
|
* providing a new configuration file.
|
|
26
26
|
*/
|
|
27
|
+
#ifdef FT_MACINTOSH
|
|
27
28
|
#if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
|
|
28
29
|
/* No Carbon frameworks for 64bit 10.4.x. */
|
|
29
30
|
/* `AvailabilityMacros.h` is available since Mac OS X 10.2, */
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
|
|
37
38
|
#undef FT_MACINTOSH
|
|
38
39
|
#endif
|
|
40
|
+
#endif /* __APPLE__ ... */
|
|
39
41
|
|
|
40
42
|
#elif defined( __SC__ ) || defined( __MRC__ )
|
|
41
43
|
/* Classic MacOS compilers */
|
|
@@ -4318,14 +4318,13 @@ FT_BEGIN_HEADER
|
|
|
4318
4318
|
* property `no-stem-darkening` provided by the 'autofit', 'cff',
|
|
4319
4319
|
* 'type1', and 't1cid' modules; see @no-stem-darkening).
|
|
4320
4320
|
*
|
|
4321
|
-
* * @FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding
|
|
4322
|
-
* to function @FT_Library_SetLcdFilterWeights).
|
|
4323
|
-
*
|
|
4324
4321
|
* * @FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type~1, and CID
|
|
4325
4322
|
* 'random' operator, corresponding to the `random-seed` property
|
|
4326
4323
|
* provided by the 'cff', 'type1', and 't1cid' modules; see
|
|
4327
4324
|
* @random-seed).
|
|
4328
4325
|
*
|
|
4326
|
+
* * @FT_PARAM_TAG_LCD_FILTER_WEIGHTS (no longer supported).
|
|
4327
|
+
*
|
|
4329
4328
|
* Pass `NULL` as `data` in @FT_Parameter for a given tag to reset the
|
|
4330
4329
|
* option and use the library or module default again.
|
|
4331
4330
|
*
|
|
@@ -4352,25 +4351,17 @@ FT_BEGIN_HEADER
|
|
|
4352
4351
|
* FT_Bool darken_stems = 1;
|
|
4353
4352
|
*
|
|
4354
4353
|
* FT_Parameter property2;
|
|
4355
|
-
* FT_LcdFiveTapFilter custom_weight =
|
|
4356
|
-
* { 0x11, 0x44, 0x56, 0x44, 0x11 };
|
|
4357
|
-
*
|
|
4358
|
-
* FT_Parameter property3;
|
|
4359
4354
|
* FT_Int32 random_seed = 314159265;
|
|
4360
4355
|
*
|
|
4361
|
-
* FT_Parameter properties[
|
|
4362
|
-
* property2
|
|
4363
|
-
* property3 };
|
|
4356
|
+
* FT_Parameter properties[2] = { property1,
|
|
4357
|
+
* property2 };
|
|
4364
4358
|
*
|
|
4365
4359
|
*
|
|
4366
4360
|
* property1.tag = FT_PARAM_TAG_STEM_DARKENING;
|
|
4367
4361
|
* property1.data = &darken_stems;
|
|
4368
4362
|
*
|
|
4369
|
-
* property2.tag =
|
|
4370
|
-
* property2.data =
|
|
4371
|
-
*
|
|
4372
|
-
* property3.tag = FT_PARAM_TAG_RANDOM_SEED;
|
|
4373
|
-
* property3.data = &random_seed;
|
|
4363
|
+
* property2.tag = FT_PARAM_TAG_RANDOM_SEED;
|
|
4364
|
+
* property2.data = &random_seed;
|
|
4374
4365
|
*
|
|
4375
4366
|
* FT_Face_Properties( face, 3, properties );
|
|
4376
4367
|
* ```
|
|
@@ -4381,7 +4372,7 @@ FT_BEGIN_HEADER
|
|
|
4381
4372
|
* FT_Parameter property;
|
|
4382
4373
|
*
|
|
4383
4374
|
*
|
|
4384
|
-
* property.tag =
|
|
4375
|
+
* property.tag = FT_PARAM_TAG_STEM_DARKENING;
|
|
4385
4376
|
* property.data = NULL;
|
|
4386
4377
|
*
|
|
4387
4378
|
* FT_Face_Properties( face, 1, &property );
|
|
@@ -5178,7 +5169,7 @@ FT_BEGIN_HEADER
|
|
|
5178
5169
|
*/
|
|
5179
5170
|
#define FREETYPE_MAJOR 2
|
|
5180
5171
|
#define FREETYPE_MINOR 14
|
|
5181
|
-
#define FREETYPE_PATCH
|
|
5172
|
+
#define FREETYPE_PATCH 2
|
|
5182
5173
|
|
|
5183
5174
|
|
|
5184
5175
|
/**************************************************************************
|
|
@@ -44,7 +44,8 @@ FT_BEGIN_HEADER
|
|
|
44
44
|
*
|
|
45
45
|
* @description:
|
|
46
46
|
* This section contains the declaration of functions specific to BDF and
|
|
47
|
-
* PCF fonts.
|
|
47
|
+
* PCF fonts. They also work for SFNT bitmap fonts that contain a 'BDF~'
|
|
48
|
+
* table like X11's `.otb` fonts.
|
|
48
49
|
*
|
|
49
50
|
*/
|
|
50
51
|
|
|
@@ -151,7 +152,9 @@ FT_BEGIN_HEADER
|
|
|
151
152
|
* FreeType error code. 0~means success.
|
|
152
153
|
*
|
|
153
154
|
* @note:
|
|
154
|
-
* This function only works with BDF faces
|
|
155
|
+
* This function only works with BDF faces and SFNT fonts that have a
|
|
156
|
+
* 'BDF~' table, returning an error otherwise. For the latter, a bitmap
|
|
157
|
+
* strike size must be selected first.
|
|
155
158
|
*/
|
|
156
159
|
FT_EXPORT( FT_Error )
|
|
157
160
|
FT_Get_BDF_Charset_ID( FT_Face face,
|
|
@@ -165,7 +168,7 @@ FT_BEGIN_HEADER
|
|
|
165
168
|
* FT_Get_BDF_Property
|
|
166
169
|
*
|
|
167
170
|
* @description:
|
|
168
|
-
* Retrieve a BDF property from a BDF or PCF font
|
|
171
|
+
* Retrieve a BDF property from a BDF or PCF font.
|
|
169
172
|
*
|
|
170
173
|
* @input:
|
|
171
174
|
* face ::
|
|
@@ -196,6 +199,9 @@ FT_BEGIN_HEADER
|
|
|
196
199
|
*
|
|
197
200
|
* In case of error, `aproperty->type` is always set to
|
|
198
201
|
* @BDF_PROPERTY_TYPE_NONE.
|
|
202
|
+
*
|
|
203
|
+
* This also works with SFNT fonts that have a 'BDF~' table, after a
|
|
204
|
+
* bitmap strike size has been selected.
|
|
199
205
|
*/
|
|
200
206
|
FT_EXPORT( FT_Error )
|
|
201
207
|
FT_Get_BDF_Property( FT_Face face,
|
|
@@ -145,16 +145,10 @@ FT_BEGIN_HEADER
|
|
|
145
145
|
*
|
|
146
146
|
* FT_LCD_FILTER_LEGACY ::
|
|
147
147
|
* FT_LCD_FILTER_LEGACY1 ::
|
|
148
|
-
*
|
|
149
|
-
* provides high contrast output but can exhibit really bad color
|
|
150
|
-
* fringes if glyphs are not extremely well hinted to the pixel grid.
|
|
151
|
-
* This filter is only provided for comparison purposes, and might be
|
|
152
|
-
* disabled or stay unsupported in the future. The second value is
|
|
153
|
-
* provided for compatibility with FontConfig, which historically used
|
|
154
|
-
* different enumeration, sometimes incorrectly forwarded to FreeType.
|
|
148
|
+
* The legacy libXft color filter is no longer supported and ignored.
|
|
155
149
|
*
|
|
156
150
|
* @since:
|
|
157
|
-
* 2.3.0
|
|
151
|
+
* 2.3.0
|
|
158
152
|
*/
|
|
159
153
|
typedef enum FT_LcdFilter_
|
|
160
154
|
{
|
|
@@ -133,11 +133,8 @@ FT_BEGIN_HEADER
|
|
|
133
133
|
* FT_PARAM_TAG_LCD_FILTER_WEIGHTS
|
|
134
134
|
*
|
|
135
135
|
* @description:
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* given face (if using @FT_LOAD_TARGET_LCD, for example), overriding the
|
|
139
|
-
* global default values or the values set up with
|
|
140
|
-
* @FT_Library_SetLcdFilterWeights.
|
|
136
|
+
* Overriding global LCD filter weights with custom values for a given
|
|
137
|
+
* face is no longer supported and ignored.
|
|
141
138
|
*
|
|
142
139
|
* @since:
|
|
143
140
|
* 2.8
|
|
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
|
|
|
92
92
|
FT_String* full_name;
|
|
93
93
|
FT_String* family_name;
|
|
94
94
|
FT_String* weight;
|
|
95
|
-
|
|
95
|
+
FT_Fixed italic_angle;
|
|
96
96
|
FT_Bool is_fixed_pitch;
|
|
97
97
|
FT_Short underline_position;
|
|
98
98
|
FT_UShort underline_thickness;
|
|
@@ -645,7 +645,7 @@ FT_BEGIN_HEADER
|
|
|
645
645
|
PS_DICT_UNDERLINE_POSITION, /* FT_Short */
|
|
646
646
|
PS_DICT_UNDERLINE_THICKNESS, /* FT_UShort */
|
|
647
647
|
PS_DICT_FS_TYPE, /* FT_UShort */
|
|
648
|
-
PS_DICT_ITALIC_ANGLE, /*
|
|
648
|
+
PS_DICT_ITALIC_ANGLE, /* FT_Fixed */
|
|
649
649
|
|
|
650
650
|
PS_DICT_MAX = PS_DICT_ITALIC_ANGLE
|
|
651
651
|
|
|
@@ -67,6 +67,11 @@ typedef struct _GFileInfoClass GFileInfoClass;
|
|
|
67
67
|
*
|
|
68
68
|
* A key in the "standard" namespace for checking if a file is a backup file.
|
|
69
69
|
*
|
|
70
|
+
* The exact semantics of what constitutes a backup file are backend-specific.
|
|
71
|
+
* For local files, a file is considered a backup if its name ends with `~`
|
|
72
|
+
* and it is a regular file. This follows the POSIX convention used by text
|
|
73
|
+
* editors such as Emacs.
|
|
74
|
+
*
|
|
70
75
|
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
|
|
71
76
|
**/
|
|
72
77
|
#define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup" /* boolean */
|
|
@@ -129,7 +129,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketAddress, g_object_unref)
|
|
|
129
129
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketClient, g_object_unref)
|
|
130
130
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnectable, g_object_unref)
|
|
131
131
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketConnection, g_object_unref)
|
|
132
|
-
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketControlMessage, g_object_unref)
|
|
133
132
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocket, g_object_unref)
|
|
134
133
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketListener, g_object_unref)
|
|
135
134
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSocketService, g_object_unref)
|
|
@@ -102,6 +102,8 @@
|
|
|
102
102
|
#include <gio/giomodule.h>
|
|
103
103
|
#include <gio/gioscheduler.h>
|
|
104
104
|
#include <gio/giostream.h>
|
|
105
|
+
#include <gio/giptosmessage.h>
|
|
106
|
+
#include <gio/gipv6tclassmessage.h>
|
|
105
107
|
#include <gio/glistmodel.h>
|
|
106
108
|
#include <gio/gliststore.h>
|
|
107
109
|
#include <gio/gloadableicon.h>
|
|
@@ -2167,6 +2167,27 @@ typedef enum {
|
|
|
2167
2167
|
G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL = 255
|
|
2168
2168
|
} GMemoryMonitorWarningLevel;
|
|
2169
2169
|
|
|
2170
|
+
/**
|
|
2171
|
+
* GEcnCodePoint:
|
|
2172
|
+
* @G_ECN_NO_ECN: Not ECN-capable transport
|
|
2173
|
+
* @G_ECN_ECT_1: ECN Capable Transport(1)
|
|
2174
|
+
* @G_ECN_ECT_0: ECN Capable Transport(0)
|
|
2175
|
+
* @G_ECN_ECT_CE: Congestion Experienced
|
|
2176
|
+
*
|
|
2177
|
+
* Possible values of Explicit Congestion Notification code points.
|
|
2178
|
+
*
|
|
2179
|
+
* These appear in `TOS` (IPv4) or `TCLASS` (IPv6) packet headers and
|
|
2180
|
+
* are described in [RFC 3168](https://www.rfc-editor.org/rfc/rfc3168#section-5).
|
|
2181
|
+
*
|
|
2182
|
+
* Since: 2.88
|
|
2183
|
+
*/
|
|
2184
|
+
typedef enum {
|
|
2185
|
+
G_ECN_NO_ECN = 0x0,
|
|
2186
|
+
G_ECN_ECT_1 = 0x1,
|
|
2187
|
+
G_ECN_ECT_0 = 0x2,
|
|
2188
|
+
G_ECN_ECT_CE = 0x3
|
|
2189
|
+
} GEcnCodePoint;
|
|
2190
|
+
|
|
2170
2191
|
G_END_DECLS
|
|
2171
2192
|
|
|
2172
2193
|
#endif /* __GIO_ENUMS_H__ */
|
|
@@ -191,6 +191,8 @@ GIO_AVAILABLE_IN_ALL GType g_pollable_return_get_type (void) G_GNUC_CONST;
|
|
|
191
191
|
#define G_TYPE_POLLABLE_RETURN (g_pollable_return_get_type ())
|
|
192
192
|
GIO_AVAILABLE_IN_ALL GType g_memory_monitor_warning_level_get_type (void) G_GNUC_CONST;
|
|
193
193
|
#define G_TYPE_MEMORY_MONITOR_WARNING_LEVEL (g_memory_monitor_warning_level_get_type ())
|
|
194
|
+
GIO_AVAILABLE_IN_ALL GType g_ecn_code_point_get_type (void) G_GNUC_CONST;
|
|
195
|
+
#define G_TYPE_ECN_CODE_POINT (g_ecn_code_point_get_type ())
|
|
194
196
|
|
|
195
197
|
/* enumerations from "gresolver.h" */
|
|
196
198
|
GIO_AVAILABLE_IN_ALL GType g_resolver_name_lookup_flags_get_type (void) G_GNUC_CONST;
|
|
@@ -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_IP_TOS_MESSAGE_H__
|
|
24
|
+
#define __G_IP_TOS_MESSAGE_H__
|
|
25
|
+
|
|
26
|
+
#include <gio/gsocketcontrolmessage.h>
|
|
27
|
+
|
|
28
|
+
G_BEGIN_DECLS
|
|
29
|
+
|
|
30
|
+
#define G_TYPE_IP_TOS_MESSAGE (g_ip_tos_message_get_type ())
|
|
31
|
+
|
|
32
|
+
GIO_AVAILABLE_IN_2_88
|
|
33
|
+
G_DECLARE_FINAL_TYPE (GIPTosMessage, g_ip_tos_message, G, IP_TOS_MESSAGE, GSocketControlMessage)
|
|
34
|
+
|
|
35
|
+
GIO_AVAILABLE_IN_2_88
|
|
36
|
+
GSocketControlMessage *g_ip_tos_message_new (guint8 dscp, GEcnCodePoint ecn);
|
|
37
|
+
|
|
38
|
+
GIO_AVAILABLE_IN_2_88
|
|
39
|
+
guint8 g_ip_tos_message_get_dscp (GIPTosMessage *message);
|
|
40
|
+
|
|
41
|
+
GIO_AVAILABLE_IN_2_88
|
|
42
|
+
GEcnCodePoint g_ip_tos_message_get_ecn (GIPTosMessage *message);
|
|
43
|
+
|
|
44
|
+
G_END_DECLS
|
|
45
|
+
|
|
46
|
+
#endif /* __G_IP_TOS_MESSAGE_H__ */
|
|
@@ -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__ */
|
|
@@ -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.
|
|
@@ -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 ({ \
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -45,21 +45,21 @@ 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
|
-
#define g_slice_new(type) ((type*) g_slice_alloc (sizeof (type)))
|
|
48
|
+
#define g_slice_new(type) ((type*) g_slice_alloc (MAX (sizeof (type), 1)))
|
|
49
49
|
|
|
50
50
|
/* Allow the compiler to inline memset(). Since the size is a constant, this
|
|
51
51
|
* can significantly improve performance. */
|
|
52
52
|
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
|
|
53
53
|
# define g_slice_new0(type) \
|
|
54
54
|
(type *) (G_GNUC_EXTENSION ({ \
|
|
55
|
-
gsize __s = sizeof (type);
|
|
55
|
+
gsize __s = MAX (sizeof (type), 1); \
|
|
56
56
|
gpointer __p; \
|
|
57
57
|
__p = g_slice_alloc (__s); \
|
|
58
58
|
memset (__p, 0, __s); \
|
|
59
59
|
__p; \
|
|
60
60
|
}))
|
|
61
61
|
#else
|
|
62
|
-
# define g_slice_new0(type) ((type*) g_slice_alloc0 (sizeof (type)))
|
|
62
|
+
# define g_slice_new0(type) ((type*) g_slice_alloc0 (MAX (sizeof (type), 1)))
|
|
63
63
|
#endif
|
|
64
64
|
|
|
65
65
|
/* MemoryBlockType *
|
|
@@ -76,7 +76,7 @@ void g_slice_free_chain_with_offset (gsize block_size,
|
|
|
76
76
|
|
|
77
77
|
/* we go through extra hoops to ensure type safety */
|
|
78
78
|
#define g_slice_dup(type, mem) \
|
|
79
|
-
(1 ? (type*) g_slice_copy (sizeof (type), (mem))
|
|
79
|
+
(1 ? (type*) g_slice_copy (MAX (sizeof (type), 1), (mem)) \
|
|
80
80
|
: ((void) ((type*) 0 == (mem)), (type*) 0))
|
|
81
81
|
#define g_slice_free(type, mem) \
|
|
82
82
|
G_STMT_START { \
|
|
@@ -556,6 +556,8 @@ void g_test_trap_subprocess_with_envp (const char *test_path,
|
|
|
556
556
|
|
|
557
557
|
GLIB_AVAILABLE_IN_ALL
|
|
558
558
|
gboolean g_test_trap_has_passed (void);
|
|
559
|
+
GLIB_AVAILABLE_IN_2_88
|
|
560
|
+
gboolean g_test_trap_has_skipped (void);
|
|
559
561
|
GLIB_AVAILABLE_IN_ALL
|
|
560
562
|
gboolean g_test_trap_reached_timeout (void);
|
|
561
563
|
#define g_test_trap_assert_passed() g_test_trap_assertions (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, 0, 0)
|
|
@@ -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
|
|