@revizly/sharp-libvips-dev 1.0.7 → 1.0.8
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/freetype2/freetype/config/ftconfig.h +1 -1
- package/include/freetype2/freetype/config/ftheader.h +1 -1
- package/include/freetype2/freetype/config/ftoption.h +17 -1
- 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 +1 -1
- package/include/freetype2/freetype/config/public-macros.h +1 -1
- package/include/freetype2/freetype/freetype.h +35 -83
- package/include/freetype2/freetype/ftadvanc.h +1 -1
- package/include/freetype2/freetype/ftbbox.h +1 -1
- package/include/freetype2/freetype/ftbdf.h +1 -1
- 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 +75 -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 +17 -12
- package/include/freetype2/freetype/ftincrem.h +1 -1
- package/include/freetype2/freetype/ftlcdfil.h +1 -1
- package/include/freetype2/freetype/ftlist.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 +31 -2
- 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 +2 -2
- package/include/freetype2/freetype/ftparams.h +1 -1
- 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 +1 -59
- package/include/freetype2/freetype/ttnameid.h +1 -1
- package/include/freetype2/freetype/tttables.h +4 -3
- package/include/freetype2/freetype/tttags.h +1 -1
- package/include/freetype2/ft2build.h +1 -1
- package/include/glib-2.0/gio/gappinfo.h +40 -25
- package/include/glib-2.0/gio/gasyncresult.h +1 -1
- package/include/glib-2.0/glib/gmacros.h +6 -2
- package/include/glib-2.0/glib/gmain.h +93 -7
- package/include/glib-2.0/glib/gqsort.h +8 -1
- package/include/glib-2.0/gobject/gtype.h +5 -5
- package/include/libheif/heif.h +170 -15
- package/include/libheif/heif_items.h +237 -0
- package/include/libheif/heif_properties.h +38 -2
- package/include/libheif/heif_regions.h +1 -1
- package/include/libheif/heif_version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg.h +30 -1
- package/include/libxml2/libxml/parser.h +1 -1
- package/include/libxml2/libxml/xmlversion.h +13 -13
- package/include/vips/util.h +1 -2
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- package/versions.json +6 -6
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* FreeType Multiple Master font interface (specification).
|
|
6
6
|
*
|
|
7
|
-
* Copyright (C) 1996-
|
|
7
|
+
* Copyright (C) 1996-2024 by
|
|
8
8
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
9
9
|
*
|
|
10
10
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -19,8 +19,13 @@
|
|
|
19
19
|
#ifndef FTMM_H_
|
|
20
20
|
#define FTMM_H_
|
|
21
21
|
|
|
22
|
+
#include <freetype/freetype.h>
|
|
22
23
|
|
|
23
|
-
#
|
|
24
|
+
#ifdef FREETYPE_H
|
|
25
|
+
#error "freetype.h of FreeType 1 has been loaded!"
|
|
26
|
+
#error "Please fix the directory search order for header files"
|
|
27
|
+
#error "so that freetype.h of FreeType 2 is found first."
|
|
28
|
+
#endif
|
|
24
29
|
|
|
25
30
|
|
|
26
31
|
FT_BEGIN_HEADER
|
|
@@ -53,6 +58,30 @@ FT_BEGIN_HEADER
|
|
|
53
58
|
*/
|
|
54
59
|
|
|
55
60
|
|
|
61
|
+
/**************************************************************************
|
|
62
|
+
*
|
|
63
|
+
* @enum:
|
|
64
|
+
* T1_MAX_MM_XXX
|
|
65
|
+
*
|
|
66
|
+
* @description:
|
|
67
|
+
* Multiple Masters limits as defined in their specifications.
|
|
68
|
+
*
|
|
69
|
+
* @values:
|
|
70
|
+
* T1_MAX_MM_AXIS ::
|
|
71
|
+
* The maximum number of Multiple Masters axes.
|
|
72
|
+
*
|
|
73
|
+
* T1_MAX_MM_DESIGNS ::
|
|
74
|
+
* The maximum number of Multiple Masters designs.
|
|
75
|
+
*
|
|
76
|
+
* T1_MAX_MM_MAP_POINTS ::
|
|
77
|
+
* The maximum number of elements in a design map.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
#define T1_MAX_MM_AXIS 4
|
|
81
|
+
#define T1_MAX_MM_DESIGNS 16
|
|
82
|
+
#define T1_MAX_MM_MAP_POINTS 20
|
|
83
|
+
|
|
84
|
+
|
|
56
85
|
/**************************************************************************
|
|
57
86
|
*
|
|
58
87
|
* @struct:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Support for the FT_Outline type used to store glyph shapes of
|
|
6
6
|
* most scalable font formats (specification).
|
|
7
7
|
*
|
|
8
|
-
* Copyright (C) 1996-
|
|
8
|
+
* Copyright (C) 1996-2024 by
|
|
9
9
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
10
10
|
*
|
|
11
11
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -112,7 +112,7 @@ FT_BEGIN_HEADER
|
|
|
112
112
|
* Degenerate contours, segments, and Bezier arcs may be reported. In
|
|
113
113
|
* most cases, it is best to filter these out before using the outline
|
|
114
114
|
* for stroking or other path modification purposes (which may cause
|
|
115
|
-
* degenerate segments to become non-
|
|
115
|
+
* degenerate segments to become non-degenerate and visible, like when
|
|
116
116
|
* stroke caps are used or the path is otherwise outset). Some glyph
|
|
117
117
|
* outlines may contain deliberate degenerate single points for mark
|
|
118
118
|
* attachement.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* FreeType API for possible FT_Parameter tags (specification only).
|
|
6
6
|
*
|
|
7
|
-
* Copyright (C) 2017-
|
|
7
|
+
* Copyright (C) 2017-2024 by
|
|
8
8
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
9
9
|
*
|
|
10
10
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* FreeType API for accessing PFR-specific data (specification only).
|
|
6
6
|
*
|
|
7
|
-
* Copyright (C) 2002-
|
|
7
|
+
* Copyright (C) 2002-2024 by
|
|
8
8
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
9
9
|
*
|
|
10
10
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* FreeType synthesizing code for emboldening and slanting
|
|
6
6
|
* (specification).
|
|
7
7
|
*
|
|
8
|
-
* Copyright (C) 2000-
|
|
8
|
+
* Copyright (C) 2000-2024 by
|
|
9
9
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
10
10
|
*
|
|
11
11
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Interface for OT-SVG support related things (specification).
|
|
6
6
|
*
|
|
7
|
-
* Copyright (C) 2022-
|
|
7
|
+
* Copyright (C) 2022-2024 by
|
|
8
8
|
* David Turner, Robert Wilhelm, Werner Lemberg, and Moazin Khatti.
|
|
9
9
|
*
|
|
10
10
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Basic Type 1/Type 2 tables definitions and interface (specification
|
|
6
6
|
* only).
|
|
7
7
|
*
|
|
8
|
-
* Copyright (C) 1996-
|
|
8
|
+
* Copyright (C) 1996-2024 by
|
|
9
9
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
10
10
|
*
|
|
11
11
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -269,64 +269,6 @@ FT_BEGIN_HEADER
|
|
|
269
269
|
/* */
|
|
270
270
|
|
|
271
271
|
|
|
272
|
-
/* maximum number of Multiple Masters designs, as defined in the spec */
|
|
273
|
-
#define T1_MAX_MM_DESIGNS 16
|
|
274
|
-
|
|
275
|
-
/* maximum number of Multiple Masters axes, as defined in the spec */
|
|
276
|
-
#define T1_MAX_MM_AXIS 4
|
|
277
|
-
|
|
278
|
-
/* maximum number of elements in a design map */
|
|
279
|
-
#define T1_MAX_MM_MAP_POINTS 20
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
/* this structure is used to store the BlendDesignMap entry for an axis */
|
|
283
|
-
typedef struct PS_DesignMap_
|
|
284
|
-
{
|
|
285
|
-
FT_Byte num_points;
|
|
286
|
-
FT_Long* design_points;
|
|
287
|
-
FT_Fixed* blend_points;
|
|
288
|
-
|
|
289
|
-
} PS_DesignMapRec, *PS_DesignMap;
|
|
290
|
-
|
|
291
|
-
/* backward compatible definition */
|
|
292
|
-
typedef PS_DesignMapRec T1_DesignMap;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
typedef struct PS_BlendRec_
|
|
296
|
-
{
|
|
297
|
-
FT_UInt num_designs;
|
|
298
|
-
FT_UInt num_axis;
|
|
299
|
-
|
|
300
|
-
FT_String* axis_names[T1_MAX_MM_AXIS];
|
|
301
|
-
FT_Fixed* design_pos[T1_MAX_MM_DESIGNS];
|
|
302
|
-
PS_DesignMapRec design_map[T1_MAX_MM_AXIS];
|
|
303
|
-
|
|
304
|
-
FT_Fixed* weight_vector;
|
|
305
|
-
FT_Fixed* default_weight_vector;
|
|
306
|
-
|
|
307
|
-
PS_FontInfo font_infos[T1_MAX_MM_DESIGNS + 1];
|
|
308
|
-
PS_Private privates [T1_MAX_MM_DESIGNS + 1];
|
|
309
|
-
|
|
310
|
-
FT_ULong blend_bitflags;
|
|
311
|
-
|
|
312
|
-
FT_BBox* bboxes [T1_MAX_MM_DESIGNS + 1];
|
|
313
|
-
|
|
314
|
-
/* since 2.3.0 */
|
|
315
|
-
|
|
316
|
-
/* undocumented, optional: the default design instance; */
|
|
317
|
-
/* corresponds to default_weight_vector -- */
|
|
318
|
-
/* num_default_design_vector == 0 means it is not present */
|
|
319
|
-
/* in the font and associated metrics files */
|
|
320
|
-
FT_UInt default_design_vector[T1_MAX_MM_DESIGNS];
|
|
321
|
-
FT_UInt num_default_design_vector;
|
|
322
|
-
|
|
323
|
-
} PS_BlendRec, *PS_Blend;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
/* backward compatible definition */
|
|
327
|
-
typedef PS_BlendRec T1_Blend;
|
|
328
|
-
|
|
329
|
-
|
|
330
272
|
/**************************************************************************
|
|
331
273
|
*
|
|
332
274
|
* @struct:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Basic SFNT/TrueType tables definitions and interface
|
|
6
6
|
* (specification only).
|
|
7
7
|
*
|
|
8
|
-
* Copyright (C) 1996-
|
|
8
|
+
* Copyright (C) 1996-2024 by
|
|
9
9
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
10
10
|
*
|
|
11
11
|
* This file is part of the FreeType project, and may only be used,
|
|
@@ -838,8 +838,9 @@ FT_BEGIN_HEADER
|
|
|
838
838
|
* The target charmap.
|
|
839
839
|
*
|
|
840
840
|
* @return:
|
|
841
|
-
* The format of `charmap`. If `charmap` doesn't belong to an SFNT face
|
|
842
|
-
*
|
|
841
|
+
* The format of `charmap`. If `charmap` doesn't belong to an SFNT face
|
|
842
|
+
* (including the synthetic Unicode charmap sometimes created by
|
|
843
|
+
* FreeType), return -1.
|
|
843
844
|
*/
|
|
844
845
|
FT_EXPORT( FT_Long )
|
|
845
846
|
FT_Get_CMap_Format( FT_CharMap charmap );
|
|
@@ -49,32 +49,47 @@ typedef struct _GAppLaunchContextPrivate GAppLaunchContextPrivate;
|
|
|
49
49
|
/**
|
|
50
50
|
* GAppInfoIface:
|
|
51
51
|
* @g_iface: The parent interface.
|
|
52
|
-
* @dup: Copies a
|
|
53
|
-
* @equal: Checks two
|
|
54
|
-
* @get_id: Gets a string identifier for a
|
|
55
|
-
* @get_name: Gets the name of the application for a
|
|
56
|
-
* @get_description: Gets a short description for the application described by
|
|
57
|
-
* @
|
|
58
|
-
* @
|
|
59
|
-
* @
|
|
60
|
-
* @
|
|
61
|
-
* @
|
|
52
|
+
* @dup: Copies a [iface@Gio.AppInfo].
|
|
53
|
+
* @equal: Checks two [iface@Gio.AppInfo]s for equality.
|
|
54
|
+
* @get_id: Gets a string identifier for a [iface@Gio.AppInfo].
|
|
55
|
+
* @get_name: Gets the name of the application for a [iface@Gio.AppInfo].
|
|
56
|
+
* @get_description: Gets a short description for the application described by
|
|
57
|
+
* the [iface@Gio.AppInfo].
|
|
58
|
+
* @get_executable: Gets the executable name for the [iface@Gio.AppInfo].
|
|
59
|
+
* @get_icon: Gets the [iface@Gio.Icon] for the [iface@Gio.AppInfo].
|
|
60
|
+
* @launch: Launches an application specified by the [iface@Gio.AppInfo].
|
|
61
|
+
* @supports_uris: Indicates whether the application specified supports
|
|
62
|
+
* launching URIs.
|
|
63
|
+
* @supports_files: Indicates whether the application specified accepts
|
|
64
|
+
* filename arguments.
|
|
62
65
|
* @launch_uris: Launches an application with a list of URIs.
|
|
63
|
-
* @should_show: Returns whether an application should be shown (e.g. when
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
67
|
-
*
|
|
68
|
-
* @
|
|
69
|
-
*
|
|
70
|
-
* @
|
|
71
|
-
*
|
|
72
|
-
* @
|
|
73
|
-
*
|
|
74
|
-
* @
|
|
75
|
-
*
|
|
76
|
-
* @
|
|
77
|
-
* @
|
|
66
|
+
* @should_show: Returns whether an application should be shown (e.g. when
|
|
67
|
+
* getting a list of installed applications).
|
|
68
|
+
* [FreeDesktop.Org Startup Notification Specification](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
|
|
69
|
+
* @set_as_default_for_type: Sets an application as default for a given content
|
|
70
|
+
* type.
|
|
71
|
+
* @set_as_default_for_extension: Sets an application as default for a given
|
|
72
|
+
* file extension.
|
|
73
|
+
* @add_supports_type: Adds to the [iface@Gio.AppInfo] information about
|
|
74
|
+
* supported file types.
|
|
75
|
+
* @can_remove_supports_type: Checks for support for removing supported file
|
|
76
|
+
* types from a [iface@Gio.AppInfo].
|
|
77
|
+
* @remove_supports_type: Removes a supported application type from a
|
|
78
|
+
* [iface@Gio.AppInfo].
|
|
79
|
+
* @can_delete: Checks if a [iface@Gio.AppInfo] can be deleted. (Since 2.20)
|
|
80
|
+
* @do_delete: Deletes a [iface@Gio.AppInfo]. (Since 2.20)
|
|
81
|
+
* @get_commandline: Gets the commandline for the [iface@Gio.AppInfo].
|
|
82
|
+
* (Since 2.20)
|
|
83
|
+
* @get_display_name: Gets the display name for the [iface@Gio.AppInfo].
|
|
84
|
+
* (Since 2.24)
|
|
85
|
+
* @set_as_last_used_for_type: Sets the application as the last used. See
|
|
86
|
+
* [method@Gio.AppInfo.set_as_last_used_for_type].
|
|
87
|
+
* @get_supported_types: Retrieves the list of content types that @app_info
|
|
88
|
+
* claims to support.
|
|
89
|
+
* @launch_uris_async: Asynchronously launches an application with a list of
|
|
90
|
+
* URIs. (Since: 2.60)
|
|
91
|
+
* @launch_uris_finish: Finishes an operation started with @launch_uris_async.
|
|
92
|
+
* (Since: 2.60)
|
|
78
93
|
|
|
79
94
|
* Application Information interface, for operating system portability.
|
|
80
95
|
*/
|
|
@@ -46,7 +46,7 @@ typedef struct _GAsyncResultIface GAsyncResultIface;
|
|
|
46
46
|
* @get_source_object: Gets the source object that issued the asynchronous operation.
|
|
47
47
|
* @is_tagged: Checks if a result is tagged with a particular source.
|
|
48
48
|
*
|
|
49
|
-
* Interface definition for
|
|
49
|
+
* Interface definition for [iface@Gio.AsyncResult].
|
|
50
50
|
**/
|
|
51
51
|
struct _GAsyncResultIface
|
|
52
52
|
{
|
|
@@ -861,9 +861,10 @@
|
|
|
861
861
|
#define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
|
|
862
862
|
#define G_STRINGIFY_ARG(contents) #contents
|
|
863
863
|
|
|
864
|
-
#ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
|
|
865
864
|
#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
|
|
866
865
|
#define G_PASTE(identifier1,identifier2) G_PASTE_ARGS (identifier1, identifier2)
|
|
866
|
+
|
|
867
|
+
#ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
|
|
867
868
|
#if G_CXX_STD_CHECK_VERSION (11)
|
|
868
869
|
#define G_STATIC_ASSERT(expr) static_assert (expr, "Expression evaluates to false")
|
|
869
870
|
#elif (G_C_STD_CHECK_VERSION (11) || \
|
|
@@ -877,7 +878,10 @@
|
|
|
877
878
|
#endif
|
|
878
879
|
#endif /* G_CXX_STD_CHECK_VERSION (11) */
|
|
879
880
|
#define G_STATIC_ASSERT_EXPR(expr) ((void) sizeof (char[(expr) ? 1 : -1]))
|
|
880
|
-
#
|
|
881
|
+
#else /* __GI_SCANNER__ */
|
|
882
|
+
#define G_STATIC_ASSERT(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
|
|
883
|
+
#define G_STATIC_ASSERT_EXPR(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
|
|
884
|
+
#endif /* __GI_SCANNER__ */
|
|
881
885
|
|
|
882
886
|
/* Provide a string identifying the current code position */
|
|
883
887
|
#if defined (__GNUC__) && (__GNUC__ < 3) && !defined (G_CXX_STD_VERSION)
|
|
@@ -301,15 +301,101 @@ struct _GSourceCallbackFuncs
|
|
|
301
301
|
*/
|
|
302
302
|
typedef void (*GSourceDummyMarshal) (void);
|
|
303
303
|
|
|
304
|
+
/**
|
|
305
|
+
* GSourceFuncsPrepareFunc:
|
|
306
|
+
* @source: The #GSource
|
|
307
|
+
* @timeout_: (out) (optional): the maximum timeout (in milliseconds) which should be passed to the poll call
|
|
308
|
+
*
|
|
309
|
+
* Checks the source for readiness.
|
|
310
|
+
*
|
|
311
|
+
* Called before all the file descriptors are polled. If the
|
|
312
|
+
* source can determine that it is ready here (without waiting for the
|
|
313
|
+
* results of the poll call) it should return %TRUE. It can also return
|
|
314
|
+
* a @timeout_ value which should be the maximum timeout (in milliseconds)
|
|
315
|
+
* which should be passed to the poll call. The actual timeout used will
|
|
316
|
+
* be `-1` if all sources returned `-1`, or it will be the minimum of all
|
|
317
|
+
* the @timeout_ values returned which were greater than or equal to `0`.
|
|
318
|
+
* If the prepare function returns a timeout and the source also has a
|
|
319
|
+
* ready time set, then the lower of the two will be used.
|
|
320
|
+
*
|
|
321
|
+
* Since 2.36 this may be `NULL`, in which case the effect is as if the
|
|
322
|
+
* function always returns `FALSE` with a timeout of `-1`.
|
|
323
|
+
*
|
|
324
|
+
* Returns: %TRUE if the source is ready, %FALSE otherwise
|
|
325
|
+
*
|
|
326
|
+
* Since: 2.82
|
|
327
|
+
*/
|
|
328
|
+
typedef gboolean (*GSourceFuncsPrepareFunc) (GSource *source,
|
|
329
|
+
gint *timeout_);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* GSourceFuncsCheckFunc:
|
|
333
|
+
* @source: The #GSource
|
|
334
|
+
*
|
|
335
|
+
* Checks if the source is ready to be dispatched.
|
|
336
|
+
*
|
|
337
|
+
* Called after all the file descriptors are polled. The source
|
|
338
|
+
* should return %TRUE if it is ready to be dispatched. Note that some
|
|
339
|
+
* time may have passed since the previous prepare function was called,
|
|
340
|
+
* so the source should be checked again here.
|
|
341
|
+
*
|
|
342
|
+
* Since 2.36 this may be `NULL`, in which case the effect is
|
|
343
|
+
* as if the function always returns `FALSE`.
|
|
344
|
+
*
|
|
345
|
+
* Returns: %TRUE if ready to be dispatched, %FALSE otherwise
|
|
346
|
+
*
|
|
347
|
+
* Since: 2.82
|
|
348
|
+
*/
|
|
349
|
+
typedef gboolean (*GSourceFuncsCheckFunc) (GSource *source);
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* GSourceFuncsDispatchFunc:
|
|
353
|
+
* @source: The #GSource
|
|
354
|
+
* @callback: (nullable): The #GSourceFunc to call
|
|
355
|
+
* @user_data: (nullable): data to pass to @callback
|
|
356
|
+
*
|
|
357
|
+
* Dispatches the source callback.
|
|
358
|
+
*
|
|
359
|
+
* Called to dispatch the event source, after it has returned
|
|
360
|
+
* `TRUE` in either its prepare or its check function, or if a ready time
|
|
361
|
+
* has been reached. The dispatch function receives a callback function and
|
|
362
|
+
* user data. The callback function may be `NULL` if the source was never
|
|
363
|
+
* connected to a callback using [method@GLib.Source.set_callback]. The dispatch
|
|
364
|
+
* function should call the callback function with @user_data and whatever
|
|
365
|
+
* additional parameters are needed for this type of event source. The
|
|
366
|
+
* return value of the dispatch function should be [const@GLib.SOURCE_REMOVE]
|
|
367
|
+
* if the source should be removed or [const@GLib.SOURCE_CONTINUE] to keep it.
|
|
368
|
+
*
|
|
369
|
+
* Returns: [const@GLib.SOURCE_REMOVE] if the source should be removed,
|
|
370
|
+
* [const@GLib.SOURCE_CONTINUE] otherwise.
|
|
371
|
+
*
|
|
372
|
+
* Since: 2.82
|
|
373
|
+
*/
|
|
374
|
+
typedef gboolean (*GSourceFuncsDispatchFunc) (GSource *source,
|
|
375
|
+
GSourceFunc callback,
|
|
376
|
+
gpointer user_data);
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* GSourceFuncsFinalizeFunc:
|
|
380
|
+
* @source: The #GSource
|
|
381
|
+
*
|
|
382
|
+
* Finalizes the source.
|
|
383
|
+
*
|
|
384
|
+
* Called when the source is finalized. At this point, the source
|
|
385
|
+
* will have been destroyed, had its callback cleared, and have been removed
|
|
386
|
+
* from its [type@GLib.MainContext], but it will still have its final reference
|
|
387
|
+
* count, so methods can be called on it from within this function.
|
|
388
|
+
*
|
|
389
|
+
* Since: 2.82
|
|
390
|
+
*/
|
|
391
|
+
typedef void (*GSourceFuncsFinalizeFunc) (GSource *source);
|
|
392
|
+
|
|
304
393
|
struct _GSourceFuncs
|
|
305
394
|
{
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
GSourceFunc callback,
|
|
311
|
-
gpointer user_data);
|
|
312
|
-
void (*finalize) (GSource *source); /* Can be NULL */
|
|
395
|
+
GSourceFuncsPrepareFunc prepare; /* Can be NULL */
|
|
396
|
+
GSourceFuncsCheckFunc check; /* Can be NULL */
|
|
397
|
+
GSourceFuncsDispatchFunc dispatch;
|
|
398
|
+
GSourceFuncsFinalizeFunc finalize; /* Can be NULL */
|
|
313
399
|
|
|
314
400
|
/*< private >*/
|
|
315
401
|
/* For use by g_source_set_closure */
|
|
@@ -35,13 +35,20 @@
|
|
|
35
35
|
|
|
36
36
|
G_BEGIN_DECLS
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
GLIB_DEPRECATED_IN_2_82_FOR(g_sort_array)
|
|
39
39
|
void g_qsort_with_data (gconstpointer pbase,
|
|
40
40
|
gint total_elems,
|
|
41
41
|
gsize size,
|
|
42
42
|
GCompareDataFunc compare_func,
|
|
43
43
|
gpointer user_data);
|
|
44
44
|
|
|
45
|
+
GLIB_AVAILABLE_IN_2_82
|
|
46
|
+
void g_sort_array (const void *array,
|
|
47
|
+
size_t n_elements,
|
|
48
|
+
size_t element_size,
|
|
49
|
+
GCompareDataFunc compare_func,
|
|
50
|
+
void *user_data);
|
|
51
|
+
|
|
45
52
|
G_END_DECLS
|
|
46
53
|
|
|
47
54
|
#endif /* __G_QSORT_H__ */
|
|
@@ -2278,7 +2278,7 @@ static void type_name##_class_intern_init (gpointer klass) \
|
|
|
2278
2278
|
#endif /* GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_80 */
|
|
2279
2279
|
|
|
2280
2280
|
/* Added for _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE */
|
|
2281
|
-
#define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name
|
|
2281
|
+
#define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name) \
|
|
2282
2282
|
\
|
|
2283
2283
|
static void type_name##_init (TypeName *self); \
|
|
2284
2284
|
static void type_name##_class_init (TypeName##Class *klass); \
|
|
@@ -2330,12 +2330,12 @@ type_name##_get_type_once (void) \
|
|
|
2330
2330
|
return g_define_type_id; \
|
|
2331
2331
|
} /* closes type_name##_get_type_once() */
|
|
2332
2332
|
|
|
2333
|
-
/* This was defined before we had
|
|
2334
|
-
* to keep it.
|
|
2333
|
+
/* This was defined before we had _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE in
|
|
2334
|
+
* gtype-private.h, it's simplest to keep it.
|
|
2335
2335
|
*/
|
|
2336
2336
|
#define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \
|
|
2337
|
-
_G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name
|
|
2338
|
-
_G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags)
|
|
2337
|
+
_G_DEFINE_TYPE_EXTENDED_BEGIN_PRE (TypeName, type_name) \
|
|
2338
|
+
_G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER (TypeName, type_name, TYPE_PARENT, flags)
|
|
2339
2339
|
|
|
2340
2340
|
/* Intentionally using (GTypeFlags) 0 instead of G_TYPE_FLAG_NONE here,
|
|
2341
2341
|
* to avoid deprecation warnings with older GLIB_VERSION_MAX_ALLOWED */
|