@revizly/sharp-libvips-dev 1.0.8 → 1.0.10
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/cplusplus/VImage.cpp +18 -2
- package/cplusplus/vips-operators.cpp +79 -3
- package/include/aom/aom.h +1 -1
- package/include/aom/aom_codec.h +22 -5
- package/include/aom/aom_decoder.h +1 -1
- package/include/aom/aom_encoder.h +5 -1
- package/include/aom/aom_external_partition.h +1 -1
- package/include/aom/aom_frame_buffer.h +1 -1
- package/include/aom/aom_image.h +4 -2
- package/include/aom/aom_integer.h +1 -9
- package/include/aom/aomcx.h +99 -16
- package/include/aom/aomdx.h +1 -1
- package/include/archive.h +2 -2
- package/include/archive_entry.h +7 -1
- package/include/cairo/cairo-version.h +1 -1
- package/include/expat.h +4 -2
- package/include/expat_config.h +3 -6
- package/include/ffi.h +1 -1
- package/include/fontconfig/fontconfig.h +22 -2
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/fribidi/fribidi-unicode-version.h +3 -3
- package/include/gio-unix-2.0/gio/gdesktopappinfo.h +1 -1
- package/include/gio-unix-2.0/gio/gunixmounts.h +105 -24
- package/include/glib-2.0/gio/gdbusconnection.h +65 -5
- package/include/glib-2.0/gio/gdebugcontroller.h +1 -1
- package/include/glib-2.0/gio/gfile.h +4 -0
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +16 -5
- package/include/glib-2.0/gio/gioenumtypes.h +3 -3
- package/include/glib-2.0/gio/giotypes.h +4 -4
- package/include/glib-2.0/gio/gmemorymonitor.h +1 -1
- package/include/glib-2.0/gio/gnetworkmonitor.h +1 -1
- package/include/glib-2.0/gio/gpowerprofilemonitor.h +1 -1
- package/include/glib-2.0/gio/gproxy.h +1 -1
- package/include/glib-2.0/gio/gproxyresolver.h +1 -1
- package/include/glib-2.0/gio/gresource.h +6 -0
- package/include/glib-2.0/gio/gtlsbackend.h +1 -1
- package/include/glib-2.0/gio/gvfs.h +3 -3
- package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
- package/include/glib-2.0/girepository/gitypes.h +1 -0
- package/include/glib-2.0/glib/garray.h +1 -1
- package/include/glib-2.0/glib/gerror.h +1 -1
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmacros.h +3 -3
- package/include/glib-2.0/glib/gmain.h +131 -48
- package/include/glib-2.0/glib/gmem.h +3 -0
- package/include/glib-2.0/glib/goption.h +58 -36
- package/include/glib-2.0/glib/gqueue.h +1 -1
- package/include/glib-2.0/glib/grefstring.h +4 -0
- package/include/glib-2.0/glib/gstdio.h +65 -0
- package/include/glib-2.0/glib/gstrfuncs.h +4 -0
- package/include/glib-2.0/glib/gstring.h +4 -0
- package/include/glib-2.0/glib/gtestutils.h +65 -33
- package/include/glib-2.0/glib/gthread.h +2 -0
- package/include/glib-2.0/glib/gtypes.h +1 -1
- package/include/glib-2.0/glib/gunicode.h +21 -5
- package/include/glib-2.0/glib/gvariant.h +50 -13
- package/include/glib-2.0/glib/gvarianttype.h +62 -46
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib-unix.h +21 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/glib-enumtypes.h +1 -1
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobjectnotifyqueue.c +3 -3
- package/include/glib-2.0/gobject/gparam.h +4 -2
- package/include/glib-2.0/gobject/gsignal.h +22 -7
- package/include/glib-2.0/gobject/gtype.h +10 -4
- package/include/harfbuzz/hb-buffer.h +7 -0
- package/include/harfbuzz/hb-common.h +18 -0
- package/include/harfbuzz/hb-draw.h +1 -1
- package/include/harfbuzz/hb-face.h +43 -2
- package/include/harfbuzz/hb-ft.h +3 -0
- package/include/harfbuzz/hb-ot-shape.h +6 -0
- package/include/harfbuzz/hb-paint.h +1 -1
- package/include/harfbuzz/hb-shape.h +2 -0
- package/include/harfbuzz/hb-subset-serialize.h +83 -0
- package/include/harfbuzz/hb-subset.h +12 -0
- package/include/harfbuzz/hb-version.h +3 -3
- package/include/lcms2.h +7 -5
- package/include/lcms2_plugin.h +1 -1
- package/include/libexif/exif-byte-order.h +2 -0
- package/include/libexif/exif-content.h +2 -0
- package/include/libexif/exif-data-type.h +2 -0
- package/include/libexif/exif-data.h +3 -2
- package/include/libexif/exif-entry.h +2 -0
- package/include/libexif/exif-format.h +2 -0
- package/include/libexif/exif-ifd.h +2 -0
- package/include/libexif/exif-loader.h +2 -0
- package/include/libexif/exif-log.h +2 -0
- package/include/libexif/exif-mem.h +2 -0
- package/include/libexif/exif-mnote-data.h +2 -0
- package/include/libexif/exif-tag.h +2 -0
- package/include/libexif/exif-utils.h +2 -0
- package/include/libheif/heif.h +322 -26
- package/include/libheif/heif_properties.h +24 -4
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +126 -18
- package/include/libpng16/pngconf.h +5 -6
- package/include/libpng16/pnglibconf.h +11 -2
- package/include/librsvg-2.0/librsvg/rsvg-features.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
- package/include/librsvg-2.0/librsvg/rsvg.h +3 -1
- package/include/libxml2/libxml/xmlexports.h +2 -2
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-font.h +31 -2
- package/include/pango-1.0/pango/pango-fontmap.h +4 -0
- package/include/pango-1.0/pango/pango-layout.h +10 -1
- package/include/pango-1.0/pango/pango-version-macros.h +52 -0
- package/include/pango-1.0/pango/pangofc-fontmap.h +6 -0
- package/include/pixman-1/pixman-version.h +3 -3
- package/include/png.h +126 -18
- package/include/pngconf.h +5 -6
- package/include/pnglibconf.h +11 -2
- package/include/tiffio.h +11 -11
- package/include/tiffvers.h +4 -4
- package/include/vips/VImage8.h +170 -60
- package/include/vips/arithmetic.h +9 -0
- package/include/vips/basic.h +8 -4
- package/include/vips/buf.h +0 -2
- package/include/vips/connection.h +0 -2
- package/include/vips/conversion.h +0 -3
- package/include/vips/create.h +11 -0
- package/include/vips/enumtypes.h +3 -3
- package/include/vips/foreign.h +4 -18
- package/include/vips/header.h +7 -0
- package/include/vips/image.h +7 -2
- package/include/vips/interpolate.h +2 -3
- package/include/vips/memory.h +19 -1
- package/include/vips/operation.h +2 -7
- package/include/vips/private.h +7 -0
- package/include/vips/util.h +6 -15
- package/include/vips/version.h +8 -8
- package/include/vips/vips.h +11 -5
- package/include/vips/vips8 +19 -12
- package/include/webp/encode.h +5 -4
- package/include/webp/sharpyuv/sharpyuv.h +14 -5
- package/include/webp/sharpyuv/sharpyuv_csp.h +5 -0
- package/include/webp/types.h +2 -2
- package/include/zlib.h +4 -4
- package/package.json +1 -1
- package/versions.json +22 -22
|
@@ -179,6 +179,71 @@ GLIB_AVAILABLE_IN_2_36
|
|
|
179
179
|
gboolean g_close (gint fd,
|
|
180
180
|
GError **error);
|
|
181
181
|
|
|
182
|
+
/**
|
|
183
|
+
* g_clear_fd: (skip)
|
|
184
|
+
* @fd_ptr: (not optional) (inout) (transfer full): a pointer to a file descriptor
|
|
185
|
+
* @error: Used to return an error on failure
|
|
186
|
+
*
|
|
187
|
+
* If @fd_ptr points to a file descriptor, close it and return
|
|
188
|
+
* whether closing it was successful, like g_close().
|
|
189
|
+
* If @fd_ptr points to a negative number, return %TRUE without closing
|
|
190
|
+
* anything.
|
|
191
|
+
* In both cases, set @fd_ptr to `-1` before returning.
|
|
192
|
+
*
|
|
193
|
+
* Like g_close(), if closing the file descriptor fails, the error is
|
|
194
|
+
* stored in both %errno and @error. If this function succeeds,
|
|
195
|
+
* %errno is undefined.
|
|
196
|
+
*
|
|
197
|
+
* On POSIX platforms, this function is async-signal safe
|
|
198
|
+
* if @error is %NULL and @fd_ptr points to either a negative number or a
|
|
199
|
+
* valid open file descriptor.
|
|
200
|
+
* This makes it safe to call from a signal handler or a #GSpawnChildSetupFunc
|
|
201
|
+
* under those conditions.
|
|
202
|
+
* See [`signal(7)`](man:signal(7)) and
|
|
203
|
+
* [`signal-safety(7)`](man:signal-safety(7)) for more details.
|
|
204
|
+
*
|
|
205
|
+
* It is a programming error for @fd_ptr to point to a non-negative
|
|
206
|
+
* number that is not a valid file descriptor.
|
|
207
|
+
*
|
|
208
|
+
* A typical use of this function is to clean up a file descriptor at
|
|
209
|
+
* the end of its scope, whether it has been set successfully or not:
|
|
210
|
+
*
|
|
211
|
+
* |[
|
|
212
|
+
* gboolean
|
|
213
|
+
* operate_on_fd (GError **error)
|
|
214
|
+
* {
|
|
215
|
+
* gboolean ret = FALSE;
|
|
216
|
+
* int fd = -1;
|
|
217
|
+
*
|
|
218
|
+
* fd = open_a_fd (error);
|
|
219
|
+
*
|
|
220
|
+
* if (fd < 0)
|
|
221
|
+
* goto out;
|
|
222
|
+
*
|
|
223
|
+
* if (!do_something (fd, error))
|
|
224
|
+
* goto out;
|
|
225
|
+
*
|
|
226
|
+
* if (!g_clear_fd (&fd, error))
|
|
227
|
+
* goto out;
|
|
228
|
+
*
|
|
229
|
+
* ret = TRUE;
|
|
230
|
+
*
|
|
231
|
+
* out:
|
|
232
|
+
* // OK to call even if fd was never opened or was already closed
|
|
233
|
+
* g_clear_fd (&fd, NULL);
|
|
234
|
+
* return ret;
|
|
235
|
+
* }
|
|
236
|
+
* ]|
|
|
237
|
+
*
|
|
238
|
+
* This function is also useful in conjunction with #g_autofd.
|
|
239
|
+
*
|
|
240
|
+
* Returns: %TRUE on success
|
|
241
|
+
* Since: 2.76
|
|
242
|
+
*/
|
|
243
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
|
244
|
+
static inline gboolean g_clear_fd (int *fd_ptr,
|
|
245
|
+
GError **error);
|
|
246
|
+
|
|
182
247
|
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
|
183
248
|
static inline gboolean
|
|
184
249
|
g_clear_fd (int *fd_ptr,
|
|
@@ -476,6 +476,10 @@ gboolean g_ascii_string_to_unsigned (const gchar *str,
|
|
|
476
476
|
* Since: 2.76
|
|
477
477
|
*/
|
|
478
478
|
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
|
479
|
+
static inline gboolean g_set_str (char **str_pointer,
|
|
480
|
+
const char *new_str);
|
|
481
|
+
|
|
482
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
|
479
483
|
static inline gboolean
|
|
480
484
|
g_set_str (char **str_pointer,
|
|
481
485
|
const char *new_str)
|
|
@@ -66,6 +66,8 @@ gchar* g_string_free_and_steal (GString *string) G_GNUC_WARN_UN
|
|
|
66
66
|
|
|
67
67
|
#if G_GNUC_CHECK_VERSION (2, 0) && (GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76)
|
|
68
68
|
|
|
69
|
+
#if !defined(__cplusplus) || !G_GNUC_CHECK_VERSION (6, 1) || G_GNUC_CHECK_VERSION (7, 3)
|
|
70
|
+
|
|
69
71
|
#define g_string_free(str, free_segment) \
|
|
70
72
|
(__builtin_constant_p (free_segment) ? \
|
|
71
73
|
((free_segment) ? \
|
|
@@ -74,6 +76,8 @@ gchar* g_string_free_and_steal (GString *string) G_GNUC_WARN_UN
|
|
|
74
76
|
: \
|
|
75
77
|
(g_string_free) ((str), (free_segment)))
|
|
76
78
|
|
|
79
|
+
#endif /* !defined(__cplusplus) || !G_GNUC_CHECK_VERSION (6, 1) || G_GNUC_CHECK_VERSION (7, 3) */
|
|
80
|
+
|
|
77
81
|
#endif /* G_GNUC_CHECK_VERSION (2, 0) && (GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_76) */
|
|
78
82
|
|
|
79
83
|
GLIB_AVAILABLE_IN_2_34
|
|
@@ -302,34 +302,61 @@ void g_test_init (int *argc,
|
|
|
302
302
|
/**
|
|
303
303
|
* G_TEST_OPTION_ISOLATE_DIRS:
|
|
304
304
|
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
305
|
+
* A value that can be passed as an option to [func@GLib.test_init].
|
|
306
|
+
*
|
|
307
|
+
* Creates a unique temporary directory for each unit test and uses sets
|
|
308
|
+
* XDG directories to point into subdirectories of it for the duration of
|
|
309
|
+
* the unit test. The directory tree is cleaned up after the test finishes
|
|
310
|
+
* successfully.
|
|
311
|
+
*
|
|
312
|
+
* Note that this doesn’t take effect until [func@GLib.test_run] is called,
|
|
313
|
+
* so calls to (for example) [func@GLib.get_home_dir] will return the
|
|
314
|
+
* system-wide value when made in a test program’s main() function.
|
|
311
315
|
*
|
|
312
316
|
* The following functions will return subdirectories of the temporary directory
|
|
313
317
|
* when this option is used. The specific subdirectory paths in use are not
|
|
314
318
|
* guaranteed to be stable API — always use a getter function to retrieve them.
|
|
315
319
|
*
|
|
316
|
-
* -
|
|
317
|
-
* -
|
|
318
|
-
* -
|
|
319
|
-
* -
|
|
320
|
-
* -
|
|
321
|
-
* -
|
|
322
|
-
* -
|
|
323
|
-
* -
|
|
320
|
+
* - [func@GLib.get_home_dir]
|
|
321
|
+
* - [func@GLib.get_user_cache_dir]
|
|
322
|
+
* - [func@GLib.get_system_config_dirs]
|
|
323
|
+
* - [func@GLib.get_user_config_dir]
|
|
324
|
+
* - [func@GLib.get_system_data_dirs]
|
|
325
|
+
* - [func@GLib.get_user_data_dir]
|
|
326
|
+
* - [func@GLib.get_user_state_dir]
|
|
327
|
+
* - [func@GLib.get_user_runtime_dir]
|
|
324
328
|
*
|
|
325
329
|
* The subdirectories may not be created by the test harness; as with normal
|
|
326
|
-
* calls to functions like
|
|
327
|
-
* to create the directory if it doesn’t exist.
|
|
330
|
+
* calls to functions like [func@GLib.get_user_cache_dir], the caller must
|
|
331
|
+
* be prepared to create the directory if it doesn’t exist.
|
|
328
332
|
*
|
|
329
333
|
* Since: 2.60
|
|
330
334
|
*/
|
|
331
335
|
#define G_TEST_OPTION_ISOLATE_DIRS "isolate_dirs"
|
|
332
336
|
|
|
337
|
+
/**
|
|
338
|
+
* G_TEST_OPTION_NO_PRGNAME:
|
|
339
|
+
*
|
|
340
|
+
* A value that can be passed as an option to [func@GLib.test_init].
|
|
341
|
+
*
|
|
342
|
+
* If this option is given, [func@GLib.test_init] will not call [func@GLib.set_prgname].
|
|
343
|
+
*
|
|
344
|
+
* Since: 2.84
|
|
345
|
+
*/
|
|
346
|
+
#define G_TEST_OPTION_NO_PRGNAME "no_g_set_prgname"
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* G_TEST_OPTION_NONFATAL_ASSERTIONS:
|
|
350
|
+
*
|
|
351
|
+
* A value that can be passed as an option to [func@GLib.test_init].
|
|
352
|
+
*
|
|
353
|
+
* If this option is given, assertions will not abort the process, but
|
|
354
|
+
* call [func@GLib.test_fail]. Equivalent to [func@GLib.test_set_nonfatal_assertions].
|
|
355
|
+
*
|
|
356
|
+
* Since: 2.84
|
|
357
|
+
*/
|
|
358
|
+
#define G_TEST_OPTION_NONFATAL_ASSERTIONS "nonfatal-assertions"
|
|
359
|
+
|
|
333
360
|
/* While we discourage its use, g_assert() is often used in unit tests
|
|
334
361
|
* (especially in legacy code). g_assert_*() should really be used instead.
|
|
335
362
|
* g_assert() can be disabled at client program compile time, which can render
|
|
@@ -412,20 +439,24 @@ void g_test_disable_crash_reporting (void);
|
|
|
412
439
|
|
|
413
440
|
/**
|
|
414
441
|
* g_test_add:
|
|
415
|
-
* @testpath:
|
|
416
|
-
* @Fixture:
|
|
417
|
-
* @tdata:
|
|
418
|
-
* @fsetup:
|
|
419
|
-
* @ftest:
|
|
420
|
-
* @fteardown:
|
|
442
|
+
* @testpath: the test path for a new test case
|
|
443
|
+
* @Fixture: the type of a fixture data structure
|
|
444
|
+
* @tdata: data argument for the test functions
|
|
445
|
+
* @fsetup: the function to set up the fixture data
|
|
446
|
+
* @ftest: the actual test function
|
|
447
|
+
* @fteardown: the function to tear down the fixture data
|
|
448
|
+
*
|
|
449
|
+
* Hooks up a new test case at @testpath.
|
|
421
450
|
*
|
|
422
|
-
*
|
|
423
|
-
* A fixture data structure with setup and teardown functions may be provided,
|
|
424
|
-
* similar to g_test_create_case().
|
|
451
|
+
* This function is similar to [func@GLib.test_add_func].
|
|
425
452
|
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
453
|
+
* A fixture data structure with setup and teardown functions
|
|
454
|
+
* may be provided, similar to [func@GLib.test_create_case].
|
|
455
|
+
*
|
|
456
|
+
* `g_test_add()` is implemented as a macro, so that the @fsetup,
|
|
457
|
+
* @ftest and @fteardown callbacks can expect a @Fixture pointer
|
|
458
|
+
* as their first argument in a type safe manner. They otherwise
|
|
459
|
+
* have type `GTestFixtureFunc`.
|
|
429
460
|
*
|
|
430
461
|
* Since: 2.16
|
|
431
462
|
*/
|
|
@@ -482,12 +513,13 @@ void g_test_queue_destroy (GDestroyNotify destroy_func,
|
|
|
482
513
|
* child process is shared with stdin of its parent process.
|
|
483
514
|
* It is redirected to `/dev/null` otherwise.
|
|
484
515
|
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
516
|
+
* Flags to pass to [func@GLib.test_trap_fork] to control input and output.
|
|
517
|
+
*
|
|
518
|
+
* Test traps are guards around forked tests. These flags determine what traps to set.
|
|
487
519
|
*
|
|
488
|
-
* Deprecated: 2.38:
|
|
489
|
-
*
|
|
490
|
-
*
|
|
520
|
+
* Deprecated: 2.38: `GTestTrapFlags` is used only with [func@GLib.test_trap_fork],
|
|
521
|
+
* which is deprecated. Its replacement, [func@GLib.test_trap_subprocess] uses
|
|
522
|
+
* [flags@GLib.TestSubprocessFlags].
|
|
491
523
|
*/
|
|
492
524
|
typedef enum {
|
|
493
525
|
G_TEST_TRAP_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
|
|
@@ -165,6 +165,8 @@ gpointer g_thread_join (GThread *thread);
|
|
|
165
165
|
GLIB_AVAILABLE_IN_ALL
|
|
166
166
|
void g_thread_yield (void);
|
|
167
167
|
|
|
168
|
+
GLIB_AVAILABLE_IN_2_84
|
|
169
|
+
const char * g_thread_get_name (GThread *thread);
|
|
168
170
|
|
|
169
171
|
GLIB_AVAILABLE_IN_2_32
|
|
170
172
|
void g_mutex_init (GMutex *mutex);
|
|
@@ -247,7 +247,7 @@ typedef const gchar * (*GTranslateFunc) (const gchar *str,
|
|
|
247
247
|
*/
|
|
248
248
|
#if defined (__GNUC__) && (__GNUC__ >= 2) && defined (__OPTIMIZE__)
|
|
249
249
|
|
|
250
|
-
# if __GNUC__
|
|
250
|
+
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
|
251
251
|
# define GUINT32_SWAP_LE_BE(val) ((guint32) __builtin_bswap32 ((guint32) (val)))
|
|
252
252
|
# define GUINT64_SWAP_LE_BE(val) ((guint64) __builtin_bswap64 ((guint64) (val)))
|
|
253
253
|
# endif
|
|
@@ -205,10 +205,10 @@ typedef enum
|
|
|
205
205
|
* @G_UNICODE_BREAK_EMOJI_MODIFIER: Emoji Modifier (EM). Since: 2.50
|
|
206
206
|
* @G_UNICODE_BREAK_ZERO_WIDTH_JOINER: Zero Width Joiner (ZWJ). Since: 2.50
|
|
207
207
|
* @G_UNICODE_BREAK_AKSARA: Aksara (AK). Since: 2.80
|
|
208
|
-
* @G_UNICODE_BREAK_AKSARA_PRE_BASE (AP). Since: 2.80
|
|
209
|
-
* @G_UNICODE_BREAK_AKSARA_START (AS). Since: 2.80
|
|
210
|
-
* @G_UNICODE_BREAK_VIRAMA_FINAL (VF). Since: 2.80
|
|
211
|
-
* @G_UNICODE_BREAK_VIRAMA (VI). Since: 2.80
|
|
208
|
+
* @G_UNICODE_BREAK_AKSARA_PRE_BASE: Aksara Pre-Base (AP). Since: 2.80
|
|
209
|
+
* @G_UNICODE_BREAK_AKSARA_START: Aksara Start (AS). Since: 2.80
|
|
210
|
+
* @G_UNICODE_BREAK_VIRAMA_FINAL: Virama Final (VF). Since: 2.80
|
|
211
|
+
* @G_UNICODE_BREAK_VIRAMA: Virama (VI). Since: 2.80
|
|
212
212
|
*
|
|
213
213
|
* These are the possible line break classifications.
|
|
214
214
|
*
|
|
@@ -450,6 +450,13 @@ typedef enum
|
|
|
450
450
|
* @G_UNICODE_SCRIPT_MATH: Mathematical notation. Since: 2.72
|
|
451
451
|
* @G_UNICODE_SCRIPT_KAWI: Kawi. Since 2.74
|
|
452
452
|
* @G_UNICODE_SCRIPT_NAG_MUNDARI: Nag Mundari. Since 2.74
|
|
453
|
+
* @G_UNICODE_SCRIPT_TODHRI: Todhri. Since: 2.84
|
|
454
|
+
* @G_UNICODE_SCRIPT_GARAY: Garay. Since: 2.84
|
|
455
|
+
* @G_UNICODE_SCRIPT_TULU_TIGALARI: Tulu-Tigalari. Since: 2.84
|
|
456
|
+
* @G_UNICODE_SCRIPT_SUNUWAR: Sunuwar. Since: 2.84
|
|
457
|
+
* @G_UNICODE_SCRIPT_GURUNG_KHEMA: Gurung Khema. Since: 2.84
|
|
458
|
+
* @G_UNICODE_SCRIPT_KIRAT_RAI: Kirat Rai. Since: 2.84
|
|
459
|
+
* @G_UNICODE_SCRIPT_OL_ONAL: Ol Onal. Since: 2.84
|
|
453
460
|
*
|
|
454
461
|
* The #GUnicodeScript enumeration identifies different writing
|
|
455
462
|
* systems. The values correspond to the names as defined in the
|
|
@@ -661,7 +668,16 @@ typedef enum
|
|
|
661
668
|
|
|
662
669
|
/* Unicode 15.0 additions */
|
|
663
670
|
G_UNICODE_SCRIPT_KAWI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Kawi */
|
|
664
|
-
G_UNICODE_SCRIPT_NAG_MUNDARI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /*
|
|
671
|
+
G_UNICODE_SCRIPT_NAG_MUNDARI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Nagm */
|
|
672
|
+
|
|
673
|
+
/* Unicode 16.0 additions */
|
|
674
|
+
G_UNICODE_SCRIPT_TODHRI GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Todr */
|
|
675
|
+
G_UNICODE_SCRIPT_GARAY GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Gara */
|
|
676
|
+
G_UNICODE_SCRIPT_TULU_TIGALARI GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Tutg */
|
|
677
|
+
G_UNICODE_SCRIPT_SUNUWAR GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Sunu */
|
|
678
|
+
G_UNICODE_SCRIPT_GURUNG_KHEMA GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Gukh */
|
|
679
|
+
G_UNICODE_SCRIPT_KIRAT_RAI GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Krai */
|
|
680
|
+
G_UNICODE_SCRIPT_OL_ONAL GLIB_AVAILABLE_ENUMERATOR_IN_2_84, /* Onao */
|
|
665
681
|
} GUnicodeScript;
|
|
666
682
|
|
|
667
683
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -344,23 +344,25 @@ GQuark g_variant_parse_error_quark (void);
|
|
|
344
344
|
* G_VARIANT_BUILDER_INIT:
|
|
345
345
|
* @variant_type: a const GVariantType*
|
|
346
346
|
*
|
|
347
|
-
* A stack-allocated
|
|
348
|
-
* used together with
|
|
349
|
-
*
|
|
350
|
-
* builder
|
|
347
|
+
* A stack-allocated [struct@GLib.VariantBuilder] must be initialized
|
|
348
|
+
* if it is used together with
|
|
349
|
+
* [`g_auto()`](auto-cleanup.html#variable-declaration). This macro can
|
|
350
|
+
* be used as initializer when declaring the builder, but it cannot be
|
|
351
|
+
* assigned to a variable.
|
|
351
352
|
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
353
|
+
* The effects of initializing the builder with
|
|
354
|
+
* `G_VARIANT_BUILDER_INIT` is the same as initializing it with
|
|
355
|
+
* [func@GLib.VARIANT_BUILDER_INIT_UNSET], followed by a call to
|
|
356
|
+
* [method@GLib.VariantBuilder.init].
|
|
355
357
|
*
|
|
356
|
-
* The passed @variant_type should be a static
|
|
357
|
-
* lifetime issues, as copying the @variant_type does not
|
|
358
|
-
* the G_VARIANT_BUILDER_INIT
|
|
359
|
-
* make sure that
|
|
358
|
+
* The passed @variant_type should be a static [type@GLib.VariantType]
|
|
359
|
+
* to avoid lifetime issues, as copying the @variant_type does not
|
|
360
|
+
* happen in the `G_VARIANT_BUILDER_INIT` call, but rather in functions
|
|
361
|
+
* that make sure that [struct@GLib.VariantBuilder] is valid.
|
|
360
362
|
*
|
|
361
|
-
*
|
|
363
|
+
* ```c
|
|
362
364
|
* g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_BYTESTRING);
|
|
363
|
-
*
|
|
365
|
+
* ```
|
|
364
366
|
*
|
|
365
367
|
* Since: 2.50
|
|
366
368
|
*/
|
|
@@ -373,6 +375,38 @@ GQuark g_variant_parse_error_quark (void);
|
|
|
373
375
|
} \
|
|
374
376
|
}
|
|
375
377
|
|
|
378
|
+
/**
|
|
379
|
+
* G_VARIANT_BUILDER_INIT_UNSET:
|
|
380
|
+
*
|
|
381
|
+
* A stack-allocated [struct@GLib.VariantBuilder] must be initialized
|
|
382
|
+
* if it is used together with
|
|
383
|
+
* [`g_auto()`](auto-cleanup.html#variable-declaration). This macro can
|
|
384
|
+
* be used as initializer when declaring the builder, but it cannot be
|
|
385
|
+
* assigned to a variable.
|
|
386
|
+
*
|
|
387
|
+
* The builder can be initialized to a specific [type@GLib.VariantType]
|
|
388
|
+
* later with [method@GLib.VariantBuilder.init].
|
|
389
|
+
*
|
|
390
|
+
* Use [func@GLib.VARIANT_BUILDER_INIT] to directly initialize the
|
|
391
|
+
* builder with a specific [type@GLib.VariantType].
|
|
392
|
+
*
|
|
393
|
+
* ```c
|
|
394
|
+
* g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT_UNSET ();
|
|
395
|
+
*
|
|
396
|
+
* if (condition)
|
|
397
|
+
* return NULL;
|
|
398
|
+
*
|
|
399
|
+
* g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{su}"));
|
|
400
|
+
* return g_variant_ref_sink (g_variant_builder_end (&builder));
|
|
401
|
+
* ```
|
|
402
|
+
*
|
|
403
|
+
* Since: 2.84
|
|
404
|
+
*/
|
|
405
|
+
#define G_VARIANT_BUILDER_INIT_UNSET() \
|
|
406
|
+
{ \
|
|
407
|
+
0, \
|
|
408
|
+
} GLIB_AVAILABLE_MACRO_IN_2_84
|
|
409
|
+
|
|
376
410
|
GLIB_AVAILABLE_IN_ALL
|
|
377
411
|
GVariantBuilder * g_variant_builder_new (const GVariantType *type);
|
|
378
412
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -382,6 +416,9 @@ GVariantBuilder * g_variant_builder_ref (GVarian
|
|
|
382
416
|
GLIB_AVAILABLE_IN_ALL
|
|
383
417
|
void g_variant_builder_init (GVariantBuilder *builder,
|
|
384
418
|
const GVariantType *type);
|
|
419
|
+
GLIB_AVAILABLE_IN_2_84
|
|
420
|
+
void g_variant_builder_init_static (GVariantBuilder *builder,
|
|
421
|
+
const GVariantType *type);
|
|
385
422
|
GLIB_AVAILABLE_IN_ALL
|
|
386
423
|
GVariant * g_variant_builder_end (GVariantBuilder *builder);
|
|
387
424
|
GLIB_AVAILABLE_IN_ALL
|