@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
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
2
|
+
* GObject introspection: Union
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2005 Matthias Clasen
|
|
5
|
+
* Copyright (C) 2008,2009 Red Hat, Inc.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
8
|
+
*
|
|
9
|
+
* This library is free software; you can redistribute it and/or
|
|
10
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
11
|
+
* License as published by the Free Software Foundation; either
|
|
12
|
+
* version 2 of the License, or (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This library is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17
|
+
* Lesser General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
20
|
+
* License along with this library; if not, write to the
|
|
21
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22
|
+
* Boston, MA 02111-1307, USA.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
|
|
28
|
+
#error "Only <girepository.h> can be included directly."
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
#include <girepository/gitypes.h>
|
|
32
|
+
|
|
33
|
+
G_BEGIN_DECLS
|
|
34
|
+
|
|
35
|
+
#define GI_TYPE_UNION_INFO (gi_union_info_get_type ())
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* GI_UNION_INFO:
|
|
39
|
+
* @info: Info object which is subject to casting.
|
|
40
|
+
*
|
|
41
|
+
* Casts a [type@GIRepository.UnionInfo] or derived pointer into a
|
|
42
|
+
* `(GIUnionInfo*)` pointer.
|
|
43
|
+
*
|
|
44
|
+
* Depending on the current debugging level, this function may invoke
|
|
45
|
+
* certain runtime checks to identify invalid casts.
|
|
46
|
+
*
|
|
47
|
+
* Since: 2.80
|
|
48
|
+
*/
|
|
49
|
+
#define GI_UNION_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_UNION_INFO, GIUnionInfo))
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* GI_IS_UNION_INFO:
|
|
53
|
+
* @info: an info structure
|
|
54
|
+
*
|
|
55
|
+
* Checks if @info is a [struct@GIRepository.UnionInfo] (or a derived type).
|
|
56
|
+
*
|
|
57
|
+
* Since: 2.80
|
|
58
|
+
*/
|
|
59
|
+
#define GI_IS_UNION_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_UNION_INFO))
|
|
60
|
+
|
|
61
|
+
GI_AVAILABLE_IN_ALL
|
|
62
|
+
unsigned int gi_union_info_get_n_fields (GIUnionInfo *info);
|
|
63
|
+
|
|
64
|
+
GI_AVAILABLE_IN_ALL
|
|
65
|
+
GIFieldInfo * gi_union_info_get_field (GIUnionInfo *info,
|
|
66
|
+
unsigned int n);
|
|
67
|
+
|
|
68
|
+
GI_AVAILABLE_IN_ALL
|
|
69
|
+
unsigned int gi_union_info_get_n_methods (GIUnionInfo *info);
|
|
70
|
+
|
|
71
|
+
GI_AVAILABLE_IN_ALL
|
|
72
|
+
GIFunctionInfo * gi_union_info_get_method (GIUnionInfo *info,
|
|
73
|
+
unsigned int n);
|
|
74
|
+
|
|
75
|
+
GI_AVAILABLE_IN_ALL
|
|
76
|
+
gboolean gi_union_info_is_discriminated (GIUnionInfo *info);
|
|
77
|
+
|
|
78
|
+
GI_AVAILABLE_IN_ALL
|
|
79
|
+
gboolean gi_union_info_get_discriminator_offset (GIUnionInfo *info,
|
|
80
|
+
size_t *out_offset);
|
|
81
|
+
|
|
82
|
+
GI_AVAILABLE_IN_ALL
|
|
83
|
+
GITypeInfo * gi_union_info_get_discriminator_type (GIUnionInfo *info);
|
|
84
|
+
|
|
85
|
+
GI_AVAILABLE_IN_ALL
|
|
86
|
+
GIConstantInfo * gi_union_info_get_discriminator (GIUnionInfo *info,
|
|
87
|
+
size_t n);
|
|
88
|
+
|
|
89
|
+
GI_AVAILABLE_IN_ALL
|
|
90
|
+
GIFunctionInfo * gi_union_info_find_method (GIUnionInfo *info,
|
|
91
|
+
const char *name);
|
|
92
|
+
|
|
93
|
+
GI_AVAILABLE_IN_ALL
|
|
94
|
+
size_t gi_union_info_get_size (GIUnionInfo *info);
|
|
95
|
+
|
|
96
|
+
GI_AVAILABLE_IN_ALL
|
|
97
|
+
size_t gi_union_info_get_alignment (GIUnionInfo *info);
|
|
98
|
+
|
|
99
|
+
GI_AVAILABLE_IN_ALL
|
|
100
|
+
const char * gi_union_info_get_copy_function_name (GIUnionInfo *info);
|
|
101
|
+
|
|
102
|
+
GI_AVAILABLE_IN_ALL
|
|
103
|
+
const char * gi_union_info_get_free_function_name (GIUnionInfo *info);
|
|
104
|
+
|
|
105
|
+
G_END_DECLS
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
2
|
+
* GObject introspection: Callable
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2023 GNOME Foundation, Inc.
|
|
5
|
+
*
|
|
6
|
+
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
7
|
+
*
|
|
8
|
+
* This library is free software; you can redistribute it and/or
|
|
9
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
10
|
+
* License as published by the Free Software Foundation; either
|
|
11
|
+
* version 2 of the License, or (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This library is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
* Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
19
|
+
* License along with this library; if not, write to the
|
|
20
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
21
|
+
* Boston, MA 02111-1307, USA.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
#pragma once
|
|
25
|
+
|
|
26
|
+
#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
|
|
27
|
+
#error "Only <girepository.h> can be included directly."
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
#include <girepository/gitypes.h>
|
|
31
|
+
|
|
32
|
+
G_BEGIN_DECLS
|
|
33
|
+
|
|
34
|
+
#define GI_TYPE_UNRESOLVED_INFO (gi_unresolved_info_get_type ())
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* GI_UNRESOLVED_INFO:
|
|
38
|
+
* @info: Info object which is subject to casting.
|
|
39
|
+
*
|
|
40
|
+
* Casts a [type@GIRepository.UnresolvedInfo] or derived pointer into a
|
|
41
|
+
* `(GIUnresolvedInfo*)` pointer.
|
|
42
|
+
*
|
|
43
|
+
* Depending on the current debugging level, this function may invoke
|
|
44
|
+
* certain runtime checks to identify invalid casts.
|
|
45
|
+
*
|
|
46
|
+
* Since: 2.80
|
|
47
|
+
*/
|
|
48
|
+
#define GI_UNRESOLVED_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_UNRESOLVED_INFO, GIUnresolvedInfo))
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* GI_IS_UNRESOLVED_INFO:
|
|
52
|
+
* @info: an info structure
|
|
53
|
+
*
|
|
54
|
+
* Checks if @info is a [class@GIRepository.UnresolvedInfo] or derived from it.
|
|
55
|
+
*
|
|
56
|
+
* Since: 2.80
|
|
57
|
+
*/
|
|
58
|
+
#define GI_IS_UNRESOLVED_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_UNRESOLVED_INFO))
|
|
59
|
+
|
|
60
|
+
G_END_DECLS
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
2
|
+
* GObject introspection: Enum and Enum values
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2005 Matthias Clasen
|
|
5
|
+
* Copyright (C) 2008,2009 Red Hat, Inc.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
8
|
+
*
|
|
9
|
+
* This library is free software; you can redistribute it and/or
|
|
10
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
11
|
+
* License as published by the Free Software Foundation; either
|
|
12
|
+
* version 2 of the License, or (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This library is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17
|
+
* Lesser General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
20
|
+
* License along with this library; if not, write to the
|
|
21
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22
|
+
* Boston, MA 02111-1307, USA.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
|
|
28
|
+
#error "Only <girepository.h> can be included directly."
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
#include <girepository/gitypes.h>
|
|
32
|
+
|
|
33
|
+
G_BEGIN_DECLS
|
|
34
|
+
|
|
35
|
+
#define GI_TYPE_VALUE_INFO (gi_value_info_get_type ())
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* GI_VALUE_INFO:
|
|
39
|
+
* @info: Info object which is subject to casting.
|
|
40
|
+
*
|
|
41
|
+
* Casts a [type@GIRepository.ValueInfo] or derived pointer into a
|
|
42
|
+
* `(GIValueInfo*)` pointer.
|
|
43
|
+
*
|
|
44
|
+
* Depending on the current debugging level, this function may invoke
|
|
45
|
+
* certain runtime checks to identify invalid casts.
|
|
46
|
+
*
|
|
47
|
+
* Since: 2.80
|
|
48
|
+
*/
|
|
49
|
+
#define GI_VALUE_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_VALUE_INFO, GIValueInfo))
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* GI_IS_VALUE_INFO:
|
|
53
|
+
* @info: an info structure
|
|
54
|
+
*
|
|
55
|
+
* Checks if @info is a [class@GIRepository.ValueInfo] (or a derived type).
|
|
56
|
+
*
|
|
57
|
+
* Since: 2.80
|
|
58
|
+
*/
|
|
59
|
+
#define GI_IS_VALUE_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_VALUE_INFO))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
GI_AVAILABLE_IN_ALL
|
|
63
|
+
int64_t gi_value_info_get_value (GIValueInfo *info);
|
|
64
|
+
|
|
65
|
+
G_END_DECLS
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
2
|
+
* GObject introspection: Virtual Functions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2005 Matthias Clasen
|
|
5
|
+
* Copyright (C) 2008,2009 Red Hat, Inc.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
8
|
+
*
|
|
9
|
+
* This library is free software; you can redistribute it and/or
|
|
10
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
11
|
+
* License as published by the Free Software Foundation; either
|
|
12
|
+
* version 2 of the License, or (at your option) any later version.
|
|
13
|
+
*
|
|
14
|
+
* This library is distributed in the hope that it will be useful,
|
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17
|
+
* Lesser General Public License for more details.
|
|
18
|
+
*
|
|
19
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
20
|
+
* License along with this library; if not, write to the
|
|
21
|
+
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22
|
+
* Boston, MA 02111-1307, USA.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
#pragma once
|
|
26
|
+
|
|
27
|
+
#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
|
|
28
|
+
#error "Only <girepository.h> can be included directly."
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
#include <girepository/gitypes.h>
|
|
32
|
+
|
|
33
|
+
G_BEGIN_DECLS
|
|
34
|
+
|
|
35
|
+
#define GI_TYPE_VFUNC_INFO (gi_vfunc_info_get_type ())
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* GI_VFUNC_INFO:
|
|
39
|
+
* @info: Info object which is subject to casting.
|
|
40
|
+
*
|
|
41
|
+
* Casts a [type@GIRepository.VFuncInfo] or derived pointer into a
|
|
42
|
+
* `(GIVFuncInfo*)` pointer.
|
|
43
|
+
*
|
|
44
|
+
* Depending on the current debugging level, this function may invoke
|
|
45
|
+
* certain runtime checks to identify invalid casts.
|
|
46
|
+
*
|
|
47
|
+
* Since: 2.80
|
|
48
|
+
*/
|
|
49
|
+
#define GI_VFUNC_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_VFUNC_INFO, GIVFuncInfo))
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* GI_IS_VFUNC_INFO:
|
|
53
|
+
* @info: an info structure
|
|
54
|
+
*
|
|
55
|
+
* Checks if @info is a [struct@GIRepository.VFuncInfo] (or a derived type).
|
|
56
|
+
*
|
|
57
|
+
* Since: 2.80
|
|
58
|
+
*/
|
|
59
|
+
#define GI_IS_VFUNC_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_VFUNC_INFO))
|
|
60
|
+
|
|
61
|
+
GI_AVAILABLE_IN_ALL
|
|
62
|
+
GIVFuncInfoFlags gi_vfunc_info_get_flags (GIVFuncInfo *info);
|
|
63
|
+
|
|
64
|
+
GI_AVAILABLE_IN_ALL
|
|
65
|
+
size_t gi_vfunc_info_get_offset (GIVFuncInfo *info);
|
|
66
|
+
|
|
67
|
+
GI_AVAILABLE_IN_ALL
|
|
68
|
+
GISignalInfo * gi_vfunc_info_get_signal (GIVFuncInfo *info);
|
|
69
|
+
|
|
70
|
+
GI_AVAILABLE_IN_ALL
|
|
71
|
+
GIFunctionInfo * gi_vfunc_info_get_invoker (GIVFuncInfo *info);
|
|
72
|
+
|
|
73
|
+
GI_AVAILABLE_IN_ALL
|
|
74
|
+
void * gi_vfunc_info_get_address (GIVFuncInfo *info,
|
|
75
|
+
GType implementor_gtype,
|
|
76
|
+
GError **error);
|
|
77
|
+
|
|
78
|
+
GI_AVAILABLE_IN_ALL
|
|
79
|
+
gboolean gi_vfunc_info_invoke (GIVFuncInfo *info,
|
|
80
|
+
GType implementor,
|
|
81
|
+
const GIArgument *in_args,
|
|
82
|
+
size_t n_in_args,
|
|
83
|
+
GIArgument *out_args,
|
|
84
|
+
size_t n_out_args,
|
|
85
|
+
GIArgument *return_value,
|
|
86
|
+
GError **error);
|
|
87
|
+
|
|
88
|
+
G_END_DECLS
|
|
@@ -43,29 +43,6 @@ struct _GTuples
|
|
|
43
43
|
guint len;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
/* GRelation
|
|
47
|
-
*
|
|
48
|
-
* Indexed Relations. Imagine a really simple table in a
|
|
49
|
-
* database. Relations are not ordered. This data type is meant for
|
|
50
|
-
* maintaining a N-way mapping.
|
|
51
|
-
*
|
|
52
|
-
* g_relation_new() creates a relation with FIELDS fields
|
|
53
|
-
*
|
|
54
|
-
* g_relation_destroy() frees all resources
|
|
55
|
-
* g_tuples_destroy() frees the result of g_relation_select()
|
|
56
|
-
*
|
|
57
|
-
* g_relation_index() indexes relation FIELD with the provided
|
|
58
|
-
* equality and hash functions. this must be done before any
|
|
59
|
-
* calls to insert are made.
|
|
60
|
-
*
|
|
61
|
-
* g_relation_insert() inserts a new tuple. you are expected to
|
|
62
|
-
* provide the right number of fields.
|
|
63
|
-
*
|
|
64
|
-
* g_relation_delete() deletes all relations with KEY in FIELD
|
|
65
|
-
* g_relation_select() returns ...
|
|
66
|
-
* g_relation_count() counts ...
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
46
|
GLIB_DEPRECATED_IN_2_26
|
|
70
47
|
GRelation* g_relation_new (gint fields);
|
|
71
48
|
GLIB_DEPRECATED_IN_2_26
|
|
@@ -135,10 +135,12 @@ void g_thread_foreach (GFunc thread_func,
|
|
|
135
135
|
typedef struct
|
|
136
136
|
{
|
|
137
137
|
GMutex *mutex;
|
|
138
|
-
#ifndef
|
|
138
|
+
#ifndef __GI_SCANNER__
|
|
139
|
+
# ifndef G_OS_WIN32
|
|
139
140
|
/* only for ABI compatibility reasons */
|
|
140
141
|
pthread_mutex_t unused;
|
|
141
|
-
#endif
|
|
142
|
+
# endif /* !G_OS_WIN32 */
|
|
143
|
+
#endif /* !__GI_SCANNER__ */
|
|
142
144
|
} GStaticMutex GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GMutex);
|
|
143
145
|
|
|
144
146
|
#define g_static_mutex_lock(mutex) \
|
|
@@ -162,15 +164,17 @@ struct _GStaticRecMutex
|
|
|
162
164
|
GStaticMutex mutex;
|
|
163
165
|
guint depth;
|
|
164
166
|
|
|
167
|
+
#ifndef __GI_SCANNER__
|
|
165
168
|
/* ABI compat only */
|
|
166
169
|
union {
|
|
167
|
-
#ifdef G_OS_WIN32
|
|
170
|
+
# ifdef G_OS_WIN32
|
|
168
171
|
void *owner;
|
|
169
|
-
#else
|
|
172
|
+
# else
|
|
170
173
|
pthread_t owner;
|
|
171
|
-
#endif
|
|
174
|
+
# endif /* !G_OS_WIN32 */
|
|
172
175
|
gdouble dummy;
|
|
173
176
|
} unused;
|
|
177
|
+
#endif /* !__GI_SCANNER__ */
|
|
174
178
|
} GLIB_DEPRECATED_TYPE_IN_2_32_FOR(GRecMutex);
|
|
175
179
|
|
|
176
180
|
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0, { 0 } } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_rec_mutex_init)
|
|
@@ -286,7 +290,7 @@ void g_cond_free (GCond *cond);
|
|
|
286
290
|
GLIB_DEPRECATED_IN_2_32
|
|
287
291
|
gboolean g_cond_timed_wait (GCond *cond,
|
|
288
292
|
GMutex *mutex,
|
|
289
|
-
GTimeVal *
|
|
293
|
+
GTimeVal *abs_time);
|
|
290
294
|
|
|
291
295
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
292
296
|
|
|
@@ -83,16 +83,16 @@ GLIB_AVAILABLE_IN_2_74
|
|
|
83
83
|
gpointer g_atomic_pointer_exchange (void *atomic,
|
|
84
84
|
gpointer newval);
|
|
85
85
|
GLIB_AVAILABLE_IN_ALL
|
|
86
|
-
|
|
86
|
+
gintptr g_atomic_pointer_add (volatile void *atomic,
|
|
87
87
|
gssize val);
|
|
88
88
|
GLIB_AVAILABLE_IN_2_30
|
|
89
|
-
|
|
89
|
+
guintptr g_atomic_pointer_and (volatile void *atomic,
|
|
90
90
|
gsize val);
|
|
91
91
|
GLIB_AVAILABLE_IN_2_30
|
|
92
|
-
|
|
92
|
+
guintptr g_atomic_pointer_or (volatile void *atomic,
|
|
93
93
|
gsize val);
|
|
94
94
|
GLIB_AVAILABLE_IN_ALL
|
|
95
|
-
|
|
95
|
+
guintptr g_atomic_pointer_xor (volatile void *atomic,
|
|
96
96
|
gsize val);
|
|
97
97
|
|
|
98
98
|
GLIB_DEPRECATED_IN_2_30_FOR(g_atomic_int_add)
|
|
@@ -280,34 +280,34 @@ G_END_DECLS
|
|
|
280
280
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
281
281
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
282
282
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
283
|
-
(
|
|
283
|
+
(gintptr) __atomic_fetch_add ((atomic), (val), __ATOMIC_SEQ_CST); \
|
|
284
284
|
}))
|
|
285
285
|
#define g_atomic_pointer_and(atomic, val) \
|
|
286
286
|
(G_GNUC_EXTENSION ({ \
|
|
287
|
-
|
|
287
|
+
guintptr *gapa_atomic = (guintptr *) (atomic); \
|
|
288
288
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
289
|
-
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (
|
|
289
|
+
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
|
|
290
290
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
291
291
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
292
|
-
(
|
|
292
|
+
(guintptr) __atomic_fetch_and (gapa_atomic, (val), __ATOMIC_SEQ_CST); \
|
|
293
293
|
}))
|
|
294
294
|
#define g_atomic_pointer_or(atomic, val) \
|
|
295
295
|
(G_GNUC_EXTENSION ({ \
|
|
296
|
-
|
|
296
|
+
guintptr *gapo_atomic = (guintptr *) (atomic); \
|
|
297
297
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
298
|
-
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (
|
|
298
|
+
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
|
|
299
299
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
300
300
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
301
|
-
(
|
|
301
|
+
(guintptr) __atomic_fetch_or (gapo_atomic, (val), __ATOMIC_SEQ_CST); \
|
|
302
302
|
}))
|
|
303
303
|
#define g_atomic_pointer_xor(atomic, val) \
|
|
304
304
|
(G_GNUC_EXTENSION ({ \
|
|
305
|
-
|
|
305
|
+
guintptr *gapx_atomic = (guintptr *) (atomic); \
|
|
306
306
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
307
|
-
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (
|
|
307
|
+
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (guintptr)); \
|
|
308
308
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
309
309
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
310
|
-
(
|
|
310
|
+
(guintptr) __atomic_fetch_xor (gapx_atomic, (val), __ATOMIC_SEQ_CST); \
|
|
311
311
|
}))
|
|
312
312
|
|
|
313
313
|
#else /* defined(__ATOMIC_SEQ_CST) */
|
|
@@ -374,7 +374,7 @@ G_END_DECLS
|
|
|
374
374
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
375
375
|
__sync_synchronize (); \
|
|
376
376
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
377
|
-
*(atomic) = (glib_typeof (*(atomic))) (
|
|
377
|
+
*(atomic) = (glib_typeof (*(atomic))) (guintptr) (newval); \
|
|
378
378
|
}))
|
|
379
379
|
#else /* if !(defined(glib_typeof) */
|
|
380
380
|
#define g_atomic_pointer_set(atomic, newval) \
|
|
@@ -383,7 +383,7 @@ G_END_DECLS
|
|
|
383
383
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
384
384
|
__sync_synchronize (); \
|
|
385
385
|
__asm__ __volatile__ ("" : : : "memory"); \
|
|
386
|
-
*(atomic) = (gpointer) (
|
|
386
|
+
*(atomic) = (gpointer) (guintptr) (newval); \
|
|
387
387
|
}))
|
|
388
388
|
#endif /* if defined(glib_typeof) */
|
|
389
389
|
|
|
@@ -498,28 +498,28 @@ G_END_DECLS
|
|
|
498
498
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
499
499
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
500
500
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
501
|
-
(
|
|
501
|
+
(gintptr) __sync_fetch_and_add ((atomic), (val)); \
|
|
502
502
|
}))
|
|
503
503
|
#define g_atomic_pointer_and(atomic, val) \
|
|
504
504
|
(G_GNUC_EXTENSION ({ \
|
|
505
505
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
506
506
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
507
507
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
508
|
-
(
|
|
508
|
+
(guintptr) __sync_fetch_and_and ((atomic), (val)); \
|
|
509
509
|
}))
|
|
510
510
|
#define g_atomic_pointer_or(atomic, val) \
|
|
511
511
|
(G_GNUC_EXTENSION ({ \
|
|
512
512
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
513
513
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
514
514
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
515
|
-
(
|
|
515
|
+
(guintptr) __sync_fetch_and_or ((atomic), (val)); \
|
|
516
516
|
}))
|
|
517
517
|
#define g_atomic_pointer_xor(atomic, val) \
|
|
518
518
|
(G_GNUC_EXTENSION ({ \
|
|
519
519
|
G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
|
|
520
520
|
(void) (0 ? (gpointer) *(atomic) : NULL); \
|
|
521
521
|
(void) (0 ? (val) ^ (val) : 1); \
|
|
522
|
-
(
|
|
522
|
+
(guintptr) __sync_fetch_and_xor ((atomic), (val)); \
|
|
523
523
|
}))
|
|
524
524
|
|
|
525
525
|
#endif /* !defined(__ATOMIC_SEQ_CST) */
|
|
@@ -44,6 +44,12 @@ void g_bit_unlock (volatile gint *address,
|
|
|
44
44
|
GLIB_AVAILABLE_IN_ALL
|
|
45
45
|
void g_pointer_bit_lock (volatile void *address,
|
|
46
46
|
gint lock_bit);
|
|
47
|
+
|
|
48
|
+
GLIB_AVAILABLE_IN_2_80
|
|
49
|
+
void g_pointer_bit_lock_and_get (gpointer address,
|
|
50
|
+
guint lock_bit,
|
|
51
|
+
guintptr *out_ptr);
|
|
52
|
+
|
|
47
53
|
GLIB_AVAILABLE_IN_ALL
|
|
48
54
|
gboolean g_pointer_bit_trylock (volatile void *address,
|
|
49
55
|
gint lock_bit);
|
|
@@ -51,6 +57,19 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
51
57
|
void g_pointer_bit_unlock (volatile void *address,
|
|
52
58
|
gint lock_bit);
|
|
53
59
|
|
|
60
|
+
GLIB_AVAILABLE_IN_2_80
|
|
61
|
+
gpointer g_pointer_bit_lock_mask_ptr (gpointer ptr,
|
|
62
|
+
guint lock_bit,
|
|
63
|
+
gboolean set,
|
|
64
|
+
guintptr preserve_mask,
|
|
65
|
+
gpointer preserve_ptr);
|
|
66
|
+
|
|
67
|
+
GLIB_AVAILABLE_IN_2_80
|
|
68
|
+
void g_pointer_bit_unlock_and_set (void *address,
|
|
69
|
+
guint lock_bit,
|
|
70
|
+
gpointer ptr,
|
|
71
|
+
guintptr preserve_mask);
|
|
72
|
+
|
|
54
73
|
#ifdef __GNUC__
|
|
55
74
|
|
|
56
75
|
#define g_pointer_bit_lock(address, lock_bit) \
|
|
@@ -59,6 +78,12 @@ void g_pointer_bit_unlock (volatile void *address,
|
|
|
59
78
|
g_pointer_bit_lock ((address), (lock_bit)); \
|
|
60
79
|
}))
|
|
61
80
|
|
|
81
|
+
#define g_pointer_bit_lock_and_get(address, lock_bit, out_ptr) \
|
|
82
|
+
(G_GNUC_EXTENSION ({ \
|
|
83
|
+
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
84
|
+
g_pointer_bit_lock_and_get ((address), (lock_bit), (out_ptr)); \
|
|
85
|
+
}))
|
|
86
|
+
|
|
62
87
|
#define g_pointer_bit_trylock(address, lock_bit) \
|
|
63
88
|
(G_GNUC_EXTENSION ({ \
|
|
64
89
|
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
@@ -71,6 +96,12 @@ void g_pointer_bit_unlock (volatile void *address,
|
|
|
71
96
|
g_pointer_bit_unlock ((address), (lock_bit)); \
|
|
72
97
|
}))
|
|
73
98
|
|
|
99
|
+
#define g_pointer_bit_unlock_and_set(address, lock_bit, ptr, preserve_mask) \
|
|
100
|
+
(G_GNUC_EXTENSION ({ \
|
|
101
|
+
G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
|
|
102
|
+
g_pointer_bit_unlock_and_set ((address), (lock_bit), (ptr), (preserve_mask)); \
|
|
103
|
+
}))
|
|
104
|
+
|
|
74
105
|
#endif
|
|
75
106
|
|
|
76
107
|
G_END_DECLS
|
|
@@ -75,7 +75,45 @@ GQuark g_bookmark_file_error_quark (void);
|
|
|
75
75
|
/**
|
|
76
76
|
* GBookmarkFile:
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
* `GBookmarkFile` lets you parse, edit or create files containing bookmarks.
|
|
79
|
+
*
|
|
80
|
+
* Bookmarks refer to a URI, along with some meta-data about the resource
|
|
81
|
+
* pointed by the URI like its MIME type, the application that is registering
|
|
82
|
+
* the bookmark and the icon that should be used to represent the bookmark.
|
|
83
|
+
* The data is stored using the
|
|
84
|
+
* [Desktop Bookmark Specification](http://www.gnome.org/~ebassi/bookmark-spec).
|
|
85
|
+
*
|
|
86
|
+
* The syntax of the bookmark files is described in detail inside the
|
|
87
|
+
* Desktop Bookmark Specification, here is a quick summary: bookmark
|
|
88
|
+
* files use a sub-class of the XML Bookmark Exchange Language
|
|
89
|
+
* specification, consisting of valid UTF-8 encoded XML, under the
|
|
90
|
+
* `<xbel>` root element; each bookmark is stored inside a
|
|
91
|
+
* `<bookmark>` element, using its URI: no relative paths can
|
|
92
|
+
* be used inside a bookmark file. The bookmark may have a user defined
|
|
93
|
+
* title and description, to be used instead of the URI. Under the
|
|
94
|
+
* `<metadata>` element, with its owner attribute set to
|
|
95
|
+
* `http://freedesktop.org`, is stored the meta-data about a resource
|
|
96
|
+
* pointed by its URI. The meta-data consists of the resource's MIME
|
|
97
|
+
* type; the applications that have registered a bookmark; the groups
|
|
98
|
+
* to which a bookmark belongs to; a visibility flag, used to set the
|
|
99
|
+
* bookmark as "private" to the applications and groups that has it
|
|
100
|
+
* registered; the URI and MIME type of an icon, to be used when
|
|
101
|
+
* displaying the bookmark inside a GUI.
|
|
102
|
+
*
|
|
103
|
+
* Here is an example of a bookmark file:
|
|
104
|
+
* [bookmarks.xbel](https://gitlab.gnome.org/GNOME/glib/-/blob/HEAD/glib/tests/bookmarks.xbel)
|
|
105
|
+
*
|
|
106
|
+
* A bookmark file might contain more than one bookmark; each bookmark
|
|
107
|
+
* is accessed through its URI.
|
|
108
|
+
*
|
|
109
|
+
* The important caveat of bookmark files is that when you add a new
|
|
110
|
+
* bookmark you must also add the application that is registering it, using
|
|
111
|
+
* [method@GLib.BookmarkFile.add_application] or [method@GLib.BookmarkFile.set_application_info].
|
|
112
|
+
* If a bookmark has no applications then it won't be dumped when creating
|
|
113
|
+
* the on disk representation, using [method@GLib.BookmarkFile.to_data] or
|
|
114
|
+
* [method@GLib.BookmarkFile.to_file].
|
|
115
|
+
*
|
|
116
|
+
* Since: 2.12
|
|
79
117
|
*/
|
|
80
118
|
typedef struct _GBookmarkFile GBookmarkFile;
|
|
81
119
|
|
|
@@ -54,16 +54,6 @@ typedef enum {
|
|
|
54
54
|
G_CHECKSUM_SHA384
|
|
55
55
|
} GChecksumType;
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
* GChecksum:
|
|
59
|
-
*
|
|
60
|
-
* An opaque structure representing a checksumming operation.
|
|
61
|
-
*
|
|
62
|
-
* To create a new GChecksum, use g_checksum_new(). To free
|
|
63
|
-
* a GChecksum, use g_checksum_free().
|
|
64
|
-
*
|
|
65
|
-
* Since: 2.16
|
|
66
|
-
*/
|
|
67
57
|
typedef struct _GChecksum GChecksum;
|
|
68
58
|
|
|
69
59
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -38,15 +38,6 @@
|
|
|
38
38
|
|
|
39
39
|
G_BEGIN_DECLS
|
|
40
40
|
|
|
41
|
-
/* GDate
|
|
42
|
-
*
|
|
43
|
-
* Date calculations (not time for now, to be resolved). These are a
|
|
44
|
-
* mutant combination of Steffen Beyer's DateCalc routines
|
|
45
|
-
* (http://www.perl.com/CPAN/authors/id/STBEY/) and Jon Trowbridge's
|
|
46
|
-
* date routines (written for in-house software). Written by Havoc
|
|
47
|
-
* Pennington <hp@pobox.com>
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
41
|
typedef gint32 GTime GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
|
|
51
42
|
typedef guint16 GDateYear;
|
|
52
43
|
typedef guint8 GDateDay; /* day of the month */
|