@img/sharp-libvips-dev 1.0.0 → 1.0.2
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/aom/aom_encoder.h +3 -3
- package/include/aom/aomcx.h +17 -8
- package/include/expat.h +21 -10
- package/include/expat_config.h +11 -5
- package/include/ffi.h +12 -25
- package/include/fontconfig/fontconfig.h +5 -3
- package/include/freetype2/freetype/config/ftoption.h +1 -1
- package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -7
- package/include/gio-unix-2.0/gio/gunixinputstream.h +0 -5
- package/include/gio-unix-2.0/gio/gunixoutputstream.h +0 -5
- package/include/glib-2.0/gio/gappinfo.h +0 -7
- package/include/glib-2.0/gio/gapplication.h +6 -0
- package/include/glib-2.0/gio/gapplicationcommandline.h +12 -1
- package/include/glib-2.0/gio/gasyncinitable.h +0 -7
- package/include/glib-2.0/gio/gasyncresult.h +0 -6
- package/include/glib-2.0/gio/gbufferedinputstream.h +0 -5
- package/include/glib-2.0/gio/gbufferedoutputstream.h +0 -5
- package/include/glib-2.0/gio/gbytesicon.h +0 -5
- package/include/glib-2.0/gio/gcancellable.h +0 -5
- package/include/glib-2.0/gio/gconverter.h +0 -7
- package/include/glib-2.0/gio/gconverterinputstream.h +0 -6
- package/include/glib-2.0/gio/gconverteroutputstream.h +0 -6
- package/include/glib-2.0/gio/gdatagrambased.h +0 -7
- package/include/glib-2.0/gio/gdatainputstream.h +0 -6
- package/include/glib-2.0/gio/gdataoutputstream.h +0 -6
- package/include/glib-2.0/gio/gdbusinterface.h +0 -8
- package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +0 -8
- package/include/glib-2.0/gio/gdbusmessage.h +2 -1
- package/include/glib-2.0/gio/gdbusobjectmanagerclient.h +0 -8
- package/include/glib-2.0/gio/gdbusobjectmanagerserver.h +0 -8
- package/include/glib-2.0/gio/gdbusobjectproxy.h +0 -8
- package/include/glib-2.0/gio/gdbusobjectskeleton.h +0 -8
- package/include/glib-2.0/gio/gdbusproxy.h +0 -8
- package/include/glib-2.0/gio/gdebugcontroller.h +0 -8
- package/include/glib-2.0/gio/gdebugcontrollerdbus.h +0 -7
- package/include/glib-2.0/gio/gdtlsserverconnection.h +0 -8
- package/include/glib-2.0/gio/gemblem.h +0 -5
- package/include/glib-2.0/gio/gemblemedicon.h +0 -5
- package/include/glib-2.0/gio/gfile.h +0 -10
- package/include/glib-2.0/gio/gfileenumerator.h +0 -5
- package/include/glib-2.0/gio/gfileicon.h +0 -5
- package/include/glib-2.0/gio/gfileinfo.h +0 -5
- package/include/glib-2.0/gio/gfileinputstream.h +0 -8
- package/include/glib-2.0/gio/gfileiostream.h +0 -8
- package/include/glib-2.0/gio/gfilemonitor.h +0 -5
- package/include/glib-2.0/gio/gfilenamecompleter.h +0 -5
- package/include/glib-2.0/gio/gfileoutputstream.h +0 -8
- package/include/glib-2.0/gio/gfilterinputstream.h +0 -5
- package/include/glib-2.0/gio/gfilteroutputstream.h +0 -5
- package/include/glib-2.0/gio/gicon.h +0 -5
- package/include/glib-2.0/gio/ginitable.h +0 -7
- package/include/glib-2.0/gio/ginputstream.h +0 -5
- package/include/glib-2.0/gio/gio-autocleanups.h +4 -0
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +6 -1
- package/include/glib-2.0/gio/giomodule.h +0 -5
- package/include/glib-2.0/gio/giostream.h +0 -5
- package/include/glib-2.0/gio/giotypes.h +5 -108
- package/include/glib-2.0/gio/gloadableicon.h +0 -6
- package/include/glib-2.0/gio/gmemoryinputstream.h +0 -5
- package/include/glib-2.0/gio/gmemoryoutputstream.h +0 -5
- package/include/glib-2.0/gio/gmountoperation.h +0 -6
- package/include/glib-2.0/gio/gnetworking.h +4 -0
- package/include/glib-2.0/gio/goutputstream.h +0 -9
- package/include/glib-2.0/gio/gpollableinputstream.h +0 -7
- package/include/glib-2.0/gio/gpollableoutputstream.h +0 -7
- package/include/glib-2.0/gio/gproxy.h +0 -7
- package/include/glib-2.0/gio/gproxyaddressenumerator.h +0 -8
- package/include/glib-2.0/gio/gseekable.h +0 -5
- package/include/glib-2.0/gio/gsettingsbackend.h +0 -5
- package/include/glib-2.0/gio/gsimpleactiongroup.h +0 -7
- package/include/glib-2.0/gio/gsimpleasyncresult.h +0 -5
- package/include/glib-2.0/gio/gsimpleproxyresolver.h +0 -5
- package/include/glib-2.0/gio/gsocket.h +13 -0
- package/include/glib-2.0/gio/gsocketaddressenumerator.h +0 -6
- package/include/glib-2.0/gio/gsocketconnectable.h +0 -5
- package/include/glib-2.0/gio/gtask.h +12 -0
- package/include/glib-2.0/gio/gthemedicon.h +0 -5
- package/include/glib-2.0/gio/gtlsserverconnection.h +0 -8
- package/include/glib-2.0/gio/gunixcredentialsmessage.h +0 -8
- package/include/glib-2.0/gio/gvfs.h +0 -5
- package/include/glib-2.0/gio/gvolume.h +2 -2
- package/include/glib-2.0/gio/gvolumemonitor.h +0 -5
- package/include/glib-2.0/girepository/gi-visibility.h +986 -0
- package/include/glib-2.0/girepository/giarginfo.h +100 -0
- package/include/glib-2.0/girepository/gibaseinfo.h +129 -0
- package/include/glib-2.0/girepository/gicallableinfo.h +119 -0
- package/include/glib-2.0/girepository/gicallbackinfo.h +60 -0
- package/include/glib-2.0/girepository/giconstantinfo.h +72 -0
- package/include/glib-2.0/girepository/gienuminfo.h +82 -0
- package/include/glib-2.0/girepository/gifieldinfo.h +84 -0
- package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
- package/include/glib-2.0/girepository/gifunctioninfo.h +117 -0
- package/include/glib-2.0/girepository/giinterfaceinfo.h +120 -0
- package/include/glib-2.0/girepository/giobjectinfo.h +230 -0
- package/include/glib-2.0/girepository/gipropertyinfo.h +77 -0
- package/include/glib-2.0/girepository/giregisteredtypeinfo.h +75 -0
- package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
- package/include/glib-2.0/girepository/girepository.h +247 -0
- package/include/glib-2.0/girepository/girffi.h +129 -0
- package/include/glib-2.0/girepository/gisignalinfo.h +72 -0
- package/include/glib-2.0/girepository/gistructinfo.h +102 -0
- package/include/glib-2.0/girepository/gitypeinfo.h +144 -0
- package/include/glib-2.0/girepository/gitypelib.h +61 -0
- package/include/glib-2.0/girepository/gitypes.h +421 -0
- package/include/glib-2.0/girepository/giunioninfo.h +105 -0
- package/include/glib-2.0/girepository/giunresolvedinfo.h +60 -0
- package/include/glib-2.0/girepository/givalueinfo.h +65 -0
- package/include/glib-2.0/girepository/givfuncinfo.h +88 -0
- package/include/glib-2.0/glib/deprecated/gcompletion.h +1 -1
- package/include/glib-2.0/glib/deprecated/grel.h +0 -23
- package/include/glib-2.0/glib/deprecated/gthread.h +10 -6
- package/include/glib-2.0/glib/gatomic.h +20 -20
- package/include/glib-2.0/glib/gbitlock.h +31 -0
- package/include/glib-2.0/glib/gbookmarkfile.h +39 -1
- package/include/glib-2.0/glib/gchecksum.h +0 -10
- package/include/glib-2.0/glib/gdate.h +0 -9
- package/include/glib-2.0/glib/gdatetime.h +33 -1
- package/include/glib-2.0/glib/gdir.h +5 -0
- package/include/glib-2.0/glib/ghmac.h +0 -9
- package/include/glib-2.0/glib/glib-autocleanups.h +4 -0
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/gmacros.h +1 -0
- package/include/glib-2.0/glib/gmessages.h +11 -0
- package/include/glib-2.0/glib/gpathbuf.h +0 -7
- package/include/glib-2.0/glib/gslice.h +2 -0
- package/include/glib-2.0/glib/gstdio.h +1 -1
- package/include/glib-2.0/glib/gstrfuncs.h +24 -18
- package/include/glib-2.0/glib/gstrvbuilder.h +4 -8
- package/include/glib-2.0/glib/gtestutils.h +5 -0
- package/include/glib-2.0/glib/gthread.h +216 -3
- package/include/glib-2.0/glib/gunicode.h +12 -2
- package/include/glib-2.0/glib/gvarianttype.h +1 -10
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib/gwin32.h +4 -4
- package/include/glib-2.0/glib-unix.h +214 -0
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gobject/gbinding.h +0 -8
- package/include/glib-2.0/gobject/gbindinggroup.h +0 -8
- package/include/glib-2.0/gobject/gclosure.h +1 -9
- package/include/glib-2.0/gobject/genums.h +6 -6
- package/include/glib-2.0/gobject/glib-types.h +44 -0
- package/include/glib-2.0/gobject/gobject-autocleanups.h +4 -0
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject.h +1 -16
- package/include/glib-2.0/gobject/gparam.h +3 -12
- package/include/glib-2.0/gobject/gsignal.h +16 -6
- package/include/glib-2.0/gobject/gsignalgroup.h +0 -8
- package/include/glib-2.0/gobject/gtype.h +53 -20
- package/include/glib-2.0/gobject/gtypemodule.h +0 -7
- package/include/glib-2.0/gobject/gtypeplugin.h +0 -6
- package/include/glib-2.0/gobject/gvaluearray.h +0 -7
- package/include/glib-2.0/gobject/gvaluecollector.h +1 -11
- package/include/glib-2.0/gobject/gvaluetypes.h +2 -0
- package/include/hwy/aligned_allocator.h +171 -6
- package/include/hwy/base.h +1765 -543
- package/include/hwy/cache_control.h +24 -6
- package/include/hwy/detect_compiler_arch.h +23 -2
- package/include/hwy/detect_targets.h +56 -13
- package/include/hwy/foreach_target.h +24 -0
- package/include/hwy/highway.h +20 -3
- package/include/hwy/ops/arm_neon-inl.h +1086 -667
- package/include/hwy/ops/arm_sve-inl.h +1091 -235
- package/include/hwy/ops/emu128-inl.h +271 -196
- package/include/hwy/ops/generic_ops-inl.h +2270 -399
- package/include/hwy/ops/ppc_vsx-inl.h +1786 -563
- package/include/hwy/ops/rvv-inl.h +1043 -311
- package/include/hwy/ops/scalar-inl.h +189 -159
- package/include/hwy/ops/set_macros-inl.h +66 -6
- package/include/hwy/ops/shared-inl.h +175 -56
- package/include/hwy/ops/wasm_128-inl.h +153 -136
- package/include/hwy/ops/x86_128-inl.h +1647 -646
- package/include/hwy/ops/x86_256-inl.h +1003 -370
- package/include/hwy/ops/x86_512-inl.h +948 -353
- package/include/hwy/per_target.h +4 -0
- package/include/hwy/profiler.h +648 -0
- package/include/hwy/robust_statistics.h +2 -2
- package/include/hwy/targets.h +18 -11
- package/include/hwy/timer.h +11 -0
- package/include/lcms2.h +46 -7
- package/include/lcms2_plugin.h +4 -4
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +32 -29
- package/include/libpng16/pngconf.h +2 -2
- package/include/libpng16/pnglibconf.h +7 -2
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/libxml2/libxml/HTMLparser.h +23 -0
- package/include/libxml2/libxml/SAX.h +0 -2
- package/include/libxml2/libxml/SAX2.h +0 -2
- package/include/libxml2/libxml/c14n.h +0 -2
- package/include/libxml2/libxml/dict.h +1 -0
- package/include/libxml2/libxml/encoding.h +16 -14
- package/include/libxml2/libxml/entities.h +4 -0
- package/include/libxml2/libxml/globals.h +15 -503
- package/include/libxml2/libxml/hash.h +57 -61
- package/include/libxml2/libxml/nanoftp.h +2 -2
- package/include/libxml2/libxml/parser.h +137 -18
- package/include/libxml2/libxml/parserInternals.h +1 -0
- package/include/libxml2/libxml/relaxng.h +2 -1
- package/include/libxml2/libxml/schemasInternals.h +1 -0
- package/include/libxml2/libxml/schematron.h +1 -0
- package/include/libxml2/libxml/threads.h +4 -11
- package/include/libxml2/libxml/tree.h +68 -20
- package/include/libxml2/libxml/uri.h +2 -1
- package/include/libxml2/libxml/valid.h +2 -0
- package/include/libxml2/libxml/xmlIO.h +65 -13
- package/include/libxml2/libxml/xmlerror.h +37 -8
- package/include/libxml2/libxml/xmlmemory.h +37 -40
- package/include/libxml2/libxml/xmlreader.h +6 -0
- package/include/libxml2/libxml/xmlregexp.h +2 -9
- package/include/libxml2/libxml/xmlsave.h +9 -0
- package/include/libxml2/libxml/xmlschemas.h +3 -0
- package/include/libxml2/libxml/xmlversion.h +28 -43
- package/include/libxml2/libxml/xpath.h +1 -1
- package/include/libxml2/libxml/xpathInternals.h +2 -1
- package/include/libxml2/libxml/xpointer.h +5 -4
- package/include/pango-1.0/pango/pango-features.h +3 -3
- package/include/pango-1.0/pango/pango-fontmap.h +7 -0
- package/include/pixman-1/pixman-version.h +3 -3
- package/include/pixman-1/pixman.h +9 -2
- package/include/png.h +32 -29
- package/include/pngconf.h +2 -2
- package/include/pnglibconf.h +7 -2
- package/include/vips/connection.h +9 -3
- package/include/vips/util.h +0 -9
- package/include/vips/version.h +4 -4
- package/include/zconf.h +3 -0
- package/include/zlib.h +3 -3
- package/package.json +1 -1
- package/versions.json +15 -15
|
@@ -386,6 +386,15 @@
|
|
|
386
386
|
* Since: 2.78
|
|
387
387
|
*/
|
|
388
388
|
#define GLIB_VERSION_2_78 (G_ENCODE_VERSION (2, 78))
|
|
389
|
+
/**
|
|
390
|
+
* GLIB_VERSION_2_80:
|
|
391
|
+
*
|
|
392
|
+
* A macro that evaluates to the 2.80 version of GLib, in a format
|
|
393
|
+
* that can be used by the C pre-processor.
|
|
394
|
+
*
|
|
395
|
+
* Since: 2.80
|
|
396
|
+
*/
|
|
397
|
+
#define GLIB_VERSION_2_80 (G_ENCODE_VERSION (2, 80))
|
|
389
398
|
|
|
390
399
|
/**
|
|
391
400
|
* GLIB_VERSION_CUR_STABLE:
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
#include <glib/gtypes.h>
|
|
35
35
|
|
|
36
|
-
#
|
|
36
|
+
#if defined(G_PLATFORM_WIN32) || defined(__GI_SCANNER__)
|
|
37
37
|
|
|
38
38
|
G_BEGIN_DECLS
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@ G_BEGIN_DECLS
|
|
|
41
41
|
#define MAXPATHLEN 1024
|
|
42
42
|
#endif
|
|
43
43
|
|
|
44
|
-
#
|
|
44
|
+
#if defined(G_OS_WIN32) || defined(__GI_SCANNER__)
|
|
45
45
|
|
|
46
46
|
/*
|
|
47
47
|
* To get prototypes for the following POSIXish functions, you have to
|
|
@@ -68,7 +68,7 @@ G_BEGIN_DECLS
|
|
|
68
68
|
GLIB_AVAILABLE_IN_ALL
|
|
69
69
|
gint g_win32_ftruncate (gint f,
|
|
70
70
|
guint size);
|
|
71
|
-
#endif /* G_OS_WIN32 */
|
|
71
|
+
#endif /* G_OS_WIN32 || __GI_SCANNER__ */
|
|
72
72
|
|
|
73
73
|
/* The MS setlocale uses locale names of the form "English_United
|
|
74
74
|
* States.1252" etc. We want the Unixish standard form "en", "zh_TW"
|
|
@@ -137,6 +137,6 @@ gboolean g_win32_check_windows_version (const gint major,
|
|
|
137
137
|
|
|
138
138
|
G_END_DECLS
|
|
139
139
|
|
|
140
|
-
#endif /* G_PLATFORM_WIN32 */
|
|
140
|
+
#endif /* G_PLATFORM_WIN32 || __GI_SCANNER__ */
|
|
141
141
|
|
|
142
142
|
#endif /* __G_WIN32_H__ */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* glib-unix.h - Unix specific integration
|
|
2
2
|
* Copyright (C) 2011 Red Hat, Inc.
|
|
3
|
+
* Copyright 2023 Collabora Ltd.
|
|
3
4
|
*
|
|
4
5
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
5
6
|
*
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
#include <fcntl.h>
|
|
34
35
|
|
|
35
36
|
#include <glib.h>
|
|
37
|
+
#include <glib/gstdio.h>
|
|
36
38
|
|
|
37
39
|
#ifndef G_OS_UNIX
|
|
38
40
|
#error "This header may only be used on UNIX"
|
|
@@ -120,6 +122,218 @@ GLIB_AVAILABLE_IN_2_64
|
|
|
120
122
|
struct passwd *g_unix_get_passwd_entry (const gchar *user_name,
|
|
121
123
|
GError **error);
|
|
122
124
|
|
|
125
|
+
/**
|
|
126
|
+
* GUnixPipe:
|
|
127
|
+
* @fds: A pair of file descriptors, each negative if closed or not yet opened.
|
|
128
|
+
* The file descriptor with index %G_UNIX_PIPE_END_READ is readable.
|
|
129
|
+
* The file descriptor with index %G_UNIX_PIPE_END_WRITE is writable.
|
|
130
|
+
*
|
|
131
|
+
* A Unix pipe. The advantage of this type over `int[2]` is that it can
|
|
132
|
+
* be closed automatically when it goes out of scope, using `g_auto(GUnixPipe)`,
|
|
133
|
+
* on compilers that support that feature.
|
|
134
|
+
*
|
|
135
|
+
* Since: 2.80
|
|
136
|
+
*/
|
|
137
|
+
GLIB_AVAILABLE_TYPE_IN_2_80
|
|
138
|
+
typedef struct {
|
|
139
|
+
int fds[2];
|
|
140
|
+
} GUnixPipe;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* GUnixPipeEnd:
|
|
144
|
+
* @G_UNIX_PIPE_END_READ: The readable file descriptor 0
|
|
145
|
+
* @G_UNIX_PIPE_END_WRITE: The writable file descriptor 1
|
|
146
|
+
*
|
|
147
|
+
* Mnemonic constants for the ends of a Unix pipe.
|
|
148
|
+
*
|
|
149
|
+
* Since: 2.80
|
|
150
|
+
*/
|
|
151
|
+
GLIB_AVAILABLE_TYPE_IN_2_80
|
|
152
|
+
typedef enum
|
|
153
|
+
{
|
|
154
|
+
G_UNIX_PIPE_END_READ = 0,
|
|
155
|
+
G_UNIX_PIPE_END_WRITE = 1
|
|
156
|
+
} GUnixPipeEnd;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* G_UNIX_PIPE_INIT:
|
|
160
|
+
*
|
|
161
|
+
* Initializer for a #GUnixPipe that has not yet been opened.
|
|
162
|
+
* Both of its file descriptors are initialized to `-1` (invalid),
|
|
163
|
+
* the same as if they had been closed.
|
|
164
|
+
*
|
|
165
|
+
* Since: 2.80
|
|
166
|
+
*/
|
|
167
|
+
#define G_UNIX_PIPE_INIT { { -1, -1 } } GLIB_AVAILABLE_MACRO_IN_2_80
|
|
168
|
+
|
|
169
|
+
/* Suppress "Not available before" warnings when declaring the
|
|
170
|
+
* implementations */
|
|
171
|
+
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* g_unix_pipe_open:
|
|
175
|
+
* @self: A pair of file descriptors
|
|
176
|
+
* @flags: Flags to pass to g_unix_open_pipe(), typically `O_CLOEXEC`
|
|
177
|
+
* @error: Used to report an error on failure
|
|
178
|
+
*
|
|
179
|
+
* Open a pipe. This is the same as g_unix_open_pipe(), but uses the
|
|
180
|
+
* #GUnixPipe data structure.
|
|
181
|
+
*
|
|
182
|
+
* Returns: %TRUE on success
|
|
183
|
+
*
|
|
184
|
+
* Since: 2.80
|
|
185
|
+
*/
|
|
186
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
187
|
+
static inline gboolean
|
|
188
|
+
g_unix_pipe_open (GUnixPipe *self,
|
|
189
|
+
int flags,
|
|
190
|
+
GError **error)
|
|
191
|
+
{
|
|
192
|
+
return g_unix_open_pipe (self->fds, flags, error);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* g_unix_pipe_get:
|
|
197
|
+
* @self: A pair of file descriptors
|
|
198
|
+
* @end: One of the ends of the pipe
|
|
199
|
+
*
|
|
200
|
+
* Return one of the ends of the pipe. It remains owned by @self.
|
|
201
|
+
*
|
|
202
|
+
* This function is async-signal safe (see [`signal(7)`](man:signal(7)) and
|
|
203
|
+
* [`signal-safety(7)`](man:signal-safety(7))), making it safe to call from a
|
|
204
|
+
* signal handler or a #GSpawnChildSetupFunc.
|
|
205
|
+
*
|
|
206
|
+
* This function preserves the value of `errno`.
|
|
207
|
+
*
|
|
208
|
+
* Returns: a non-negative file descriptor owned by @self, which must not
|
|
209
|
+
* be closed by the caller, or a negative number if the corresponding
|
|
210
|
+
* end of the pipe was already closed or stolen
|
|
211
|
+
*
|
|
212
|
+
* Since: 2.80
|
|
213
|
+
*/
|
|
214
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
215
|
+
static inline int
|
|
216
|
+
g_unix_pipe_get (GUnixPipe *self,
|
|
217
|
+
GUnixPipeEnd end)
|
|
218
|
+
{
|
|
219
|
+
return self->fds[end];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* g_unix_pipe_steal:
|
|
224
|
+
* @self: A pair of file descriptors
|
|
225
|
+
* @end: One of the ends of the pipe
|
|
226
|
+
*
|
|
227
|
+
* Return one of the ends of the pipe. It becomes owned by the caller,
|
|
228
|
+
* and the file descriptor in the data structure is set to `-1`,
|
|
229
|
+
* similar to g_steal_fd().
|
|
230
|
+
*
|
|
231
|
+
* This function is async-signal safe (see [`signal(7)`](man:signal(7)) and
|
|
232
|
+
* [`signal-safety(7)`](man:signal-safety(7))), making it safe to call from a
|
|
233
|
+
* signal handler or a #GSpawnChildSetupFunc.
|
|
234
|
+
*
|
|
235
|
+
* This function preserves the value of `errno`.
|
|
236
|
+
*
|
|
237
|
+
* Returns: a non-negative file descriptor, which becomes owned by the
|
|
238
|
+
* caller and must be closed by the caller if required, or a negative
|
|
239
|
+
* number if the corresponding end of the pipe was already closed or stolen
|
|
240
|
+
*
|
|
241
|
+
* Since: 2.80
|
|
242
|
+
*/
|
|
243
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
244
|
+
static inline int
|
|
245
|
+
g_unix_pipe_steal (GUnixPipe *self,
|
|
246
|
+
GUnixPipeEnd end)
|
|
247
|
+
{
|
|
248
|
+
return g_steal_fd (&self->fds[end]);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* g_unix_pipe_close:
|
|
253
|
+
* @self: A pair of file descriptors
|
|
254
|
+
* @end: One of the ends of the pipe
|
|
255
|
+
* @error: Optionally used to report an error on failure
|
|
256
|
+
*
|
|
257
|
+
* Close one of the ends of the pipe and set the relevant member of @fds
|
|
258
|
+
* to `-1` before returning, equivalent to g_clear_fd().
|
|
259
|
+
*
|
|
260
|
+
* Like g_close(), if closing the file descriptor fails, the error is
|
|
261
|
+
* stored in both %errno and @error. If this function succeeds,
|
|
262
|
+
* %errno is undefined.
|
|
263
|
+
*
|
|
264
|
+
* This function is async-signal safe if @error is %NULL and the relevant
|
|
265
|
+
* member of @fds is either negative or a valid open file descriptor.
|
|
266
|
+
* This makes it safe to call from a signal handler or a #GSpawnChildSetupFunc
|
|
267
|
+
* under those conditions.
|
|
268
|
+
* See [`signal(7)`](man:signal(7)) and
|
|
269
|
+
* [`signal-safety(7)`](man:signal-safety(7)) for more details.
|
|
270
|
+
*
|
|
271
|
+
* To close both file descriptors and ignore any errors, use
|
|
272
|
+
* g_unix_pipe_clear() instead.
|
|
273
|
+
*
|
|
274
|
+
* Returns: %TRUE on success
|
|
275
|
+
*
|
|
276
|
+
* Since: 2.80
|
|
277
|
+
*/
|
|
278
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
279
|
+
static inline gboolean
|
|
280
|
+
g_unix_pipe_close (GUnixPipe *self,
|
|
281
|
+
GUnixPipeEnd end,
|
|
282
|
+
GError **error)
|
|
283
|
+
{
|
|
284
|
+
return g_clear_fd (&self->fds[end], error);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* g_unix_pipe_clear:
|
|
289
|
+
* @self: a #GUnixPipe
|
|
290
|
+
*
|
|
291
|
+
* Close both ends of the pipe, unless they have already been closed or
|
|
292
|
+
* stolen. Any errors are ignored: use g_unix_pipe_close() or g_clear_fd()
|
|
293
|
+
* if error-handling is required.
|
|
294
|
+
*
|
|
295
|
+
* This function is async-signal safe if @error is %NULL and each member
|
|
296
|
+
* of @fds are either negative or a valid open file descriptor.
|
|
297
|
+
* As a result, it is safe to call this function or use `g_auto(GUnixPipe)`
|
|
298
|
+
* (on compilers that support it) in a signal handler or a
|
|
299
|
+
* #GSpawnChildSetupFunc, as long as those conditions are ensured to be true.
|
|
300
|
+
* See [`signal(7)`](man:signal(7)) and
|
|
301
|
+
* [`signal-safety(7)`](man:signal-safety(7)) for more details.
|
|
302
|
+
*
|
|
303
|
+
* This function preserves the value of `errno`.
|
|
304
|
+
*
|
|
305
|
+
* Since: 2.80
|
|
306
|
+
*/
|
|
307
|
+
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
308
|
+
static inline void
|
|
309
|
+
g_unix_pipe_clear (GUnixPipe *self)
|
|
310
|
+
{
|
|
311
|
+
/* Don't overwrite thread-local errno if closing the fd fails */
|
|
312
|
+
int errsv = errno;
|
|
313
|
+
|
|
314
|
+
if (!g_unix_pipe_close (self, G_UNIX_PIPE_END_READ, NULL))
|
|
315
|
+
{
|
|
316
|
+
/* ignore */
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (!g_unix_pipe_close (self, G_UNIX_PIPE_END_WRITE, NULL))
|
|
320
|
+
{
|
|
321
|
+
/* ignore */
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
errno = errsv;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (GUnixPipe, g_unix_pipe_clear)
|
|
328
|
+
|
|
329
|
+
GLIB_AVAILABLE_IN_2_80
|
|
330
|
+
int g_closefrom (int lowfd);
|
|
331
|
+
|
|
332
|
+
GLIB_AVAILABLE_IN_2_80
|
|
333
|
+
int g_fdwalk_set_cloexec (int lowfd);
|
|
334
|
+
|
|
335
|
+
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
336
|
+
|
|
123
337
|
G_END_DECLS
|
|
124
338
|
|
|
125
339
|
#endif /* __G_UNIX_H__ */
|
|
@@ -950,3 +950,37 @@
|
|
|
950
950
|
#define GMODULE_AVAILABLE_ENUMERATOR_IN_2_78
|
|
951
951
|
#define GMODULE_AVAILABLE_TYPE_IN_2_78
|
|
952
952
|
#endif
|
|
953
|
+
|
|
954
|
+
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_80
|
|
955
|
+
#define GMODULE_DEPRECATED_IN_2_80 GMODULE_DEPRECATED
|
|
956
|
+
#define GMODULE_DEPRECATED_IN_2_80_FOR(f) GMODULE_DEPRECATED_FOR (f)
|
|
957
|
+
#define GMODULE_DEPRECATED_MACRO_IN_2_80 GLIB_DEPRECATED_MACRO
|
|
958
|
+
#define GMODULE_DEPRECATED_MACRO_IN_2_80_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
|
|
959
|
+
#define GMODULE_DEPRECATED_ENUMERATOR_IN_2_80 GLIB_DEPRECATED_ENUMERATOR
|
|
960
|
+
#define GMODULE_DEPRECATED_ENUMERATOR_IN_2_80_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
|
|
961
|
+
#define GMODULE_DEPRECATED_TYPE_IN_2_80 GLIB_DEPRECATED_TYPE
|
|
962
|
+
#define GMODULE_DEPRECATED_TYPE_IN_2_80_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
|
|
963
|
+
#else
|
|
964
|
+
#define GMODULE_DEPRECATED_IN_2_80 _GMODULE_EXTERN
|
|
965
|
+
#define GMODULE_DEPRECATED_IN_2_80_FOR(f) _GMODULE_EXTERN
|
|
966
|
+
#define GMODULE_DEPRECATED_MACRO_IN_2_80
|
|
967
|
+
#define GMODULE_DEPRECATED_MACRO_IN_2_80_FOR(f)
|
|
968
|
+
#define GMODULE_DEPRECATED_ENUMERATOR_IN_2_80
|
|
969
|
+
#define GMODULE_DEPRECATED_ENUMERATOR_IN_2_80_FOR(f)
|
|
970
|
+
#define GMODULE_DEPRECATED_TYPE_IN_2_80
|
|
971
|
+
#define GMODULE_DEPRECATED_TYPE_IN_2_80_FOR(f)
|
|
972
|
+
#endif
|
|
973
|
+
|
|
974
|
+
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_80
|
|
975
|
+
#define GMODULE_AVAILABLE_IN_2_80 GMODULE_UNAVAILABLE (2, 80)
|
|
976
|
+
#define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_80 GLIB_UNAVAILABLE_STATIC_INLINE (2, 80)
|
|
977
|
+
#define GMODULE_AVAILABLE_MACRO_IN_2_80 GLIB_UNAVAILABLE_MACRO (2, 80)
|
|
978
|
+
#define GMODULE_AVAILABLE_ENUMERATOR_IN_2_80 GLIB_UNAVAILABLE_ENUMERATOR (2, 80)
|
|
979
|
+
#define GMODULE_AVAILABLE_TYPE_IN_2_80 GLIB_UNAVAILABLE_TYPE (2, 80)
|
|
980
|
+
#else
|
|
981
|
+
#define GMODULE_AVAILABLE_IN_2_80 _GMODULE_EXTERN
|
|
982
|
+
#define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
983
|
+
#define GMODULE_AVAILABLE_MACRO_IN_2_80
|
|
984
|
+
#define GMODULE_AVAILABLE_ENUMERATOR_IN_2_80
|
|
985
|
+
#define GMODULE_AVAILABLE_TYPE_IN_2_80
|
|
986
|
+
#endif
|
|
@@ -38,14 +38,6 @@ G_BEGIN_DECLS
|
|
|
38
38
|
#define G_BINDING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_BINDING, GBinding))
|
|
39
39
|
#define G_IS_BINDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING))
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* GBinding:
|
|
43
|
-
*
|
|
44
|
-
* GBinding is an opaque structure whose members
|
|
45
|
-
* cannot be accessed directly.
|
|
46
|
-
*
|
|
47
|
-
* Since: 2.26
|
|
48
|
-
*/
|
|
49
41
|
typedef struct _GBinding GBinding;
|
|
50
42
|
|
|
51
43
|
/**
|
|
@@ -36,14 +36,6 @@ G_BEGIN_DECLS
|
|
|
36
36
|
#define G_IS_BINDING_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_BINDING_GROUP))
|
|
37
37
|
#define G_TYPE_BINDING_GROUP (g_binding_group_get_type())
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* GBindingGroup:
|
|
41
|
-
*
|
|
42
|
-
* GBindingGroup is an opaque structure whose members
|
|
43
|
-
* cannot be accessed directly.
|
|
44
|
-
*
|
|
45
|
-
* Since: 2.72
|
|
46
|
-
*/
|
|
47
39
|
typedef struct _GBindingGroup GBindingGroup;
|
|
48
40
|
|
|
49
41
|
GOBJECT_AVAILABLE_IN_2_72
|
|
@@ -169,15 +169,7 @@ struct _GClosureNotifyData
|
|
|
169
169
|
gpointer data;
|
|
170
170
|
GClosureNotify notify;
|
|
171
171
|
};
|
|
172
|
-
|
|
173
|
-
* GClosure:
|
|
174
|
-
* @in_marshal: Indicates whether the closure is currently being invoked with
|
|
175
|
-
* g_closure_invoke()
|
|
176
|
-
* @is_invalid: Indicates whether the closure has been invalidated by
|
|
177
|
-
* g_closure_invalidate()
|
|
178
|
-
*
|
|
179
|
-
* A #GClosure represents a callback supplied by the programmer.
|
|
180
|
-
*/
|
|
172
|
+
|
|
181
173
|
struct _GClosure
|
|
182
174
|
{
|
|
183
175
|
/*< private >*/
|
|
@@ -320,14 +320,14 @@ void g_flags_complete_type_info (GType g_flags_type,
|
|
|
320
320
|
#define G_DEFINE_ENUM_TYPE(TypeName, type_name, ...) \
|
|
321
321
|
GType \
|
|
322
322
|
type_name ## _get_type (void) { \
|
|
323
|
-
static
|
|
324
|
-
if (
|
|
323
|
+
static _g_type_once_init_type g_define_type__static = 0; \
|
|
324
|
+
if (_g_type_once_init_enter (&g_define_type__static)) { \
|
|
325
325
|
static const GEnumValue enum_values[] = { \
|
|
326
326
|
__VA_ARGS__ , \
|
|
327
327
|
{ 0, NULL, NULL }, \
|
|
328
328
|
}; \
|
|
329
329
|
GType g_define_type = g_enum_register_static (g_intern_static_string (#TypeName), enum_values); \
|
|
330
|
-
|
|
330
|
+
_g_type_once_init_leave (&g_define_type__static, g_define_type); \
|
|
331
331
|
} \
|
|
332
332
|
return g_define_type__static; \
|
|
333
333
|
} \
|
|
@@ -363,14 +363,14 @@ type_name ## _get_type (void) { \
|
|
|
363
363
|
#define G_DEFINE_FLAGS_TYPE(TypeName, type_name, ...) \
|
|
364
364
|
GType \
|
|
365
365
|
type_name ## _get_type (void) { \
|
|
366
|
-
static
|
|
367
|
-
if (
|
|
366
|
+
static _g_type_once_init_type g_define_type__static = 0; \
|
|
367
|
+
if (_g_type_once_init_enter (&g_define_type__static)) { \
|
|
368
368
|
static const GFlagsValue flags_values[] = { \
|
|
369
369
|
__VA_ARGS__ , \
|
|
370
370
|
{ 0, NULL, NULL }, \
|
|
371
371
|
}; \
|
|
372
372
|
GType g_define_type = g_flags_register_static (g_intern_static_string (#TypeName), flags_values); \
|
|
373
|
-
|
|
373
|
+
_g_type_once_init_leave (&g_define_type__static, g_define_type); \
|
|
374
374
|
} \
|
|
375
375
|
return g_define_type__static; \
|
|
376
376
|
} \
|
|
@@ -327,6 +327,42 @@ typedef gsize GType;
|
|
|
327
327
|
*/
|
|
328
328
|
#define G_TYPE_BOOKMARK_FILE (g_bookmark_file_get_type ())
|
|
329
329
|
|
|
330
|
+
/**
|
|
331
|
+
* G_TYPE_HMAC:
|
|
332
|
+
*
|
|
333
|
+
* The #GType for a boxed type holding a #GHmac.
|
|
334
|
+
*
|
|
335
|
+
* Since: 2.80
|
|
336
|
+
*/
|
|
337
|
+
#define G_TYPE_HMAC (g_hmac_get_type ())
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* G_TYPE_DIR:
|
|
341
|
+
*
|
|
342
|
+
* The #GType for a boxed type holding a #GDir.
|
|
343
|
+
*
|
|
344
|
+
* Since: 2.80
|
|
345
|
+
*/
|
|
346
|
+
#define G_TYPE_DIR (g_dir_get_type ())
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* G_TYPE_RAND:
|
|
350
|
+
*
|
|
351
|
+
* The #GType for a boxed type holding a #GRand.
|
|
352
|
+
*
|
|
353
|
+
* Since: 2.80
|
|
354
|
+
*/
|
|
355
|
+
#define G_TYPE_RAND (g_rand_get_type ())
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* G_TYPE_STRV_BUILDER:
|
|
359
|
+
*
|
|
360
|
+
* The #GType for a boxed type holding a #GStrvBuilder.
|
|
361
|
+
*
|
|
362
|
+
* Since: 2.80
|
|
363
|
+
*/
|
|
364
|
+
#define G_TYPE_STRV_BUILDER (g_strv_builder_get_type ())
|
|
365
|
+
|
|
330
366
|
GOBJECT_AVAILABLE_IN_ALL
|
|
331
367
|
GType g_date_get_type (void) G_GNUC_CONST;
|
|
332
368
|
GOBJECT_AVAILABLE_IN_ALL
|
|
@@ -391,6 +427,14 @@ GOBJECT_AVAILABLE_IN_2_70
|
|
|
391
427
|
GType g_pattern_spec_get_type (void) G_GNUC_CONST;
|
|
392
428
|
GOBJECT_AVAILABLE_IN_2_76
|
|
393
429
|
GType g_bookmark_file_get_type (void) G_GNUC_CONST;
|
|
430
|
+
GOBJECT_AVAILABLE_IN_2_80
|
|
431
|
+
GType g_hmac_get_type (void) G_GNUC_CONST;
|
|
432
|
+
GOBJECT_AVAILABLE_IN_2_80
|
|
433
|
+
GType g_dir_get_type (void) G_GNUC_CONST;
|
|
434
|
+
GOBJECT_AVAILABLE_IN_2_80
|
|
435
|
+
GType g_rand_get_type (void) G_GNUC_CONST;
|
|
436
|
+
GOBJECT_AVAILABLE_IN_2_80
|
|
437
|
+
GType g_strv_builder_get_type (void) G_GNUC_CONST;
|
|
394
438
|
|
|
395
439
|
GOBJECT_DEPRECATED_FOR('G_TYPE_VARIANT')
|
|
396
440
|
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
#error "Only <glib-object.h> can be included directly."
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
+
#ifndef __GI_SCANNER__
|
|
27
|
+
|
|
26
28
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref)
|
|
27
29
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GEnumClass, g_type_class_unref)
|
|
28
30
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFlagsClass, g_type_class_unref)
|
|
@@ -31,3 +33,5 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref)
|
|
|
31
33
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GParamSpec, g_param_spec_unref)
|
|
32
34
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTypeClass, g_type_class_unref)
|
|
33
35
|
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
|
|
36
|
+
|
|
37
|
+
#endif /* __GI_SCANNER__ */
|
|
@@ -950,3 +950,37 @@
|
|
|
950
950
|
#define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_78
|
|
951
951
|
#define GOBJECT_AVAILABLE_TYPE_IN_2_78
|
|
952
952
|
#endif
|
|
953
|
+
|
|
954
|
+
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_80
|
|
955
|
+
#define GOBJECT_DEPRECATED_IN_2_80 GOBJECT_DEPRECATED
|
|
956
|
+
#define GOBJECT_DEPRECATED_IN_2_80_FOR(f) GOBJECT_DEPRECATED_FOR (f)
|
|
957
|
+
#define GOBJECT_DEPRECATED_MACRO_IN_2_80 GLIB_DEPRECATED_MACRO
|
|
958
|
+
#define GOBJECT_DEPRECATED_MACRO_IN_2_80_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
|
|
959
|
+
#define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_80 GLIB_DEPRECATED_ENUMERATOR
|
|
960
|
+
#define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_80_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
|
|
961
|
+
#define GOBJECT_DEPRECATED_TYPE_IN_2_80 GLIB_DEPRECATED_TYPE
|
|
962
|
+
#define GOBJECT_DEPRECATED_TYPE_IN_2_80_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
|
|
963
|
+
#else
|
|
964
|
+
#define GOBJECT_DEPRECATED_IN_2_80 _GOBJECT_EXTERN
|
|
965
|
+
#define GOBJECT_DEPRECATED_IN_2_80_FOR(f) _GOBJECT_EXTERN
|
|
966
|
+
#define GOBJECT_DEPRECATED_MACRO_IN_2_80
|
|
967
|
+
#define GOBJECT_DEPRECATED_MACRO_IN_2_80_FOR(f)
|
|
968
|
+
#define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_80
|
|
969
|
+
#define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_80_FOR(f)
|
|
970
|
+
#define GOBJECT_DEPRECATED_TYPE_IN_2_80
|
|
971
|
+
#define GOBJECT_DEPRECATED_TYPE_IN_2_80_FOR(f)
|
|
972
|
+
#endif
|
|
973
|
+
|
|
974
|
+
#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_80
|
|
975
|
+
#define GOBJECT_AVAILABLE_IN_2_80 GOBJECT_UNAVAILABLE (2, 80)
|
|
976
|
+
#define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_80 GLIB_UNAVAILABLE_STATIC_INLINE (2, 80)
|
|
977
|
+
#define GOBJECT_AVAILABLE_MACRO_IN_2_80 GLIB_UNAVAILABLE_MACRO (2, 80)
|
|
978
|
+
#define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_80 GLIB_UNAVAILABLE_ENUMERATOR (2, 80)
|
|
979
|
+
#define GOBJECT_AVAILABLE_TYPE_IN_2_80 GLIB_UNAVAILABLE_TYPE (2, 80)
|
|
980
|
+
#else
|
|
981
|
+
#define GOBJECT_AVAILABLE_IN_2_80 _GOBJECT_EXTERN
|
|
982
|
+
#define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_80
|
|
983
|
+
#define GOBJECT_AVAILABLE_MACRO_IN_2_80
|
|
984
|
+
#define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_80
|
|
985
|
+
#define GOBJECT_AVAILABLE_TYPE_IN_2_80
|
|
986
|
+
#endif
|
|
@@ -248,22 +248,7 @@ typedef void (*GObjectFinalizeFunc) (GObject *object);
|
|
|
248
248
|
*/
|
|
249
249
|
typedef void (*GWeakNotify) (gpointer data,
|
|
250
250
|
GObject *where_the_object_was);
|
|
251
|
-
|
|
252
|
-
* GObject:
|
|
253
|
-
*
|
|
254
|
-
* The base object type.
|
|
255
|
-
*
|
|
256
|
-
* All the fields in the `GObject` structure are private to the implementation
|
|
257
|
-
* and should never be accessed directly.
|
|
258
|
-
*
|
|
259
|
-
* Since GLib 2.72, all #GObjects are guaranteed to be aligned to at least the
|
|
260
|
-
* alignment of the largest basic GLib type (typically this is #guint64 or
|
|
261
|
-
* #gdouble). If you need larger alignment for an element in a #GObject, you
|
|
262
|
-
* should allocate it on the heap (aligned), or arrange for your #GObject to be
|
|
263
|
-
* appropriately padded. This guarantee applies to the #GObject (or derived)
|
|
264
|
-
* struct, the #GObjectClass (or derived) struct, and any private data allocated
|
|
265
|
-
* by G_ADD_PRIVATE().
|
|
266
|
-
*/
|
|
251
|
+
|
|
267
252
|
struct _GObject
|
|
268
253
|
{
|
|
269
254
|
GTypeInstance g_type_instance;
|
|
@@ -203,17 +203,7 @@ typedef struct _GParamSpec GParamSpec;
|
|
|
203
203
|
typedef struct _GParamSpecClass GParamSpecClass;
|
|
204
204
|
typedef struct _GParameter GParameter GOBJECT_DEPRECATED_TYPE_IN_2_54;
|
|
205
205
|
typedef struct _GParamSpecPool GParamSpecPool;
|
|
206
|
-
|
|
207
|
-
* GParamSpec: (ref-func g_param_spec_ref_sink) (unref-func g_param_spec_unref) (set-value-func g_value_set_param) (get-value-func g_value_get_param)
|
|
208
|
-
* @g_type_instance: private #GTypeInstance portion
|
|
209
|
-
* @name: name of this parameter: always an interned string
|
|
210
|
-
* @flags: #GParamFlags flags for this parameter
|
|
211
|
-
* @value_type: the #GValue type for this parameter
|
|
212
|
-
* @owner_type: #GType type that uses (introduces) this parameter
|
|
213
|
-
*
|
|
214
|
-
* All other fields of the GParamSpec struct are private and
|
|
215
|
-
* should not be used directly.
|
|
216
|
-
*/
|
|
206
|
+
|
|
217
207
|
struct _GParamSpec
|
|
218
208
|
{
|
|
219
209
|
GTypeInstance g_type_instance;
|
|
@@ -453,7 +443,8 @@ GOBJECT_AVAILABLE_IN_ALL
|
|
|
453
443
|
GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
|
|
454
444
|
GType owner_type,
|
|
455
445
|
guint *n_pspecs_p);
|
|
456
|
-
|
|
446
|
+
GOBJECT_AVAILABLE_IN_2_80
|
|
447
|
+
void g_param_spec_pool_free (GParamSpecPool *pool);
|
|
457
448
|
|
|
458
449
|
/* contracts:
|
|
459
450
|
*
|
|
@@ -500,14 +500,18 @@ void g_signal_chain_from_overridden_handler (gpointer instance,
|
|
|
500
500
|
* @c_handler: the #GCallback to connect.
|
|
501
501
|
* @data: data to pass to @c_handler calls.
|
|
502
502
|
*
|
|
503
|
-
* Connects a
|
|
503
|
+
* Connects a [type@GObject.Callback] function to a signal for a particular object.
|
|
504
504
|
*
|
|
505
|
-
* The handler will be called synchronously, before the default handler of the signal.
|
|
505
|
+
* The handler will be called synchronously, before the default handler of the signal.
|
|
506
|
+
* [func@GObject.signal_emit] will not return control until all handlers are called.
|
|
506
507
|
*
|
|
507
|
-
* See [memory management of signal handlers]
|
|
508
|
+
* See [memory management of signal handlers](signals.html#Memory_management_of_signal_handlers) for
|
|
508
509
|
* details on how to handle the return value and memory management of @data.
|
|
509
510
|
*
|
|
510
|
-
*
|
|
511
|
+
* This function cannot fail. If the given signal doesn’t exist, a critical
|
|
512
|
+
* warning is emitted.
|
|
513
|
+
*
|
|
514
|
+
* Returns: the handler ID, of type `gulong` (always greater than 0)
|
|
511
515
|
*/
|
|
512
516
|
/* Intentionally not using G_CONNECT_DEFAULT here to avoid deprecation
|
|
513
517
|
* warnings with older GLIB_VERSION_MAX_ALLOWED */
|
|
@@ -524,7 +528,10 @@ void g_signal_chain_from_overridden_handler (gpointer instance,
|
|
|
524
528
|
*
|
|
525
529
|
* The handler will be called synchronously, after the default handler of the signal.
|
|
526
530
|
*
|
|
527
|
-
*
|
|
531
|
+
* This function cannot fail. If the given signal doesn’t exist, a critical
|
|
532
|
+
* warning is emitted.
|
|
533
|
+
*
|
|
534
|
+
* Returns: the handler ID, of type `gulong` (always greater than 0)
|
|
528
535
|
*/
|
|
529
536
|
#define g_signal_connect_after(instance, detailed_signal, c_handler, data) \
|
|
530
537
|
g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_AFTER)
|
|
@@ -562,7 +569,10 @@ void g_signal_chain_from_overridden_handler (gpointer instance,
|
|
|
562
569
|
* (GCallback) button_clicked_cb, other_widget);
|
|
563
570
|
* ]|
|
|
564
571
|
*
|
|
565
|
-
*
|
|
572
|
+
* This function cannot fail. If the given signal doesn’t exist, a critical
|
|
573
|
+
* warning is emitted.
|
|
574
|
+
*
|
|
575
|
+
* Returns: the handler ID, of type `gulong` (always greater than 0)
|
|
566
576
|
*/
|
|
567
577
|
#define g_signal_connect_swapped(instance, detailed_signal, c_handler, data) \
|
|
568
578
|
g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, G_CONNECT_SWAPPED)
|
|
@@ -36,14 +36,6 @@ G_BEGIN_DECLS
|
|
|
36
36
|
#define G_IS_SIGNAL_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SIGNAL_GROUP))
|
|
37
37
|
#define G_TYPE_SIGNAL_GROUP (g_signal_group_get_type())
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* GSignalGroup:
|
|
41
|
-
*
|
|
42
|
-
* #GSignalGroup is an opaque structure whose members
|
|
43
|
-
* cannot be accessed directly.
|
|
44
|
-
*
|
|
45
|
-
* Since: 2.72
|
|
46
|
-
*/
|
|
47
39
|
typedef struct _GSignalGroup GSignalGroup;
|
|
48
40
|
|
|
49
41
|
GOBJECT_AVAILABLE_IN_2_72
|