@revizly/sharp-libvips-dev 1.0.45 → 1.0.47
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 +2 -2
- package/include/fontconfig/fontconfig.h +5 -4
- package/include/glib-2.0/gio/gioenums.h +29 -10
- package/include/glib-2.0/gio/gunixfdlist.h +23 -11
- package/include/glib-2.0/glib/gdatetime.h +61 -0
- package/include/glib-2.0/glib/giochannel.h +34 -0
- package/include/glib-2.0/glib/gkeyfile.h +12 -0
- package/include/glib-2.0/glib/gmain.h +12 -0
- package/include/glib-2.0/glib/gmarkup.h +8 -2
- package/include/glib-2.0/glib/gmem.h +20 -20
- package/include/glib-2.0/glib/grefcount.h +5 -5
- package/include/glib-2.0/glib/gslice.h +5 -5
- package/include/glib-2.0/glib/gspawn.h +0 -6
- package/include/glib-2.0/glib/gstrfuncs.h +24 -24
- package/include/glib-2.0/glib/gstring.h +6 -4
- package/include/glib-2.0/glib/gtestutils.h +111 -76
- package/include/glib-2.0/glib/gtypes.h +56 -56
- package/include/glib-2.0/glib/gunicode.h +138 -24
- package/include/glib-2.0/glib/gutils.h +34 -0
- package/include/glib-2.0/gobject/gsignal.h +7 -1
- package/include/glib-2.0/gobject/gtype.h +28 -22
- package/include/glib-2.0/gobject/gvaluecollector.h +12 -12
- package/include/harfbuzz/hb-face.h +1 -1
- package/include/harfbuzz/hb-ot-fetch.h +101 -0
- package/include/harfbuzz/hb-ot.h +1 -0
- package/include/harfbuzz/hb-paint.h +49 -0
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/pango-1.0/pango/pango-features.h +2 -2
- package/include/pango-1.0/pango/pango-font.h +1 -1
- package/include/ultrahdr_api.h +12 -4
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- package/versions.json +8 -8
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 3008009
|
|
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.9"
|
|
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 3008009
|
|
32
32
|
|
|
33
33
|
/*
|
|
34
34
|
* Note: archive_entry.h is for use outside of libarchive; the
|
|
@@ -666,7 +666,7 @@ __LA_DECL void archive_entry_sparse_add_entry(struct archive_entry *,
|
|
|
666
666
|
la_int64_t /* offset */, la_int64_t /* length */);
|
|
667
667
|
|
|
668
668
|
/*
|
|
669
|
-
* To retrieve the
|
|
669
|
+
* To retrieve the sparse list, first "reset", then repeatedly ask for the
|
|
670
670
|
* "next" entry.
|
|
671
671
|
*/
|
|
672
672
|
|
|
@@ -55,7 +55,7 @@ typedef int FcBool;
|
|
|
55
55
|
|
|
56
56
|
#define FC_MAJOR 2
|
|
57
57
|
#define FC_MINOR 18
|
|
58
|
-
#define FC_REVISION
|
|
58
|
+
#define FC_REVISION 3
|
|
59
59
|
|
|
60
60
|
#define FC_VERSION ((FC_MAJOR * 10000) + (FC_MINOR * 100) + (FC_REVISION))
|
|
61
61
|
|
|
@@ -69,9 +69,10 @@ typedef int FcBool;
|
|
|
69
69
|
* it means multiple copies of the font information.
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
|
-
#define FC_CACHE_VERSION_NUMBER
|
|
73
|
-
#define FC_CACHE_SNAP_VERSION_NUMBER
|
|
74
|
-
#define FC_NEXT_CACHE_VERSION_NUMBER
|
|
72
|
+
#define FC_CACHE_VERSION_NUMBER 12
|
|
73
|
+
#define FC_CACHE_SNAP_VERSION_NUMBER 0
|
|
74
|
+
#define FC_NEXT_CACHE_VERSION_NUMBER 0
|
|
75
|
+
#define FC_CACHE_MIN_COMPAT_VERSION 9
|
|
75
76
|
|
|
76
77
|
#define _FC_STRINGIFY_(s) #s
|
|
77
78
|
#define _FC_STRINGIFY(s) _FC_STRINGIFY_ (s)
|
|
@@ -1232,12 +1232,6 @@ typedef enum
|
|
|
1232
1232
|
* delayed until g_dbus_connection_start_message_processing() is called.
|
|
1233
1233
|
* @G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: When authenticating
|
|
1234
1234
|
* as a server, require the UID of the peer to be the same as the UID of the server. (Since: 2.68)
|
|
1235
|
-
* @G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE: When authenticating, try to use
|
|
1236
|
-
* protocols that work across a Linux user namespace boundary, even if this
|
|
1237
|
-
* reduces interoperability with older D-Bus implementations. This currently
|
|
1238
|
-
* affects client-side `EXTERNAL` authentication, for which this flag makes
|
|
1239
|
-
* connections to a server in another user namespace succeed, but causes
|
|
1240
|
-
* a deadlock when connecting to a GDBus server older than 2.73.3. Since: 2.74
|
|
1241
1235
|
*
|
|
1242
1236
|
* Flags used when creating a new #GDBusConnection.
|
|
1243
1237
|
*
|
|
@@ -1251,6 +1245,21 @@ typedef enum {
|
|
|
1251
1245
|
G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION = (1<<3),
|
|
1252
1246
|
G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING = (1<<4),
|
|
1253
1247
|
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GIO_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<5),
|
|
1248
|
+
/**
|
|
1249
|
+
* G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE:
|
|
1250
|
+
*
|
|
1251
|
+
* Prefers protocols that work across user namespace boundaries during
|
|
1252
|
+
* authentication.
|
|
1253
|
+
*
|
|
1254
|
+
* When authenticating, try to use protocols that work across a Linux user
|
|
1255
|
+
* namespace boundary, even if this reduces interoperability with older D-Bus
|
|
1256
|
+
* implementations. This currently affects client-side `EXTERNAL`
|
|
1257
|
+
* authentication, for which this flag makes connections to a server in
|
|
1258
|
+
* another user namespace succeed, but causes a deadlock when connecting to a
|
|
1259
|
+
* GDBus server older than 2.73.3.
|
|
1260
|
+
*
|
|
1261
|
+
* Since: 2.74
|
|
1262
|
+
*/
|
|
1254
1263
|
G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE GIO_AVAILABLE_ENUMERATOR_IN_2_74 = (1<<6)
|
|
1255
1264
|
} G_GNUC_FLAG_ENUM GDBusConnectionFlags;
|
|
1256
1265
|
|
|
@@ -1618,7 +1627,6 @@ typedef enum {
|
|
|
1618
1627
|
|
|
1619
1628
|
/**
|
|
1620
1629
|
* GTlsCertificateFlags:
|
|
1621
|
-
* @G_TLS_CERTIFICATE_NO_FLAGS: No flags set. Since: 2.74
|
|
1622
1630
|
* @G_TLS_CERTIFICATE_UNKNOWN_CA: The signing certificate authority is
|
|
1623
1631
|
* not known.
|
|
1624
1632
|
* @G_TLS_CERTIFICATE_BAD_IDENTITY: The certificate does not match the
|
|
@@ -1650,6 +1658,13 @@ typedef enum {
|
|
|
1650
1658
|
* Since: 2.28
|
|
1651
1659
|
*/
|
|
1652
1660
|
typedef enum {
|
|
1661
|
+
/**
|
|
1662
|
+
* G_TLS_CERTIFICATE_NO_FLAGS:
|
|
1663
|
+
*
|
|
1664
|
+
* No flags set.
|
|
1665
|
+
*
|
|
1666
|
+
* Since: 2.74
|
|
1667
|
+
*/
|
|
1653
1668
|
G_TLS_CERTIFICATE_NO_FLAGS GIO_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
1654
1669
|
G_TLS_CERTIFICATE_UNKNOWN_CA = (1 << 0),
|
|
1655
1670
|
G_TLS_CERTIFICATE_BAD_IDENTITY = (1 << 1),
|
|
@@ -1686,9 +1701,6 @@ typedef enum {
|
|
|
1686
1701
|
* @G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT:
|
|
1687
1702
|
* [`tls-server-end-point`](https://tools.ietf.org/html/rfc5929#section-4)
|
|
1688
1703
|
* binding type
|
|
1689
|
-
* @G_TLS_CHANNEL_BINDING_TLS_EXPORTER:
|
|
1690
|
-
* [`tls-exporter`](https://www.rfc-editor.org/rfc/rfc9266.html) binding
|
|
1691
|
-
* type. Since: 2.74
|
|
1692
1704
|
*
|
|
1693
1705
|
* The type of TLS channel binding data to retrieve from #GTlsConnection
|
|
1694
1706
|
* or #GDtlsConnection, as documented by RFC 5929 or RFC 9266. The
|
|
@@ -1701,6 +1713,13 @@ GIO_AVAILABLE_TYPE_IN_2_66
|
|
|
1701
1713
|
typedef enum {
|
|
1702
1714
|
G_TLS_CHANNEL_BINDING_TLS_UNIQUE,
|
|
1703
1715
|
G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT,
|
|
1716
|
+
/**
|
|
1717
|
+
* G_TLS_CHANNEL_BINDING_TLS_EXPORTER:
|
|
1718
|
+
*
|
|
1719
|
+
* [`tls-exporter`](https://www.rfc-editor.org/rfc/rfc9266.html) binding type.
|
|
1720
|
+
*
|
|
1721
|
+
* Since: 2.74
|
|
1722
|
+
*/
|
|
1704
1723
|
G_TLS_CHANNEL_BINDING_TLS_EXPORTER GIO_AVAILABLE_ENUMERATOR_IN_2_74,
|
|
1705
1724
|
} GTlsChannelBindingType;
|
|
1706
1725
|
|
|
@@ -68,29 +68,41 @@ GType g_unix_fd_list_get_type (void);
|
|
|
68
68
|
GIO_AVAILABLE_IN_ALL
|
|
69
69
|
GUnixFDList * g_unix_fd_list_new (void);
|
|
70
70
|
GIO_AVAILABLE_IN_ALL
|
|
71
|
-
GUnixFDList * g_unix_fd_list_new_from_array (const
|
|
72
|
-
|
|
71
|
+
GUnixFDList * g_unix_fd_list_new_from_array (const int *fds,
|
|
72
|
+
int n_fds);
|
|
73
73
|
|
|
74
74
|
GIO_AVAILABLE_IN_ALL
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
int g_unix_fd_list_append (GUnixFDList *list,
|
|
76
|
+
int fd,
|
|
77
77
|
GError **error);
|
|
78
78
|
|
|
79
|
+
GIO_AVAILABLE_IN_2_90
|
|
80
|
+
size_t g_unix_fd_list_append_take (GUnixFDList *list,
|
|
81
|
+
int fd);
|
|
82
|
+
|
|
79
83
|
GIO_AVAILABLE_IN_ALL
|
|
80
|
-
|
|
84
|
+
int g_unix_fd_list_get_length (GUnixFDList *list);
|
|
81
85
|
|
|
82
86
|
GIO_AVAILABLE_IN_ALL
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
int g_unix_fd_list_get (GUnixFDList *list,
|
|
88
|
+
int index_,
|
|
85
89
|
GError **error);
|
|
86
90
|
|
|
91
|
+
GIO_AVAILABLE_IN_2_90
|
|
92
|
+
int g_unix_fd_list_peek (GUnixFDList *list,
|
|
93
|
+
size_t index_);
|
|
94
|
+
|
|
95
|
+
GIO_AVAILABLE_IN_2_90
|
|
96
|
+
int g_unix_fd_list_lookup (GUnixFDList *list,
|
|
97
|
+
size_t index_);
|
|
98
|
+
|
|
87
99
|
GIO_AVAILABLE_IN_ALL
|
|
88
|
-
const
|
|
89
|
-
|
|
100
|
+
const int * g_unix_fd_list_peek_fds (GUnixFDList *list,
|
|
101
|
+
int *length);
|
|
90
102
|
|
|
91
103
|
GIO_AVAILABLE_IN_ALL
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
int * g_unix_fd_list_steal_fds (GUnixFDList *list,
|
|
105
|
+
int *length);
|
|
94
106
|
|
|
95
107
|
G_END_DECLS
|
|
96
108
|
|
|
@@ -302,6 +302,67 @@ gchar * g_date_time_format (GDateTi
|
|
|
302
302
|
GLIB_AVAILABLE_IN_2_62
|
|
303
303
|
gchar * g_date_time_format_iso8601 (GDateTime *datetime) G_GNUC_MALLOC;
|
|
304
304
|
|
|
305
|
+
/**
|
|
306
|
+
* g_set_date_time: (skip)
|
|
307
|
+
* @date_time_pointer: (inout) (not optional) (nullable): a pointer to either
|
|
308
|
+
* a date-time or `NULL`
|
|
309
|
+
* @new_date_time: (nullable): a date-time to assign to @date_time_pointer
|
|
310
|
+
*
|
|
311
|
+
* Updates a pointer to a date-time to @new_date_time and returns whether
|
|
312
|
+
* @date_time_pointer was changed.
|
|
313
|
+
*
|
|
314
|
+
* If @new_date_time matches the previous date time, this function is a no-op.
|
|
315
|
+
* If @new_date_time is different, its ref-count will be increased and it will
|
|
316
|
+
* be assigned to @date_time_pointer.
|
|
317
|
+
* The previous date time pointed to by @date_time_pointer will have its
|
|
318
|
+
* ref-count decreased.
|
|
319
|
+
*
|
|
320
|
+
* Note two date-time objects that represent the same instant in different
|
|
321
|
+
* timezones are not considered equal.
|
|
322
|
+
*
|
|
323
|
+
* @date_time_pointer must not be `NULL`, but can point to a `NULL` value.
|
|
324
|
+
*
|
|
325
|
+
* Returns: true if the value of @date_time_pointer changed, false otherwise
|
|
326
|
+
*
|
|
327
|
+
* Since: 2.90
|
|
328
|
+
*/
|
|
329
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_90
|
|
330
|
+
static inline gboolean g_set_date_time (GDateTime **date_time_pointer,
|
|
331
|
+
GDateTime *new_date_time);
|
|
332
|
+
|
|
333
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_90
|
|
334
|
+
static inline gboolean
|
|
335
|
+
g_set_date_time (GDateTime **date_time_pointer,
|
|
336
|
+
GDateTime *new_date_time)
|
|
337
|
+
{
|
|
338
|
+
GDateTime *old_date_time;
|
|
339
|
+
|
|
340
|
+
if (*date_time_pointer == new_date_time ||
|
|
341
|
+
(*date_time_pointer != NULL &&
|
|
342
|
+
new_date_time != NULL &&
|
|
343
|
+
g_date_time_compare (*date_time_pointer, new_date_time) == 0 &&
|
|
344
|
+
(g_date_time_get_timezone_abbreviation (*date_time_pointer) ==
|
|
345
|
+
g_date_time_get_timezone_abbreviation (new_date_time))))
|
|
346
|
+
{
|
|
347
|
+
return FALSE;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (new_date_time != NULL)
|
|
351
|
+
{
|
|
352
|
+
g_date_time_ref (new_date_time);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
old_date_time = *date_time_pointer;
|
|
356
|
+
*date_time_pointer = new_date_time;
|
|
357
|
+
|
|
358
|
+
if (old_date_time != NULL)
|
|
359
|
+
{
|
|
360
|
+
g_date_time_unref (old_date_time);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return TRUE;
|
|
364
|
+
}
|
|
365
|
+
|
|
305
366
|
G_END_DECLS
|
|
306
367
|
|
|
307
368
|
#endif /* __G_DATE_TIME_H__ */
|
|
@@ -83,8 +83,42 @@ typedef enum
|
|
|
83
83
|
G_SEEK_END
|
|
84
84
|
} GSeekType;
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* GIOFlags:
|
|
88
|
+
* @G_IO_FLAG_APPEND: Turns on append mode, corresponds to %O_APPEND
|
|
89
|
+
* (see the documentation of the UNIX open() syscall)
|
|
90
|
+
* @G_IO_FLAG_NONBLOCK: Turns on nonblocking mode, corresponds to
|
|
91
|
+
* %O_NONBLOCK/%O_NDELAY (see the documentation of the UNIX open()
|
|
92
|
+
* syscall)
|
|
93
|
+
* @G_IO_FLAG_IS_READABLE: Indicates that the io channel is readable.
|
|
94
|
+
* This flag cannot be changed.
|
|
95
|
+
* @G_IO_FLAG_IS_WRITABLE: Indicates that the io channel is writable.
|
|
96
|
+
* This flag cannot be changed.
|
|
97
|
+
* @G_IO_FLAG_IS_WRITEABLE: A misspelled version of @G_IO_FLAG_IS_WRITABLE
|
|
98
|
+
* that existed before the spelling was fixed in GLib 2.30. It is kept
|
|
99
|
+
* here for compatibility reasons. Deprecated since 2.30
|
|
100
|
+
* @G_IO_FLAG_IS_SEEKABLE: Indicates that the io channel is seekable,
|
|
101
|
+
* i.e. that g_io_channel_seek_position() can be used on it.
|
|
102
|
+
* This flag cannot be changed.
|
|
103
|
+
* @G_IO_FLAG_MASK: The mask that specifies all the valid flags.
|
|
104
|
+
* @G_IO_FLAG_GET_MASK: The mask of the flags that are returned from
|
|
105
|
+
* g_io_channel_get_flags()
|
|
106
|
+
* @G_IO_FLAG_SET_MASK: The mask of the flags that the user can modify
|
|
107
|
+
* with g_io_channel_set_flags()
|
|
108
|
+
*
|
|
109
|
+
* Specifies properties of a #GIOChannel. Some of the flags can only be
|
|
110
|
+
* read with g_io_channel_get_flags(), but not changed with
|
|
111
|
+
* g_io_channel_set_flags().
|
|
112
|
+
*/
|
|
86
113
|
typedef enum
|
|
87
114
|
{
|
|
115
|
+
/**
|
|
116
|
+
* G_IO_FLAG_NONE:
|
|
117
|
+
*
|
|
118
|
+
* No special flags set.
|
|
119
|
+
*
|
|
120
|
+
* Since: 2.74
|
|
121
|
+
*/
|
|
88
122
|
G_IO_FLAG_NONE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
89
123
|
G_IO_FLAG_APPEND = 1 << 0,
|
|
90
124
|
G_IO_FLAG_NONBLOCK = 1 << 1,
|
|
@@ -78,6 +78,18 @@ gboolean g_key_file_load_from_data (GKeyFile *key_file,
|
|
|
78
78
|
gsize length,
|
|
79
79
|
GKeyFileFlags flags,
|
|
80
80
|
GError **error);
|
|
81
|
+
|
|
82
|
+
GLIB_AVAILABLE_IN_2_90
|
|
83
|
+
gboolean g_key_file_load_unix_configurations (GKeyFile *key_file,
|
|
84
|
+
const gchar *project,
|
|
85
|
+
const gchar *etc_subdir,
|
|
86
|
+
const gchar *run_subdir,
|
|
87
|
+
const gchar *usr_subdir,
|
|
88
|
+
const gchar *config_name,
|
|
89
|
+
const gchar *config_suffix,
|
|
90
|
+
GKeyFileFlags flags,
|
|
91
|
+
GError **error);
|
|
92
|
+
|
|
81
93
|
GLIB_AVAILABLE_IN_2_50
|
|
82
94
|
gboolean g_key_file_load_from_bytes (GKeyFile *key_file,
|
|
83
95
|
GBytes *bytes,
|
|
@@ -759,8 +759,16 @@ void g_source_set_name_by_id (guint tag,
|
|
|
759
759
|
GLIB_AVAILABLE_IN_2_36
|
|
760
760
|
void g_source_set_ready_time (GSource *source,
|
|
761
761
|
gint64 ready_time);
|
|
762
|
+
GLIB_AVAILABLE_IN_2_90
|
|
763
|
+
void g_source_set_ready_time_ns (GSource *source,
|
|
764
|
+
uint64_t ready_time);
|
|
765
|
+
GLIB_AVAILABLE_IN_2_90
|
|
766
|
+
void g_source_clear_ready_time (GSource *source);
|
|
762
767
|
GLIB_AVAILABLE_IN_2_36
|
|
763
768
|
gint64 g_source_get_ready_time (GSource *source);
|
|
769
|
+
GLIB_AVAILABLE_IN_2_90
|
|
770
|
+
gboolean g_source_get_ready_time_ns (GSource *source,
|
|
771
|
+
uint64_t *ready_time);
|
|
764
772
|
|
|
765
773
|
#ifdef G_OS_UNIX
|
|
766
774
|
GLIB_AVAILABLE_IN_2_36
|
|
@@ -807,6 +815,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
|
|
807
815
|
|
|
808
816
|
GLIB_AVAILABLE_IN_ALL
|
|
809
817
|
gint64 g_source_get_time (GSource *source);
|
|
818
|
+
GLIB_AVAILABLE_IN_2_90
|
|
819
|
+
uint64_t g_source_get_time_ns (GSource *source);
|
|
810
820
|
|
|
811
821
|
/* void g_source_connect_closure (GSource *source,
|
|
812
822
|
GClosure *closure);
|
|
@@ -820,6 +830,8 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
820
830
|
GSource *g_child_watch_source_new (GPid pid);
|
|
821
831
|
GLIB_AVAILABLE_IN_ALL
|
|
822
832
|
GSource *g_timeout_source_new (guint interval);
|
|
833
|
+
GLIB_AVAILABLE_IN_2_90
|
|
834
|
+
GSource *g_timeout_source_new_ns (uint64_t interval);
|
|
823
835
|
GLIB_AVAILABLE_IN_ALL
|
|
824
836
|
GSource *g_timeout_source_new_seconds (guint interval);
|
|
825
837
|
|
|
@@ -76,8 +76,7 @@ GQuark g_markup_error_quark (void);
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* GMarkupParseFlags:
|
|
79
|
-
* @
|
|
80
|
-
* @G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: flag you should not use
|
|
79
|
+
* @G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: Flag you should not use
|
|
81
80
|
* @G_MARKUP_TREAT_CDATA_AS_TEXT: When this flag is set, CDATA marked
|
|
82
81
|
* sections are not passed literally to the @passthrough function of
|
|
83
82
|
* the parser. Instead, the content of the section (without the
|
|
@@ -97,6 +96,13 @@ GQuark g_markup_error_quark (void);
|
|
|
97
96
|
*/
|
|
98
97
|
typedef enum
|
|
99
98
|
{
|
|
99
|
+
/**
|
|
100
|
+
* G_MARKUP_DEFAULT_FLAGS:
|
|
101
|
+
*
|
|
102
|
+
* No special behaviour.
|
|
103
|
+
*
|
|
104
|
+
* Since: 2.74
|
|
105
|
+
*/
|
|
100
106
|
G_MARKUP_DEFAULT_FLAGS GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
101
107
|
G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0,
|
|
102
108
|
G_MARKUP_TREAT_CDATA_AS_TEXT = 1 << 1,
|
|
@@ -261,31 +261,31 @@ g_steal_pointer (gpointer pp)
|
|
|
261
261
|
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
|
|
262
262
|
# define _G_NEW(struct_type, n_structs, func) \
|
|
263
263
|
(struct_type *) (G_GNUC_EXTENSION ({ \
|
|
264
|
-
gsize
|
|
265
|
-
gsize
|
|
266
|
-
gpointer
|
|
267
|
-
if (
|
|
268
|
-
|
|
269
|
-
else if (__builtin_constant_p (
|
|
270
|
-
(
|
|
271
|
-
|
|
264
|
+
gsize _n = (gsize) (n_structs); \
|
|
265
|
+
gsize _s = sizeof (struct_type); \
|
|
266
|
+
gpointer _p; \
|
|
267
|
+
if (_s == 1) \
|
|
268
|
+
_p = g_##func (_n); \
|
|
269
|
+
else if (__builtin_constant_p (_n) && \
|
|
270
|
+
(_s == 0 || _n <= G_MAXSIZE / _s)) \
|
|
271
|
+
_p = g_##func (_n * _s); \
|
|
272
272
|
else \
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
_p = g_##func##_n (_n, _s); \
|
|
274
|
+
_p; \
|
|
275
275
|
}))
|
|
276
276
|
# define _G_RENEW(struct_type, mem, n_structs, func) \
|
|
277
277
|
(struct_type *) (G_GNUC_EXTENSION ({ \
|
|
278
|
-
gsize
|
|
279
|
-
gsize
|
|
280
|
-
gpointer
|
|
281
|
-
if (
|
|
282
|
-
|
|
283
|
-
else if (__builtin_constant_p (
|
|
284
|
-
(
|
|
285
|
-
|
|
278
|
+
gsize _n = (gsize) (n_structs); \
|
|
279
|
+
gsize _s = sizeof (struct_type); \
|
|
280
|
+
gpointer _p = (gpointer) (mem); \
|
|
281
|
+
if (_s == 1) \
|
|
282
|
+
_p = g_##func (_p, _n); \
|
|
283
|
+
else if (__builtin_constant_p (_n) && \
|
|
284
|
+
(_s == 0 || _n <= G_MAXSIZE / _s)) \
|
|
285
|
+
_p = g_##func (_p, _n * _s); \
|
|
286
286
|
else \
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
_p = g_##func##_n (_p, _n, _s); \
|
|
288
|
+
_p; \
|
|
289
289
|
}))
|
|
290
290
|
|
|
291
291
|
#else
|
|
@@ -129,12 +129,12 @@ gboolean g_atomic_ref_count_compare (gatomicrefcount *arc,
|
|
|
129
129
|
# define g_ref_count_dec(rc) \
|
|
130
130
|
(G_GNUC_EXTENSION ({ \
|
|
131
131
|
G_STATIC_ASSERT (sizeof *(rc) == sizeof (grefcount)); \
|
|
132
|
-
grefcount
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
*(rc) =
|
|
132
|
+
grefcount _rc = *(rc); \
|
|
133
|
+
_rc += 1; \
|
|
134
|
+
if (_rc == 0) ; else { \
|
|
135
|
+
*(rc) = _rc; \
|
|
136
136
|
} \
|
|
137
|
-
(gboolean) (
|
|
137
|
+
(gboolean) (_rc == 0); \
|
|
138
138
|
}))
|
|
139
139
|
|
|
140
140
|
# define g_ref_count_compare(rc,val) \
|
|
@@ -60,11 +60,11 @@ void g_slice_free_chain_with_offset (gsize block_size,
|
|
|
60
60
|
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
|
|
61
61
|
# define g_slice_new0(type) \
|
|
62
62
|
(type *) (G_GNUC_EXTENSION ({ \
|
|
63
|
-
gsize
|
|
64
|
-
gpointer
|
|
65
|
-
|
|
66
|
-
memset (
|
|
67
|
-
|
|
63
|
+
gsize _s = g_slice_alloc_size (type); \
|
|
64
|
+
gpointer _p; \
|
|
65
|
+
_p = g_slice_alloc (_s); \
|
|
66
|
+
memset (_p, 0, _s); \
|
|
67
|
+
_p; \
|
|
68
68
|
}))
|
|
69
69
|
#else
|
|
70
70
|
# define g_slice_new0(type) ((type*) g_slice_alloc0 (g_slice_alloc_size (type)))
|
|
@@ -164,12 +164,6 @@ typedef void (* GSpawnChildSetupFunc) (gpointer data);
|
|
|
164
164
|
* Since: 2.34
|
|
165
165
|
* @G_SPAWN_CLOEXEC_PIPES: create all pipes with the `O_CLOEXEC` flag set.
|
|
166
166
|
* Since: 2.40
|
|
167
|
-
* @G_SPAWN_CHILD_INHERITS_STDOUT: the child will inherit the parent's standard output.
|
|
168
|
-
* Since: 2.74
|
|
169
|
-
* @G_SPAWN_CHILD_INHERITS_STDERR: the child will inherit the parent's standard error.
|
|
170
|
-
* Since: 2.74
|
|
171
|
-
* @G_SPAWN_STDIN_FROM_DEV_NULL: the child's standard input is attached to `/dev/null`.
|
|
172
|
-
* Since: 2.74
|
|
173
167
|
*
|
|
174
168
|
* Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
|
|
175
169
|
*/
|
|
@@ -159,22 +159,22 @@ gboolean (g_str_has_prefix) (const gchar *str,
|
|
|
159
159
|
#define g_str_has_prefix(STR, PREFIX) \
|
|
160
160
|
(__builtin_constant_p (PREFIX)? \
|
|
161
161
|
G_GNUC_EXTENSION ({ \
|
|
162
|
-
const char * const
|
|
163
|
-
const char * const
|
|
164
|
-
gboolean
|
|
162
|
+
const char * const _str = (STR); \
|
|
163
|
+
const char * const _prefix = (PREFIX); \
|
|
164
|
+
gboolean _result = FALSE; \
|
|
165
165
|
\
|
|
166
|
-
if G_UNLIKELY (
|
|
167
|
-
|
|
166
|
+
if G_UNLIKELY (_str == NULL || _prefix == NULL) \
|
|
167
|
+
_result = (g_str_has_prefix) (_str, _prefix); \
|
|
168
168
|
else \
|
|
169
169
|
{ \
|
|
170
|
-
const size_t
|
|
171
|
-
const size_t
|
|
172
|
-
if (
|
|
173
|
-
|
|
174
|
-
_G_STR_NONNULL (
|
|
175
|
-
|
|
170
|
+
const size_t _str_len = strlen (_G_STR_NONNULL (_str)); \
|
|
171
|
+
const size_t _prefix_len = strlen (_G_STR_NONNULL (_prefix)); \
|
|
172
|
+
if (_str_len >= _prefix_len) \
|
|
173
|
+
_result = memcmp (_G_STR_NONNULL (_str), \
|
|
174
|
+
_G_STR_NONNULL (_prefix), \
|
|
175
|
+
_prefix_len) == 0; \
|
|
176
176
|
} \
|
|
177
|
-
|
|
177
|
+
_result; \
|
|
178
178
|
}) \
|
|
179
179
|
: \
|
|
180
180
|
(g_str_has_prefix) (STR, PREFIX) \
|
|
@@ -183,22 +183,22 @@ gboolean (g_str_has_prefix) (const gchar *str,
|
|
|
183
183
|
#define g_str_has_suffix(STR, SUFFIX) \
|
|
184
184
|
(__builtin_constant_p (SUFFIX)? \
|
|
185
185
|
G_GNUC_EXTENSION ({ \
|
|
186
|
-
const char * const
|
|
187
|
-
const char * const
|
|
188
|
-
gboolean
|
|
186
|
+
const char * const _str = (STR); \
|
|
187
|
+
const char * const _suffix = (SUFFIX); \
|
|
188
|
+
gboolean _result = FALSE; \
|
|
189
189
|
\
|
|
190
|
-
if G_UNLIKELY (
|
|
191
|
-
|
|
190
|
+
if G_UNLIKELY (_str == NULL || _suffix == NULL) \
|
|
191
|
+
_result = (g_str_has_suffix) (_str, _suffix); \
|
|
192
192
|
else \
|
|
193
193
|
{ \
|
|
194
|
-
const size_t
|
|
195
|
-
const size_t
|
|
196
|
-
if (
|
|
197
|
-
|
|
198
|
-
_G_STR_NONNULL (
|
|
199
|
-
|
|
194
|
+
const size_t _str_len = strlen (_G_STR_NONNULL (_str)); \
|
|
195
|
+
const size_t _suffix_len = strlen (_G_STR_NONNULL (_suffix)); \
|
|
196
|
+
if (_str_len >= _suffix_len) \
|
|
197
|
+
_result = memcmp (_str + _str_len - _suffix_len, \
|
|
198
|
+
_G_STR_NONNULL (_suffix), \
|
|
199
|
+
_suffix_len) == 0; \
|
|
200
200
|
} \
|
|
201
|
-
|
|
201
|
+
_result; \
|
|
202
202
|
}) \
|
|
203
203
|
: \
|
|
204
204
|
(g_str_has_suffix) (STR, SUFFIX) \
|
|
@@ -63,6 +63,8 @@ GString *g_string_copy (GString *string);
|
|
|
63
63
|
GLIB_AVAILABLE_IN_ALL
|
|
64
64
|
gchar* (g_string_free) (GString *string,
|
|
65
65
|
gboolean free_segment);
|
|
66
|
+
GLIB_AVAILABLE_IN_2_90
|
|
67
|
+
void (g_string_free_deep) (GString *string);
|
|
66
68
|
GLIB_AVAILABLE_IN_2_76
|
|
67
69
|
gchar* g_string_free_and_steal (GString *string) G_GNUC_WARN_UNUSED_RESULT;
|
|
68
70
|
|
|
@@ -270,10 +272,10 @@ g_string_truncate_inline (GString *gstring,
|
|
|
270
272
|
#define g_string_append(gstr, val) \
|
|
271
273
|
(__builtin_constant_p (val) ? \
|
|
272
274
|
G_GNUC_EXTENSION ({ \
|
|
273
|
-
const char * const
|
|
274
|
-
g_string_append_len (gstr,
|
|
275
|
-
G_LIKELY (
|
|
276
|
-
(gssize) strlen (_G_STR_NONNULL (
|
|
275
|
+
const char * const _val = (val); \
|
|
276
|
+
g_string_append_len (gstr, _val, \
|
|
277
|
+
G_LIKELY (_val != NULL) ? \
|
|
278
|
+
(gssize) strlen (_G_STR_NONNULL (_val)) \
|
|
277
279
|
: (gssize) -1); \
|
|
278
280
|
}) \
|
|
279
281
|
: \
|