summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2023-01-17 15:16:48 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2023-01-17 15:16:48 +0100
commit0520f5f492d0c9e50384defd167597d7904e4799 (patch)
treee65dc7ff3cbc35743c4d5e8fe62a05dbfa943d8f
parent6a7f6d36715ec91114b27b7568ef482837e8c651 (diff)
downloadglibmm-0520f5f492d0c9e50384defd167597d7904e4799.tar.gz
Glib, Gio: Regenerate docs.xml and .defs files
using glib files from glib 2.75.2. Update gio_docs_override.xml.
-rw-r--r--gio/src/gio_docs.xml95
-rw-r--r--gio/src/gio_docs_override.xml1
-rw-r--r--gio/src/gio_enums.defs40
-rw-r--r--gio/src/gio_methods.defs50
-rw-r--r--glib/src/glib_docs.xml1106
-rw-r--r--glib/src/glib_enums.defs6
-rw-r--r--glib/src/glib_functions.defs153
-rw-r--r--glib/src/gmodule_enums.defs6
-rw-r--r--glib/src/gmodule_functions.defs4
-rw-r--r--glib/src/gobject_enums.defs12
-rw-r--r--glib/src/gobject_functions.defs10
11 files changed, 1326 insertions, 157 deletions
diff --git a/gio/src/gio_docs.xml b/gio/src/gio_docs.xml
index 1644cc42..4d2dfaf3 100644
--- a/gio/src/gio_docs.xml
+++ b/gio/src/gio_docs.xml
@@ -8478,23 +8478,29 @@ Detailed action names can have three formats.
The first format is used to represent an action name with no target
value and consists of just an action name containing no whitespace
-nor the characters ':', '(' or ')'. For example: &quot;app.action&quot;.
+nor the characters `:`, `(` or `)`. For example: `app.action`.
The second format is used to represent an action with a target value
-that is a non-empty string consisting only of alphanumerics, plus '-'
-and '.'. In that case, the action name and target value are
-separated by a double colon (&quot;::&quot;). For example:
-&quot;app.action::target&quot;.
+that is a non-empty string consisting only of alphanumerics, plus `-`
+and `.`. In that case, the action name and target value are
+separated by a double colon (`::`). For example:
+`app.action::target`.
The third format is used to represent an action with any type of
target value, including strings. The target value follows the action
-name, surrounded in parens. For example: &quot;app.action(42)&quot;. The
+name, surrounded in parens. For example: `app.action(42)`. The
target value is parsed using g_variant_parse(). If a tuple-typed
value is desired, it must be specified in the same way, resulting in
-two sets of parens, for example: &quot;app.action((1,2,3))&quot;. A string
-target can be specified this way as well: &quot;app.action('target')&quot;.
-For strings, this third format must be used if * target value is
-empty or contains characters other than alphanumerics, '-' and '.'.
+two sets of parens, for example: `app.action((1,2,3))`. A string
+target can be specified this way as well: `app.action('target')`.
+For strings, this third format must be used if target value is
+empty or contains characters other than alphanumerics, `-` and `.`.
+
+If this function returns %TRUE, a non-%NULL value is guaranteed to be returned
+in @action_name (if a pointer is passed in). A %NULL value may still be
+returned in @target_value, as the @detailed_name may not contain a target.
+
+If returned, the #GVariant in @target_value is guaranteed to not be floating.
Since: 2.38
@@ -8509,7 +8515,8 @@ Since: 2.38
</parameter_description>
</parameter>
<parameter name="target_value">
-<parameter_description> the target value, or %NULL for no target
+<parameter_description> the target value,
+or %NULL for no target
</parameter_description>
</parameter>
<parameter name="error">
@@ -9132,9 +9139,9 @@ On UNIX, this function sets the `GIO_LAUNCHED_DESKTOP_FILE`
environment variable with the path of the launched desktop file and
`GIO_LAUNCHED_DESKTOP_FILE_PID` to the process id of the launched
process. This can be used to ignore `GIO_LAUNCHED_DESKTOP_FILE`,
-should it be inherited by further processes. The `DISPLAY` and
-`DESKTOP_STARTUP_ID` environment variables are also set, based
-on information provided in @context.
+should it be inherited by further processes. The `DISPLAY`,
+`XDG_ACTIVATION_TOKEN` and `DESKTOP_STARTUP_ID` environment
+variables are also set, based on information provided in @context.
</description>
@@ -9602,10 +9609,18 @@ the child's environment
<function name="g_app_launch_context_get_startup_notify_id">
<description>
Initiates startup notification for the application and returns the
-`DESKTOP_STARTUP_ID` for the launched operation, if supported.
+`XDG_ACTIVATION_TOKEN` or `DESKTOP_STARTUP_ID` for the launched operation,
+if supported.
+
+The returned token may be referred to equivalently as an ‘activation token’
+(using Wayland terminology) or a ‘startup sequence ID’ (using X11 terminology).
+The two [are interoperable](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/x11-interoperation.rst).
+
+Activation tokens are defined in the [XDG Activation Protocol](https://wayland.app/protocols/xdg-activation-v1),
+and startup notification IDs are defined in the
+[freedesktop.org Startup Notification Protocol](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
-Startup notification IDs are defined in the
-[FreeDesktop.Org Startup Notifications standard](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt).
+Support for the XDG Activation Protocol was added in GLib 2.76.
</description>
@@ -9799,6 +9814,8 @@ passed to #GApplication::handle-local-options, where it can be
inspected and modified. If %G_APPLICATION_HANDLES_COMMAND_LINE is
set, then the resulting dictionary is sent to the primary instance,
where g_application_command_line_get_options_dict() will return it.
+As it has been passed outside the process at this point, the types of all
+values in the options dict must be checked before being used.
This &quot;packing&quot; is done according to the type of the argument --
booleans for normal flags, strings for strings, bytestrings for
filenames, etc. The packing only occurs if the flag is given (ie: we
@@ -10085,7 +10102,7 @@ Since: 2.28
<function name="g_application_command_line_get_options_dict">
<description>
-Gets the options there were passed to g_application_command_line().
+Gets the options that were passed to g_application_command_line().
If you did not override local_command_line() then these are the same
options that were parsed according to the #GOptionEntrys added to the
@@ -10095,6 +10112,9 @@ modified from your GApplication::handle-local-options handler.
If no options were sent then an empty dictionary is returned so that
you don't need to check for %NULL.
+The data has been passed via an untrusted external process, so the types of
+all values must be checked before being used.
+
Since: 2.40
</description>
@@ -10118,6 +10138,9 @@ context in which the invocation occurred. It typically contains
information like the current working directory and the startup
notification ID.
+It comes from an untrusted external process and hence the types of all
+values must be validated before being used.
+
For local invocation, it will be %NULL.
Since: 2.28
@@ -16308,6 +16331,10 @@ An object path can only have one menu model exported on it. If this
constraint is violated, the export will fail and 0 will be
returned (with @error set accordingly).
+Exporting menus with sections containing more than
+%G_MENU_EXPORTER_MAX_SECTION_SIZE items is not supported and results in
+undefined behavior.
+
You can unexport the menu model using
g_dbus_connection_unexport_menu_model() with the return value of
this function.
@@ -17394,7 +17421,7 @@ when @connection is closed by the remote peer
<function name="g_dbus_connection_signal_subscribe">
<description>
-Subscribes to signals on @connection and invokes @callback with a whenever
+Subscribes to signals on @connection and invokes @callback whenever
the signal is received. Note that @callback will be invoked in the
[thread-default main context][g-main-context-push-thread-default]
of the thread you are calling this method from.
@@ -33455,7 +33482,6 @@ native, the returned string is the result of g_file_get_uri()
- If @icon is a #GThemedIcon with exactly one name and no fallbacks,
the encoding is simply the name (such as `network-server`).
-Virtual: to_tokens
Since: 2.20
</description>
@@ -40474,7 +40500,7 @@ activated when the notification is clicked on. It must be an
application-wide action (start with &quot;app.&quot;).
If @target is non-%NULL, @action will be activated with @target as
-its parameter.
+its parameter. If @target is floating, it will be consumed.
When no default action is set, the application that the notification
was sent on is activated.
@@ -43056,7 +43082,7 @@ Since: 2.26
<description>
Looks into the system proxy configuration to determine what proxy,
if any, to use to connect to @uri. The returned proxy URIs are of
-the form `&lt;protocol&gt;://[user[:password]@]host:port` or
+the form `&lt;protocol&gt;://[user[:password]@]host[:port]` or
`direct://`, where &lt;protocol&gt; could be http, rtsp, socks
or other proxying protocol.
@@ -53921,7 +53947,8 @@ to wait for a #GSource to trigger. Attaches @source to @task's
callback to @callback, with @task as the callback's `user_data`.
It will set the @source’s name to the task’s name (as set with
-g_task_set_name()), if one has been set.
+g_task_set_name()), if one has been set on the task and the source doesn’t
+yet have a name.
This takes a reference on @task until @source is destroyed.
@@ -54874,6 +54901,28 @@ Since: 2.36
<return></return>
</function>
+<function name="g_task_set_static_name">
+<description>
+Sets @task’s name, used in debugging and profiling.
+
+This is a variant of g_task_set_name() that avoids copying @name.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="task">
+<parameter_description> a #GTask
+</parameter_description>
+</parameter>
+<parameter name="name">
+<parameter_description> a human readable name for the task. Must be a string literal
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="g_task_set_task_data">
<description>
Sets @task's task data (freeing the existing task data, if any).
diff --git a/gio/src/gio_docs_override.xml b/gio/src/gio_docs_override.xml
index e58038f4..c889da8a 100644
--- a/gio/src/gio_docs_override.xml
+++ b/gio/src/gio_docs_override.xml
@@ -106,6 +106,7 @@
<substitute_enumerator_name from="G_TLS_ERROR" to="G_TLS_ERROR" />
<substitute_enumerator_name from="SOL_SOCKET" to="SOL_SOCKET" />
<substitute_enumerator_name from="G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE" to="G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE" />
+<substitute_enumerator_name from="G_MENU_EXPORTER_MAX_SECTION_SIZE" to="G_MENU_EXPORTER_MAX_SECTION_SIZE" />
<substitute_enumerator_name from_prefix="G_FILE_ATTRIBUTE_" to_prefix="G_FILE_ATTRIBUTE_" />
<substitute_enumerator_name from_prefix="G_MENU_ATTRIBUTE_" to_prefix="G_MENU_ATTRIBUTE_" />
<substitute_enumerator_name from_prefix="G_MENU_LINK_" to_prefix="G_MENU_LINK_" />
diff --git a/gio/src/gio_enums.defs b/gio/src/gio_enums.defs
index d933e20e..b3a77b7f 100644
--- a/gio/src/gio_enums.defs
+++ b/gio/src/gio_enums.defs
@@ -463,7 +463,7 @@
;; G_IO_ERROR_CONNECTION_CLOSED = G_IO_ERROR_BROKEN_PIPE,
;; G_IO_ERROR_NOT_CONNECTED,
;; G_IO_ERROR_MESSAGE_TOO_LARGE,
-;; G_IO_ERROR_NO_SUCH_DEVICE GLIB_AVAILABLE_ENUMERATOR_IN_2_74,
+;; G_IO_ERROR_NO_SUCH_DEVICE GIO_AVAILABLE_ENUMERATOR_IN_2_74,
;; } GIOErrorEnum;
(define-enum-extended IOErrorEnum
@@ -899,7 +899,7 @@
;; G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START = (1<<2),
;; G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES = (1<<3),
;; G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION = (1<<4),
-;; G_DBUS_PROXY_FLAGS_NO_MATCH_RULE GLIB_AVAILABLE_ENUMERATOR_IN_2_72 = (1<<5)
+;; G_DBUS_PROXY_FLAGS_NO_MATCH_RULE GIO_AVAILABLE_ENUMERATOR_IN_2_72 = (1<<5)
;; } GDBusProxyFlags;
(define-flags-extended DBusProxyFlags
@@ -1027,8 +1027,8 @@
;; G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<2),
;; G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION = (1<<3),
;; G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING = (1<<4),
-;; G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<5),
-;; G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = (1<<6)
+;; G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GIO_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<5),
+;; G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE GIO_AVAILABLE_ENUMERATOR_IN_2_74 = (1<<6)
;; } GDBusConnectionFlags;
(define-flags-extended DBusConnectionFlags
@@ -1189,7 +1189,7 @@
;; G_DBUS_SERVER_FLAGS_NONE = 0,
;; G_DBUS_SERVER_FLAGS_RUN_IN_THREAD = (1<<0),
;; G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = (1<<1),
-;; G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2)
+;; G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GIO_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2)
;; } GDBusServerFlags;
(define-flags-extended DBusServerFlags
@@ -1286,8 +1286,8 @@
;; Original typedef:
;; typedef enum /*< prefix=G_APPLICATION >*/
;; {
-;; G_APPLICATION_FLAGS_NONE GLIB_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
-;; G_APPLICATION_DEFAULT_FLAGS GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
+;; G_APPLICATION_FLAGS_NONE GIO_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
+;; G_APPLICATION_DEFAULT_FLAGS GIO_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;; G_APPLICATION_IS_SERVICE = (1 << 0),
;; G_APPLICATION_IS_LAUNCHER = (1 << 1),
;;
@@ -1351,7 +1351,7 @@
;; Original typedef:
;; typedef enum {
-;; G_TLS_CERTIFICATE_NO_FLAGS GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
+;; G_TLS_CERTIFICATE_NO_FLAGS GIO_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;; G_TLS_CERTIFICATE_UNKNOWN_CA = (1 << 0),
;; G_TLS_CERTIFICATE_BAD_IDENTITY = (1 << 1),
;; G_TLS_CERTIFICATE_NOT_ACTIVATED = (1 << 2),
@@ -1400,7 +1400,7 @@
;; typedef enum {
;; G_TLS_CHANNEL_BINDING_TLS_UNIQUE,
;; G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT,
-;; G_TLS_CHANNEL_BINDING_TLS_EXPORTER GLIB_AVAILABLE_ENUMERATOR_IN_2_74,
+;; G_TLS_CHANNEL_BINDING_TLS_EXPORTER GIO_AVAILABLE_ENUMERATOR_IN_2_74,
;; } GTlsChannelBindingType;
(define-enum-extended TlsChannelBindingType
@@ -1439,7 +1439,7 @@
;; G_TLS_REHANDSHAKE_NEVER,
;; G_TLS_REHANDSHAKE_SAFELY,
;; G_TLS_REHANDSHAKE_UNSAFELY
-;; } GTlsRehandshakeMode GLIB_DEPRECATED_TYPE_IN_2_60;
+;; } GTlsRehandshakeMode GIO_DEPRECATED_TYPE_IN_2_60;
(define-enum-extended TlsRehandshakeMode
(in-module "G")
@@ -1866,6 +1866,26 @@
)
)
+;; From gsandbox.h
+
+;; Original typedef:
+;; typedef enum
+;; {
+;; G_SANDBOX_TYPE_UNKNOWN,
+;; G_SANDBOX_TYPE_FLATPAK,
+;; G_SANDBOX_TYPE_SNAP
+;; } GSandboxType;
+
+(define-enum-extended SandboxType
+ (in-module "G")
+ (c-name "GSandboxType")
+ (values
+ '("unknown" "G_SANDBOX_TYPE_UNKNOWN" "0")
+ '("flatpak" "G_SANDBOX_TYPE_FLATPAK" "1")
+ '("snap" "G_SANDBOX_TYPE_SNAP" "2")
+ )
+)
+
;; From gsettings.h
;; Original typedef:
diff --git a/gio/src/gio_methods.defs b/gio/src/gio_methods.defs
index b0a24a56..deb8f301 100644
--- a/gio/src/gio_methods.defs
+++ b/gio/src/gio_methods.defs
@@ -1894,6 +1894,17 @@
)
)
+(define-enum Type
+ (in-module "GSandbox")
+ (c-name "GSandboxType")
+ (gtype-id "G_TYPE_SANDBOX_TYPE")
+ (values
+ '("unknown" "G_SANDBOX_TYPE_UNKNOWN")
+ '("flatpak" "G_SANDBOX_TYPE_FLATPAK")
+ '("snap" "G_SANDBOX_TYPE_SNAP")
+ )
+)
+
(define-flags BindFlags
(in-module "GSettings")
(c-name "GSettingsBindFlags")
@@ -11362,23 +11373,6 @@
(return-type "GTypeClass*")
)
-(define-method load
- (of-object "GIOModule")
- (c-name "g_io_module_load")
- (return-type "none")
-)
-
-(define-method unload
- (of-object "GIOModule")
- (c-name "g_io_module_unload")
- (return-type "none")
-)
-
-(define-function g_io_module_query
- (c-name "g_io_module_query")
- (return-type "char**")
-)
-
;; From giomodule-priv.h
@@ -14972,6 +14966,15 @@
+;; From gsandbox.h
+
+(define-function glib_get_sandbox_type
+ (c-name "glib_get_sandbox_type")
+ (return-type "GSandboxType")
+)
+
+
+
;; From gseekable.h
(define-function g_seekable_get_type
@@ -18404,6 +18407,15 @@
)
)
+(define-method set_static_name
+ (of-object "GTask")
+ (c-name "g_task_set_static_name")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "name")
+ )
+)
+
(define-method get_source_object
(of-object "GTask")
(c-name "g_task_get_source_object")
@@ -21728,6 +21740,10 @@
+;; From gio-visibility.h
+
+
+
;; From gnetworking.h
(define-function g_networking_init
diff --git a/glib/src/glib_docs.xml b/glib/src/glib_docs.xml
index be64a186..c1813619 100644
--- a/glib/src/glib_docs.xml
+++ b/glib/src/glib_docs.xml
@@ -2934,6 +2934,12 @@ g_value_init()
leaf node in a deep derivable type hierarchy tree. Since: 2.70
</parameter_description>
</parameter>
+<parameter name="G_TYPE_FLAG_DEPRECATED">
+<parameter_description> The type is deprecated and may be removed in a
+future version. A warning will be emitted if it is instantiated while
+running with `G_ENABLE_DIAGNOSTIC=1`. Since 2.76
+</parameter_description>
+</parameter>
</parameters>
</enum>
@@ -3834,6 +3840,14 @@ Old South Arabian. Since 2.26
<parameter_description> Mathematical notation. Since: 2.72
</parameter_description>
</parameter>
+<parameter name="G_UNICODE_SCRIPT_KAWI">
+<parameter_description> Kawi. Since 2.74
+</parameter_description>
+</parameter>
+<parameter name="G_UNICODE_SCRIPT_NAG_MUNDARI">
+<parameter_description> Nag Mundari. Since 2.74
+</parameter_description>
+</parameter>
</parameters>
</enum>
@@ -4926,6 +4940,94 @@ to 0 when they are allocated
</return>
</function>
+<function name="g_array_new_take">
+<description>
+Creates a new #GArray with @data as array data, @len as length and a
+reference count of 1.
+
+This avoids having to copy the data manually, when it can just be
+inherited. @data will eventually be freed using g_free(), so must
+have been allocated with a suitable allocator.
+
+In case the elements need to be cleared when the array is freed, use
+g_array_set_clear_func() to set a #GDestroyNotify function to perform
+such task.
+
+Do not use it if @len or @element_size are greater than %G_MAXUINT.
+#GArray stores the length of its data in #guint, which may be shorter
+than #gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array of
+elements of @element_size, or %NULL for an empty array
+</parameter_description>
+</parameter>
+<parameter name="len">
+<parameter_description> the number of elements in @data
+</parameter_description>
+</parameter>
+<parameter name="clear">
+<parameter_description> %TRUE if #GArray elements should be automatically cleared
+to 0 when they are allocated
+</parameter_description>
+</parameter>
+<parameter name="element_size">
+<parameter_description> the size of each element in bytes
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GArray
+
+</return>
+</function>
+
+<function name="g_array_new_take_zero_terminated">
+<description>
+Creates a new #GArray with @data as array data, computing the length of it
+and setting the reference count to 1.
+
+This avoids having to copy the data manually, when it can just be
+inherited. @data will eventually be freed using g_free(), so must
+have been allocated with a suitable allocator.
+
+The length is calculated by iterating through @data until the first %NULL
+element is found.
+
+In case the elements need to be cleared when the array is freed, use
+g_array_set_clear_func() to set a #GDestroyNotify function to perform
+such task.
+
+Do not use it if @data length or @element_size are greater than %G_MAXUINT.
+#GArray stores the length of its data in #guint, which may be shorter
+than #gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array of elements of @element_size
+</parameter_description>
+</parameter>
+<parameter name="clear">
+<parameter_description> %TRUE if #GArray elements should be automatically cleared
+to 0 when they are allocated
+</parameter_description>
+</parameter>
+<parameter name="element_size">
+<parameter_description> the size of each element in bytes
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GArray
+
+</return>
+</function>
+
<function name="g_array_prepend_val">
<description>
Adds the value on to the start of the array. The array will grow in
@@ -6773,7 +6875,9 @@ This function must be called while holding the @queue's lock.
<function name="g_async_queue_push">
<description>
-Pushes the @data into the @queue. @data must not be %NULL.
+Pushes the @data into the @queue.
+
+The @data parameter must not be %NULL.
</description>
<parameters>
@@ -6782,7 +6886,7 @@ Pushes the @data into the @queue. @data must not be %NULL.
</parameter_description>
</parameter>
<parameter name="data">
-<parameter_description> @data to push into the @queue
+<parameter_description> data to push onto the @queue
</parameter_description>
</parameter>
</parameters>
@@ -6901,7 +7005,7 @@ Since: 2.10
</parameter_description>
</parameter>
<parameter name="data">
-<parameter_description> the @data to push into the @queue
+<parameter_description> the data to push into the @queue
</parameter_description>
</parameter>
<parameter name="func">
@@ -6918,7 +7022,9 @@ Since: 2.10
<function name="g_async_queue_push_unlocked">
<description>
-Pushes the @data into the @queue. @data must not be %NULL.
+Pushes the @data into the @queue.
+
+The @data parameter must not be %NULL.
This function must be called while holding the @queue's lock.
@@ -6929,7 +7035,7 @@ This function must be called while holding the @queue's lock.
</parameter_description>
</parameter>
<parameter name="data">
-<parameter_description> @data to push into the @queue
+<parameter_description> data to push onto the @queue
</parameter_description>
</parameter>
</parameters>
@@ -8327,6 +8433,63 @@ Since: 2.44
<return></return>
</function>
+<function name="g_autofd">
+<description>
+Macro to add an attribute to a file descriptor variable to ensure
+automatic cleanup using g_clear_fd().
+
+This macro behaves like #g_autofree rather than g_autoptr(): it is
+an attribute supplied before the type name, rather than wrapping the
+type definition.
+
+Otherwise, this macro has similar constraints as g_autoptr(): it is
+only supported on GCC and clang, and the variable must be initialized
+(to either a valid file descriptor or a negative number).
+
+Using this macro is async-signal-safe if the constraints described above
+are met, so it can be used in a signal handler or after `fork()`.
+
+Any error from closing the file descriptor when it goes out of scope
+is ignored. Use g_clear_fd() if error-checking is required.
+
+|[
+gboolean
+operate_on_fds (GError **error)
+{
+g_autofd int fd1 = open_a_fd (..., error);
+g_autofd int fd2 = -1;
+
+// it is safe to return early here, nothing will be closed
+if (fd1 &lt; 0)
+return FALSE;
+
+fd2 = open_a_fd (..., error);
+
+// fd1 will be closed automatically if we return here
+if (fd2 &lt; 0)
+return FALSE;
+
+// fd1 and fd2 will be closed automatically if we return here
+if (!do_something_useful (fd1, fd2, error))
+return FALSE;
+
+// fd2 will be closed automatically if we return here
+if (!g_clear_fd (&amp;fd1, error))
+return FALSE;
+
+// fd2 will be automatically closed here if still open
+return TRUE;
+}
+]|
+
+Since: 2.76
+
+</description>
+<parameters>
+</parameters>
+<return></return>
+</function>
+
<function name="g_autofree">
<description>
Macro to add an attribute to pointer variable to ensure automatic
@@ -9401,6 +9564,25 @@ Since: 2.12
<return></return>
</function>
+<function name="g_bookmark_file_copy">
+<description>
+Deeply copies a @bookmark #GBookmarkFile object to a new one.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="bookmark">
+<parameter_description> A #GBookmarkFile
+</parameter_description>
+</parameter>
+</parameters>
+<return> the copy of @bookmark. Use
+g_bookmark_free() when finished using it.
+
+</return>
+</function>
+
<function name="g_bookmark_file_free">
<description>
Frees a #GBookmarkFile.
@@ -14547,6 +14729,73 @@ calls g_error_free() on *@err and sets *@err to %NULL.
<return></return>
</function>
+<function name="g_clear_fd">
+<description>
+If @fd_ptr points to a file descriptor, close it and return
+whether closing it was successful, like g_close().
+If @fd_ptr points to a negative number, return %TRUE without closing
+anything.
+In both cases, set @fd_ptr to `-1` before returning.
+
+Like g_close(), if closing the file descriptor fails, the error is
+stored in both %errno and @error. If this function succeeds,
+%errno is undefined.
+
+This function is async-signal-safe if @error is %NULL and @fd_ptr
+points to either a negative number or a valid file descriptor.
+
+It is a programming error for @fd_ptr to point to a non-negative
+number that is not a valid file descriptor.
+
+A typical use of this function is to clean up a file descriptor at
+the end of its scope, whether it has been set successfully or not:
+
+|[
+gboolean
+operate_on_fd (GError **error)
+{
+gboolean ret = FALSE;
+int fd = -1;
+
+fd = open_a_fd (error);
+
+if (fd &lt; 0)
+goto out;
+
+if (!do_something (fd, error))
+goto out;
+
+if (!g_clear_fd (&amp;fd, error))
+goto out;
+
+ret = TRUE;
+
+out:
+// OK to call even if fd was never opened or was already closed
+g_clear_fd (&amp;fd, NULL);
+return ret;
+}
+]|
+
+This function is also useful in conjunction with #g_autofd.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="fd_ptr">
+<parameter_description> a pointer to a file descriptor
+</parameter_description>
+</parameter>
+<parameter name="error">
+<parameter_description> Used to return an error on failure
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE on success
+</return>
+</function>
+
<function name="g_clear_handle_id">
<description>
Clears a numeric handler, such as a #GSource ID.
@@ -14645,8 +14894,8 @@ Since: 2.34
</description>
<parameters>
<parameter name="pp">
-<parameter_description> a pointer to a variable, struct member etc. holding a
-pointer
+<parameter_description> a pointer to a
+variable, struct member etc. holding a pointer
</parameter_description>
</parameter>
<parameter name="destroy">
@@ -14735,14 +14984,20 @@ Since: 2.56
<function name="g_close">
<description>
-This wraps the close() call; in case of error, %errno will be
+This wraps the close() call. In case of error, %errno will be
preserved, but the error will also be stored as a #GError in @error.
+In case of success, %errno is undefined.
Besides using #GError, there is another major reason to prefer this
function over the call provided by the system; on Unix, it will
attempt to correctly handle %EINTR, which has platform-specific
semantics.
+It is a bug to call this function with an invalid file descriptor.
+
+Since 2.76, this function is guaranteed to be async-signal-safe if (and only
+if) @error is %NULL and @fd is a valid open file descriptor.
+
Since: 2.36
</description>
@@ -20447,9 +20702,28 @@ close(). In case of errors, -1 is returned and @error will be set.
<function name="g_file_read_link">
<description>
Reads the contents of the symbolic link @filename like the POSIX
-readlink() function. The returned string is in the encoding used
+readlink() function.
+
+The returned string is in the encoding used
for filenames. Use g_filename_to_utf8() to convert it to UTF-8.
+The returned string may also be a relative path. Use g_build_filename() to
+convert it to an absolute path:
+|[
+g_autoptr(GError) local_error = NULL;
+g_autofree gchar *link_target = g_file_read_link (&quot;/etc/localtime&quot;, &amp;local_error);
+
+if (local_error != NULL)
+g_error (&quot;Error reading link: %s&quot;, local_error-&gt;message);
+
+if (!g_path_is_absolute (link_target))
+{
+g_autofree gchar *absolute_link_target = g_build_filename (&quot;/etc&quot;, link_target, NULL);
+g_free (link_target);
+link_target = g_steal_pointer (&amp;absolute_link_target);
+}
+]|
+
Since: 2.4
</description>
@@ -20890,6 +21164,46 @@ errors. Any of the errors in #GConvertError may occur.
</return>
</function>
+<function name="g_find_program_for_path">
+<description>
+Locates the first executable named @program in @path, in the
+same way that execvp() would locate it. Returns an allocated string
+with the absolute path name (taking in account the @working_dir), or
+%NULL if the program is not found in @path. If @program is already an
+absolute path, returns a copy of @program if @program exists and is
+executable, and %NULL otherwise.
+
+On Windows, if @path is %NULL, it looks for the file in the same way as
+CreateProcess() would. This means first in the directory where the
+executing program was loaded from, then in the current directory, then in
+the Windows 32-bit system directory, then in the Windows directory, and
+finally in the directories in the `PATH` environment variable. If
+the program is found, the return value contains the full name
+including the type suffix.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="program">
+<parameter_description> a program name in the GLib file name encoding
+</parameter_description>
+</parameter>
+<parameter name="path">
+<parameter_description> the current dir where to search program
+</parameter_description>
+</parameter>
+<parameter name="working_dir">
+<parameter_description> the working dir where to search
+program
+</parameter_description>
+</parameter>
+</parameters>
+<return> a newly-allocated
+string with the absolute path, or %NULL
+</return>
+</function>
+
<function name="g_find_program_in_path">
<description>
Locates the first executable named @program in the user's path, in the
@@ -22393,6 +22707,32 @@ Since: 2.40
</return>
</function>
+<function name="g_hash_table_get_keys_as_ptr_array">
+<description>
+Retrieves every key inside @hash_table, as a #GPtrArray.
+The returned data is valid until changes to the hash release those keys.
+
+This iterates over every entry in the hash table to build its return value.
+To iterate over the entries in a #GHashTable more efficiently, use a
+#GHashTableIter.
+
+You should always unref the returned array with g_ptr_array_unref().
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="hash_table">
+<parameter_description> a #GHashTable
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GPtrArray containing each key from
+the table. Unref with with g_ptr_array_unref() when done.
+
+</return>
+</function>
+
<function name="g_hash_table_get_values">
<description>
Retrieves every value inside @hash_table. The returned data
@@ -22419,6 +22759,32 @@ when done using the list.
</return>
</function>
+<function name="g_hash_table_get_values_as_ptr_array">
+<description>
+Retrieves every value inside @hash_table, as a #GPtrArray.
+The returned data is valid until changes to the hash release those values.
+
+This iterates over every entry in the hash table to build its return value.
+To iterate over the entries in a #GHashTable more efficiently, use a
+#GHashTableIter.
+
+You should always unref the returned array with g_ptr_array_unref().
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="hash_table">
+<parameter_description> a #GHashTable
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GPtrArray containing each value from
+the table. Unref with with g_ptr_array_unref() when done.
+
+</return>
+</function>
+
<function name="g_hash_table_insert">
<description>
Inserts a new key and value into a #GHashTable.
@@ -22927,6 +23293,50 @@ Since: 2.12
<return></return>
</function>
+<function name="g_hash_table_steal_all_keys">
+<description>
+Removes all keys and their associated values from a #GHashTable
+without calling the key destroy functions, returning the keys
+as a #GPtrArray with the free func set to the @hash_table key
+destroy function.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="hash_table">
+<parameter_description> a #GHashTable
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GPtrArray containing each key of
+the table. Unref with with g_ptr_array_unref() when done.
+
+</return>
+</function>
+
+<function name="g_hash_table_steal_all_values">
+<description>
+Removes all keys and their associated values from a #GHashTable
+without calling the value destroy functions, returning the values
+as a #GPtrArray with the free func set to the @hash_table value
+destroy function.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="hash_table">
+<parameter_description> a #GHashTable
+</parameter_description>
+</parameter>
+</parameters>
+<return> a #GPtrArray containing each value of
+the table. Unref with with g_ptr_array_unref() when done.
+
+</return>
+</function>
+
<function name="g_hash_table_steal_extended">
<description>
Looks up a key in the #GHashTable, stealing the original key and the
@@ -22935,11 +23345,17 @@ not found, %FALSE is returned.
If found, the stolen key and value are removed from the hash table without
calling the key and value destroy functions, and ownership is transferred to
-the caller of this method; as with g_hash_table_steal().
+the caller of this method, as with g_hash_table_steal(). That is the case
+regardless whether @stolen_key or @stolen_value output parameters are
+requested.
You can pass %NULL for @lookup_key, provided the hash and equal functions
of @hash_table are %NULL-safe.
+The dictionary implementation optimizes for having all values identical to
+their keys, for example by using g_hash_table_add(). When stealing both the
+key and the value from such a dictionary, the value will be %NULL.
+
Since: 2.58
</description>
@@ -28394,6 +28810,12 @@ specification. It is suggested that custom keys are namespaced according to
the code which sets them. For example, custom keys from GLib all have a
`GLIB_` prefix.
+Note that keys that expect UTF-8 strings (specifically `&quot;MESSAGE&quot;` and
+`&quot;GLIB_DOMAIN&quot;`) must be passed as NUL-terminated UTF-8 strings until GLib
+version 2.74.1 because the default log handler did not consider the length of
+the `GLogField`. Starting with GLib 2.74.1 this is fixed and
+non-NUL-terminated UTF-8 strings can be passed with their correct length.
+
The @log_domain will be converted into a `GLIB_DOMAIN` field. @log_level will
be converted into a
[`PRIORITY`](https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html#PRIORITY=)
@@ -31805,6 +32227,8 @@ For example, calling g_module_build_path() on a Linux system with a
`/lib/libmylibrary.so`. On a Windows system, using `\Windows` as the
directory it will return `\Windows\mylibrary.dll`.
+Deprecated: 2.76: Use g_module_open() instead with @module_name as the
+basename of the file_name argument. See %G_MODULE_SUFFIX for why.
</description>
<parameters>
@@ -31821,6 +32245,7 @@ directories will be used, though that is not recommended
</parameters>
<return> the complete path of the module, including the standard library
prefix and suffix. This should be freed when no longer needed
+
</return>
</function>
@@ -31893,8 +32318,8 @@ A thin wrapper function around g_module_open_full()
</description>
<parameters>
<parameter name="file_name">
-<parameter_description> the name of the file containing the module, or %NULL
-to obtain a #GModule representing the main program itself
+<parameter_description> the name or path to the file containing the module,
+or %NULL to obtain a #GModule representing the main program itself
</parameter_description>
</parameter>
<parameter name="flags">
@@ -31909,26 +32334,30 @@ logical OR of any of the #GModuleFlags.
<function name="g_module_open_full">
<description>
-Opens a module. If the module has already been opened,
-its reference count is incremented.
-
-First of all g_module_open_full() tries to open @file_name as a module.
-If that fails and @file_name has the &quot;.la&quot;-suffix (and is a libtool
-archive) it tries to open the corresponding module. If that fails
-and it doesn't have the proper module suffix for the platform
-(%G_MODULE_SUFFIX), this suffix will be appended and the corresponding
-module will be opened. If that fails and @file_name doesn't have the
-&quot;.la&quot;-suffix, this suffix is appended and g_module_open_full() tries to open
-the corresponding module. If eventually that fails as well, %NULL is
-returned.
+Opens a module. If the module has already been opened, its reference count
+is incremented. If not, the module is searched in the following order:
+
+1. If @file_name exists as a regular file, it is used as-is; else
+2. If @file_name doesn't have the correct suffix and/or prefix for the
+platform, then possible suffixes and prefixes will be added to the
+basename till a file is found and whatever is found will be used; else
+3. If @file_name doesn't have the &quot;.la&quot;-suffix, &quot;.la&quot; is appended. Either
+way, if a matching .la file exists (and is a libtool archive) the
+libtool archive is parsed to find the actual file name, and that is
+used.
+
+At the end of all this, we would have a file path that we can access on
+disk, and it is opened as a module. If not, @file_name is opened as
+a module verbatim in the hopes that the system implementation will somehow
+be able to access it.
Since: 2.70
</description>
<parameters>
<parameter name="file_name">
-<parameter_description> the name of the file containing the module, or %NULL
-to obtain a #GModule representing the main program itself
+<parameter_description> the name or path to the file containing the module,
+or %NULL to obtain a #GModule representing the main program itself
</parameter_description>
</parameter>
<parameter name="flags">
@@ -34097,22 +34526,22 @@ private data for the object is guaranteed to be initialized with zeros, as
per g_type_create_instance().
Note that in C, small integer types in variable argument lists are promoted
-up to #gint or #guint as appropriate, and read back accordingly. #gint is 32
-bits on every platform on which GLib is currently supported. This means that
-you can use C expressions of type #gint with g_object_new() and properties of
-type #gint or #guint or smaller. Specifically, you can use integer literals
+up to `gint` or `guint` as appropriate, and read back accordingly. `gint` is
+32 bits on every platform on which GLib is currently supported. This means that
+you can use C expressions of type `gint` with g_object_new() and properties of
+type `gint` or `guint` or smaller. Specifically, you can use integer literals
with these property types.
-When using property types of #gint64 or #guint64, you must ensure that the
+When using property types of `gint64` or `guint64`, you must ensure that the
value that you provide is 64 bit. This means that you should use a cast or
make use of the %G_GINT64_CONSTANT or %G_GUINT64_CONSTANT macros.
-Similarly, #gfloat is promoted to #gdouble, so you must ensure that the value
-you provide is a #gdouble, even for a property of type #gfloat.
+Similarly, `gfloat` is promoted to `gdouble`, so you must ensure that the value
+you provide is a `gdouble`, even for a property of type `gfloat`.
Since GLib 2.72, all #GObjects are guaranteed to be aligned to at least the
-alignment of the largest basic GLib type (typically this is #guint64 or
-#gdouble). If you need larger alignment for an element in a #GObject, you
+alignment of the largest basic GLib type (typically this is `guint64` or
+`gdouble`). If you need larger alignment for an element in a #GObject, you
should allocate it on the heap (aligned), or arrange for your #GObject to be
appropriately padded.
@@ -38772,6 +39201,102 @@ Creates a new #GPtrArray with a reference count of 1.
</return>
</function>
+<function name="g_ptr_array_new_from_array">
+<description>
+Creates a new #GPtrArray, copying @len pointers from @data, and setting
+the array’s reference count to 1.
+
+This avoids having to manually add each element one by one.
+
+If @copy_func is provided, then it is used to copy each element before
+adding them to the new array. If it is %NULL then the pointers are copied
+directly.
+
+It also sets @element_free_func for freeing each element when the array is
+destroyed either via g_ptr_array_unref(), when g_ptr_array_free() is called
+with @free_segment set to %TRUE or when removing elements.
+
+Do not use it if @len is greater than %G_MAXUINT. #GPtrArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array of pointers,
+or %NULL for an empty array
+</parameter_description>
+</parameter>
+<parameter name="len">
+<parameter_description> the number of pointers in @data
+</parameter_description>
+</parameter>
+<parameter name="copy_func">
+<parameter_description> a copy function used to copy every element in the
+array or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="copy_func_user_data">
+<parameter_description> user data passed to @copy_func, or %NULL
+</parameter_description>
+</parameter>
+<parameter name="element_free_func">
+<parameter_description> a function to free elements on @array
+destruction or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GPtrArray
+
+</return>
+</function>
+
+<function name="g_ptr_array_new_from_null_terminated_array">
+<description>
+Creates a new #GPtrArray copying the pointers from @data after having
+computed the length of it and with a reference count of 1.
+This avoids having to manually add each element one by one.
+If @copy_func is provided, then it is used to copy the data in the new
+array.
+It also set @element_free_func for freeing each element when the array is
+destroyed either via g_ptr_array_unref(), when g_ptr_array_free() is called
+with @free_segment set to %TRUE or when removing elements.
+
+Do not use it if the @data has more than %G_MAXUINT elements. #GPtrArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array of
+pointers, %NULL terminated; or %NULL for an empty array
+</parameter_description>
+</parameter>
+<parameter name="copy_func">
+<parameter_description> a copy function used to copy every element in the
+array or %NULL.
+</parameter_description>
+</parameter>
+<parameter name="copy_func_user_data">
+<parameter_description> user data passed to @copy_func, or %NULL
+</parameter_description>
+</parameter>
+<parameter name="element_free_func">
+<parameter_description> a function to free elements on @array
+destruction or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GPtrArray
+
+</return>
+</function>
+
<function name="g_ptr_array_new_full">
<description>
Creates a new #GPtrArray with @reserved_size pointers preallocated
@@ -38845,6 +39370,85 @@ destroy @array or %NULL
</return>
</function>
+<function name="g_ptr_array_new_take">
+<description>
+Creates a new #GPtrArray with @data as pointers, @len as length and a
+reference count of 1.
+
+This avoids having to copy such data manually. @data will eventually be
+freed using g_free(), so must have been allocated with a suitable allocator.
+
+It also sets @element_free_func for freeing each element when the array is
+destroyed either via g_ptr_array_unref(), when g_ptr_array_free() is called
+with @free_segment set to %TRUE or when removing elements.
+
+Do not use it if @len is greater than %G_MAXUINT. #GPtrArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array of pointers,
+or %NULL for an empty array
+</parameter_description>
+</parameter>
+<parameter name="len">
+<parameter_description> the number of pointers in @data
+</parameter_description>
+</parameter>
+<parameter name="element_free_func">
+<parameter_description> A function to free elements on @array
+destruction or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GPtrArray
+
+</return>
+</function>
+
+<function name="g_ptr_array_new_take_null_terminated">
+<description>
+Creates a new #GPtrArray with @data as pointers, computing the length of it
+and setting the reference count to 1.
+
+This avoids having to copy such data manually. @data will eventually be
+freed using g_free(), so must have been allocated with a suitable allocator.
+
+The length is calculated by iterating through @data until the first %NULL
+element is found.
+
+It also sets @element_free_func for freeing each element when the array is
+destroyed either via g_ptr_array_unref(), when g_ptr_array_free() is called
+with @free_segment set to %TRUE or when removing elements.
+
+Do not use it if the @data length is greater than %G_MAXUINT. #GPtrArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="data">
+<parameter_description> an array
+of pointers, %NULL terminated, or %NULL for an empty array
+</parameter_description>
+</parameter>
+<parameter name="element_free_func">
+<parameter_description> a function to free elements on @array
+destruction or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> A new #GPtrArray
+
+</return>
+</function>
+
<function name="g_ptr_array_new_with_free_func">
<description>
Creates a new #GPtrArray with a reference count of 1 and use
@@ -39086,12 +39690,15 @@ the size of the array is still 0.
<description>
Sorts the array, using @compare_func which should be a qsort()-style
comparison function (returns less than zero for first arg is less
-than second arg, zero for equal, greater than zero if irst arg is
+than second arg, zero for equal, greater than zero if first arg is
greater than second arg).
Note that the comparison function for g_ptr_array_sort() doesn't
take the pointers from the array as arguments, it takes pointers to
-the pointers in the array. Here is a full example of usage:
+the pointers in the array.
+
+Use g_ptr_array_sort_with_data() if you want to use normal
+#GCompareFuncs, otherwise here is a full example of use:
|[&lt;!-- language=&quot;C&quot; --&gt;
typedef struct
@@ -39134,6 +39741,58 @@ This is guaranteed to be a stable sort since version 2.32.
<return></return>
</function>
+<function name="g_ptr_array_sort_values">
+<description>
+Sorts the array, using @compare_func which should be a qsort()-style
+comparison function (returns less than zero for first arg is less
+than second arg, zero for equal, greater than zero if first arg is
+greater than second arg).
+
+This is guaranteed to be a stable sort.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="array">
+<parameter_description> a #GPtrArray
+</parameter_description>
+</parameter>
+<parameter name="compare_func">
+<parameter_description> a #GCompareFunc comparison function
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
+<function name="g_ptr_array_sort_values_with_data">
+<description>
+Like g_ptr_array_sort_values(), but the comparison function has an extra
+user data argument.
+
+This is guaranteed to be a stable sort.
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="array">
+<parameter_description> a #GPtrArray
+</parameter_description>
+</parameter>
+<parameter name="compare_func">
+<parameter_description> a #GCompareDataFunc comparison function
+</parameter_description>
+</parameter>
+<parameter name="user_data">
+<parameter_description> data to pass to @compare_func
+</parameter_description>
+</parameter>
+</parameters>
+<return></return>
+</function>
+
<function name="g_ptr_array_sort_with_data">
<description>
Like g_ptr_array_sort(), but the comparison function has an extra
@@ -39141,7 +39800,10 @@ user data argument.
Note that the comparison function for g_ptr_array_sort_with_data()
doesn't take the pointers from the array as arguments, it takes
-pointers to the pointers in the array. Here is a full example of use:
+pointers to the pointers in the array.
+
+Use g_ptr_array_sort_with_data() if you want to use normal
+#GCompareDataFuncs, otherwise here is a full example of use:
|[&lt;!-- language=&quot;C&quot; --&gt;
typedef enum { SORT_NAME, SORT_SIZE } SortMode;
@@ -44953,6 +45615,44 @@ example.
</return>
</function>
+<function name="g_set_str">
+<description>
+Updates a pointer to a string to a copy of @new_str. The previous string
+pointed to by @str_pointer will be freed with g_free().
+
+@str_pointer must not be %NULL, but can point to a %NULL value.
+
+One convenient usage of this function is in implementing property settings:
+|[
+void
+foo_set_bar (Foo *foo,
+const char *new_bar)
+{
+g_return_if_fail (IS_FOO (foo));
+
+if (g_set_str (&amp;foo-&gt;bar, new_bar))
+g_object_notify (foo, &quot;bar&quot;);
+}
+]|
+
+Since: 2.76
+
+</description>
+<parameters>
+<parameter name="str_pointer">
+<parameter_description> a pointer to either a string or %NULL
+</parameter_description>
+</parameter>
+<parameter name="new_str">
+<parameter_description> a string to assign to @str_pointer, or %NULL
+</parameter_description>
+</parameter>
+</parameters>
+<return> %TRUE if the value of @str_pointer changed, %FALSE otherwise
+
+</return>
+</function>
+
<function name="g_set_weak_pointer">
<description>
Updates a pointer to weakly refer to @new_object.
@@ -45389,6 +46089,9 @@ The handler will be called synchronously, after the default handler of the signa
<description>
Connects a closure to a signal for a particular object.
+If @closure is a floating reference (see g_closure_sink()), this function
+takes ownership of @closure.
+
</description>
<parameters>
@@ -45418,6 +46121,9 @@ default handler of the signal.
<description>
Connects a closure to a signal for a particular object.
+If @closure is a floating reference (see g_closure_sink()), this function
+takes ownership of @closure.
+
</description>
<parameters>
@@ -50742,10 +51448,10 @@ Since: 2.44
<function name="g_stpcpy">
<description>
-Copies a nul-terminated string into the dest buffer, include the
-trailing nul, and return a pointer to the trailing nul byte.
-This is useful for concatenating multiple strings together
-without having to repeatedly scan for the end.
+Copies a nul-terminated string into the destination buffer, including
+the trailing nul byte, and returns a pointer to the trailing nul byte
+in `dest`. The return value is useful for concatenating multiple
+strings without having to repeatedly scan for the end.
</description>
@@ -50759,7 +51465,7 @@ without having to repeatedly scan for the end.
</parameter_description>
</parameter>
</parameters>
-<return> a pointer to trailing nul byte.
+<return> a pointer to the trailing nul byte in `dest`.
</return>
</function>
@@ -53780,6 +54486,8 @@ e.g. g_test_add() when the test was added.
This function returns a valid string only within a test function.
+Note that this is a test path, not a file system path.
+
Since: 2.68
</description>
@@ -65102,7 +65810,13 @@ This function is an identity mapping on any value that does not
contain multi-byte numeric data. That include strings, booleans,
bytes and containers containing only these things (recursively).
+While this function can safely handle untrusted, non-normal data, it is
+recommended to check whether the input is in normal form beforehand, using
+g_variant_is_normal_form(), and to reject non-normal inputs if your
+application can be strict about what inputs it rejects.
+
The returned value is always in normal form and is marked as trusted.
+A full, not floating, reference is returned.
Since: 2.24
@@ -66208,7 +66922,9 @@ is in normal form. If it is found to be in normal form then it is
marked as trusted and a new reference to it is returned.
If @value is found not to be in normal form then a new trusted
-#GVariant is created with the same value as @value.
+#GVariant is created with the same value as @value. The non-normal parts of
+@value will be replaced with default values which are guaranteed to be in
+normal form.
It makes sense to call this function if you've received #GVariant
data from untrusted sources and you want to ensure your serialized
@@ -67116,6 +67832,41 @@ Since: 2.28
</return>
</function>
+<function name="g_variant_maybe_get_child_value">
+<description>
+Reads a child item out of a container #GVariant instance, if it is in normal
+form. If it is not in normal form, return %NULL.
+
+This function behaves the same as g_variant_get_child_value(), except that it
+returns %NULL if the child is not in normal form. g_variant_get_child_value()
+would instead return a new default value of the correct type.
+
+This is intended to be used internally to avoid unnecessary #GVariant
+allocations.
+
+The returned value is never floating. You should free it with
+g_variant_unref() when you're done with it.
+
+This function is O(1).
+
+Since: 2.74
+
+</description>
+<parameters>
+<parameter name="value">
+<parameter_description> a container #GVariant
+</parameter_description>
+</parameter>
+<parameter name="index_">
+<parameter_description> the index of the child to fetch
+</parameter_description>
+</parameter>
+</parameters>
+<return> the child at the specified index
+
+</return>
+</function>
+
<function name="g_variant_n_children">
<description>
Determines the number of children in a container #GVariant instance.
@@ -70045,7 +70796,10 @@ contain any value represented by a #gint. This is why the use of `if
<function name="gchar">
<description>
-Corresponds to the standard C char type.
+Equivalent to the standard C `char` type.
+
+This type only exists for symmetry with `guchar`.
+The standard C `char` type should be preferred in new code.
</description>
<parameters>
@@ -70065,12 +70819,17 @@ A C representable type name for %G_TYPE_STRING.
<function name="gconstpointer">
<description>
-An untyped pointer to constant data.
+An untyped pointer to constant data, exactly equivalent to `const void *`.
+
The data pointed to should not be changed.
This is typically used in function prototypes to indicate
that the data pointed to will not be altered by the function.
+The standard C `const void *` type should usually be preferred in
+new code, but `gconstpointer` can be used in contexts where a type name
+must be a single word.
+
</description>
<parameters>
</parameters>
@@ -70079,8 +70838,10 @@ that the data pointed to will not be altered by the function.
<function name="gdouble">
<description>
-Corresponds to the standard C double type.
-Values of this type can range from -%G_MAXDOUBLE to %G_MAXDOUBLE.
+Equivalent to the standard C `double` type.
+
+Values of this type can range from `-DBL_MAX` to `DBL_MAX`,
+or equivalently from -%G_MAXDOUBLE to %G_MAXDOUBLE.
</description>
<parameters>
@@ -70090,8 +70851,10 @@ Values of this type can range from -%G_MAXDOUBLE to %G_MAXDOUBLE.
<function name="gfloat">
<description>
-Corresponds to the standard C float type.
-Values of this type can range from -%G_MAXFLOAT to %G_MAXFLOAT.
+Equivalent to the standard C `float` type.
+
+Values of this type can range from `-FLT_MAX` to `FLT_MAX`,
+or equivalently from -%G_MAXFLOAT to %G_MAXFLOAT.
</description>
<parameters>
@@ -70101,8 +70864,13 @@ Values of this type can range from -%G_MAXFLOAT to %G_MAXFLOAT.
<function name="gint">
<description>
-Corresponds to the standard C int type.
-Values of this type can range from %G_MININT to %G_MAXINT.
+Equivalent to the standard C `int` type.
+
+Values of this type can range from `INT_MIN` to `INT_MAX`,
+or equivalently from %G_MININT to %G_MAXINT.
+
+This type only exists for symmetry with `guint`.
+The standard C `int` type should be preferred in new code.
</description>
<parameters>
@@ -70112,7 +70880,13 @@ Values of this type can range from %G_MININT to %G_MAXINT.
<function name="gint16">
<description>
-A signed integer guaranteed to be 16 bits on all platforms.
+A signed integer guaranteed to be 16 bits on all platforms,
+similar to the standard C `int16_t`.
+
+The `int16_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `gint16`
+(see #gsize for more details).
+
Values of this type can range from %G_MININT16 (= -32,768) to
%G_MAXINT16 (= 32,767).
@@ -70128,12 +70902,25 @@ To print or scan values of this type, use
<function name="gint32">
<description>
A signed integer guaranteed to be 32 bits on all platforms.
+
+The `int32_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `gint16`
+(see #gsize for more details).
+
Values of this type can range from %G_MININT32 (= -2,147,483,648)
to %G_MAXINT32 (= 2,147,483,647).
To print or scan values of this type, use
%G_GINT32_MODIFIER and/or %G_GINT32_FORMAT.
+Note that on platforms with more than one 32-bit standard integer type,
+`gint32` and `int32_t` are not necessarily implemented by the same
+32-bit integer type.
+For example, on an ILP32 platform where `int` and `long` are both 32-bit,
+it might be the case that one of these types is `int` and the other
+is `long`.
+See #gsize for more details of what this implies.
+
</description>
<parameters>
</parameters>
@@ -70142,7 +70929,13 @@ To print or scan values of this type, use
<function name="gint64">
<description>
-A signed integer guaranteed to be 64 bits on all platforms.
+A signed integer guaranteed to be 64 bits on all platforms,
+similar to the standard C `int64_t`.
+
+The `int64_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `gint64`
+(see #gsize for more details).
+
Values of this type can range from %G_MININT64
(= -9,223,372,036,854,775,808) to %G_MAXINT64
(= 9,223,372,036,854,775,807).
@@ -70150,6 +70943,14 @@ Values of this type can range from %G_MININT64
To print or scan values of this type, use
%G_GINT64_MODIFIER and/or %G_GINT64_FORMAT.
+Note that on platforms with more than one 64-bit standard integer type,
+`gint64` and `int64_t` are not necessarily implemented by the same
+64-bit integer type.
+For example, on a platform where both `long` and `long long` are 64-bit,
+it might be the case that one of those types is used for `gint64`
+and the other is used for `int64_t`.
+See #gsize for more details of what this implies.
+
</description>
<parameters>
</parameters>
@@ -70158,7 +70959,13 @@ To print or scan values of this type, use
<function name="gint8">
<description>
-A signed integer guaranteed to be 8 bits on all platforms.
+A signed integer guaranteed to be 8 bits on all platforms,
+similar to the standard C `int8_t`.
+
+The `int8_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `gint8`
+(see #gsize for more details).
+
Values of this type can range from %G_MININT8 (= -128) to
%G_MAXINT8 (= 127).
@@ -70173,6 +70980,14 @@ Values of this type can range from %G_MININT8 (= -128) to
Corresponds to the C99 type intptr_t,
a signed integer type that can hold any pointer.
+The standard `intptr_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires `gintptr`.
+Note that `intptr_t` and `gintptr` might be implemented by different
+standard integer types of the same size. See #gsize for more details.
+
+#gintptr is not guaranteed to be the same type or the same size as #gssize,
+even though they are the same on many CPU architectures.
+
To print or scan values of this type, use
%G_GINTPTR_MODIFIER and/or %G_GINTPTR_FORMAT.
@@ -70368,8 +71183,13 @@ by a \004 character
<function name="glong">
<description>
-Corresponds to the standard C long type.
-Values of this type can range from %G_MINLONG to %G_MAXLONG.
+Equivalent to the standard C `long` type.
+
+Values of this type can range from `LONG_MIN` to `LONG_MAX`,
+or equivalently %G_MINLONG to %G_MAXLONG.
+
+This type only exists for symmetry with `gulong`.
+The standard C `long` type should be preferred in new code.
</description>
<parameters>
@@ -70382,13 +71202,18 @@ Values of this type can range from %G_MINLONG to %G_MAXLONG.
A signed integer type that is used for file offsets,
corresponding to the POSIX type `off_t` as if compiling with
`_FILE_OFFSET_BITS` set to 64. #goffset is always 64 bits wide, even on
-32-bit architectures.
+32-bit architectures, and even if `off_t` is only 32 bits.
Values of this type can range from %G_MINOFFSET to
%G_MAXOFFSET.
To print or scan values of this type, use
%G_GOFFSET_MODIFIER and/or %G_GOFFSET_FORMAT.
+On platforms with more than one 64-bit standard integer type,
+even if `off_t` is also 64 bits in size, `goffset` and `off_t` are not
+necessarily implemented by the same 64-bit integer type.
+See #gsize for more details of what this implies.
+
Since: 2.14
</description>
@@ -70399,8 +71224,13 @@ Since: 2.14
<function name="gpointer">
<description>
-An untyped pointer.
-#gpointer looks better and is easier to use than void*.
+An untyped pointer, exactly equivalent to `void *`.
+
+The standard C `void *` type should usually be preferred in
+new code, but `gpointer` can be used in contexts where a type name
+must be a single word, such as in the g_type_name() of %G_TYPE_POINTER
+or when generating a family of function names for multiple types
+using macros.
</description>
<parameters>
@@ -70432,8 +71262,13 @@ Since: 2.58
<function name="gshort">
<description>
-Corresponds to the standard C short type.
-Values of this type can range from %G_MINSHORT to %G_MAXSHORT.
+Equivalent to the standard C `short` type.
+
+Values of this type can range from `SHRT_MIN` to `SHRT_MAX`,
+or equivalently %G_MINSHORT to %G_MAXSHORT.
+
+This type only exists for symmetry with `gushort`.
+The standard C `short` type should be preferred in new code.
</description>
<parameters>
@@ -70443,16 +71278,50 @@ Values of this type can range from %G_MINSHORT to %G_MAXSHORT.
<function name="gsize">
<description>
-An unsigned integer type of the result of the sizeof operator,
-corresponding to the size_t type defined in C99.
-This type is wide enough to hold the numeric value of a pointer,
-so it is usually 32 bit wide on a 32-bit platform and 64 bit wide
+An unsigned integer type of the result of the `sizeof` operator,
+corresponding to the `size_t` type defined in C99.
+
+The standard `size_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires `gsize`
+(see below for more details).
+
+`gsize` is usually 32 bit wide on a 32-bit platform and 64 bit wide
on a 64-bit platform. Values of this type can range from 0 to
%G_MAXSIZE.
+This type is wide enough to hold the size of the largest possible
+memory allocation, but is not guaranteed to be wide enough to hold
+the numeric value of a pointer: on platforms that use tagged pointers,
+such as [CHERI](https://cheri-cpu.org/), pointers can be numerically
+larger than the size of the address space.
+If the numeric value of a pointer needs to be stored in an integer
+without information loss, use the standard C types `intptr_t` or
+`uintptr_t`, or the similar GLib types #gintptr or #guintptr.
+
To print or scan values of this type, use
%G_GSIZE_MODIFIER and/or %G_GSIZE_FORMAT.
+Note that on platforms where more than one standard integer type is
+the same size, `size_t` and `gsize` are always the same size but are
+not necessarily implemented by the same standard integer type.
+For example, on an ILP32 platform where `int`, `long` and pointers
+are all 32-bit, `size_t` might be `unsigned long` while `gsize`
+might be `unsigned int`.
+This can result in compiler warnings or unexpected C++ name-mangling
+if the two types are used inconsistently.
+
+As a result, changing a type from `gsize` to `size_t` in existing APIs
+might be an incompatible API or ABI change, especially if C++
+is involved. The safe option is to leave existing APIs using the same type
+that they have historically used, and only use the standard C types in
+new APIs.
+
+Similar considerations apply to all the fixed-size types
+(#gint8, #guint8, #gint16, #guint16, #gint32, #guint32, #gint64,
+#guint64 and #goffset), as well as #gintptr and #guintptr.
+Types that are 32 bits or larger are particularly likely to be
+affected by this.
+
</description>
<parameters>
</parameters>
@@ -70462,10 +71331,23 @@ To print or scan values of this type, use
<function name="gssize">
<description>
A signed variant of #gsize, corresponding to the
-ssize_t defined on most platforms.
+`ssize_t` defined in POSIX or the similar `SSIZE_T` in Windows.
+
+In new platform-specific code, consider using `ssize_t` or `SSIZE_T`
+directly.
+
Values of this type can range from %G_MINSSIZE
to %G_MAXSSIZE.
+Note that on platforms where `ssize_t` is implemented, `ssize_t` and
+`gssize` might be implemented by different standard integer types
+of the same size. Similarly, on Windows, `SSIZE_T` and `gssize`
+might be implemented by different standard integer types of the same
+size. See #gsize for more details.
+
+This type is also not guaranteed to be the same as standard C
+`ptrdiff_t`, although they are the same on many platforms.
+
To print or scan values of this type, use
%G_GSSIZE_MODIFIER and/or %G_GSSIZE_FORMAT.
@@ -70477,7 +71359,13 @@ To print or scan values of this type, use
<function name="guchar">
<description>
-Corresponds to the standard C unsigned char type.
+Equivalent to the standard C `unsigned char` type.
+
+The standard C `unsigned char` type should usually be preferred in
+new code, but `guchar` can be used in contexts where a type name
+must be a single word, such as in the g_type_name() of %G_TYPE_UCHAR
+or when generating a family of function names for multiple types
+using macros.
</description>
<parameters>
@@ -70487,8 +71375,16 @@ Corresponds to the standard C unsigned char type.
<function name="guint">
<description>
-Corresponds to the standard C unsigned int type.
-Values of this type can range from 0 to %G_MAXUINT.
+Equivalent to the standard C `unsigned int` type.
+
+Values of this type can range from 0 to `UINT_MAX`,
+or equivalently 0 to %G_MAXUINT.
+
+The standard C `unsigned int` type should usually be preferred in
+new code, but `guint` can be used in contexts where a type name
+must be a single word, such as in the g_type_name() of %G_TYPE_UINT
+or when generating a family of function names for multiple types
+using macros.
</description>
<parameters>
@@ -70498,7 +71394,13 @@ Values of this type can range from 0 to %G_MAXUINT.
<function name="guint16">
<description>
-An unsigned integer guaranteed to be 16 bits on all platforms.
+An unsigned integer guaranteed to be 16 bits on all platforms,
+similar to the standard C `uint16_t`.
+
+The `uint16_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `guint16`
+(see #gsize for more details).
+
Values of this type can range from 0 to %G_MAXUINT16 (= 65,535).
To print or scan values of this type, use
@@ -70512,12 +71414,23 @@ To print or scan values of this type, use
<function name="guint32">
<description>
-An unsigned integer guaranteed to be 32 bits on all platforms.
+An unsigned integer guaranteed to be 32 bits on all platforms,
+similar to the standard C `uint32_t`.
+
+The `uint32_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `guint32`
+(see #gsize for more details).
+
Values of this type can range from 0 to %G_MAXUINT32 (= 4,294,967,295).
To print or scan values of this type, use
%G_GINT32_MODIFIER and/or %G_GUINT32_FORMAT.
+Note that on platforms with more than one 32-bit standard integer type,
+`guint32` and `uint32_t` are not necessarily implemented by the same
+32-bit integer type.
+See #gsize for more details of what this implies.
+
</description>
<parameters>
</parameters>
@@ -70526,13 +71439,24 @@ To print or scan values of this type, use
<function name="guint64">
<description>
-An unsigned integer guaranteed to be 64-bits on all platforms.
+An unsigned integer guaranteed to be 64-bits on all platforms,
+similar to the standard C `uint64_t` type.
+
+The `uint64_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `guint64`
+(see #gsize for more details).
+
Values of this type can range from 0 to %G_MAXUINT64
(= 18,446,744,073,709,551,615).
To print or scan values of this type, use
%G_GINT64_MODIFIER and/or %G_GUINT64_FORMAT.
+Note that on platforms with more than one 64-bit standard integer type,
+`guint64` and `uint64_t` are not necessarily implemented by the same
+64-bit integer type.
+See #gsize for more details of what this implies.
+
</description>
<parameters>
</parameters>
@@ -70541,7 +71465,13 @@ To print or scan values of this type, use
<function name="guint8">
<description>
-An unsigned integer guaranteed to be 8 bits on all platforms.
+An unsigned integer guaranteed to be 8 bits on all platforms,
+similar to the standard C `uint8_t`.
+
+The `uint8_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires use of `guint8`
+(see #gsize for more details).
+
Values of this type can range from 0 to %G_MAXUINT8 (= 255).
</description>
@@ -70555,6 +71485,14 @@ Values of this type can range from 0 to %G_MAXUINT8 (= 255).
Corresponds to the C99 type uintptr_t,
an unsigned integer type that can hold any pointer.
+The standard `uintptr_t` type should be preferred in new code, unless
+consistency with pre-existing APIs requires `guintptr`.
+Note that `uintptr_t` and `guintptr` might be implemented by different
+standard integer types of the same size. See #gsize for more details.
+
+#guintptr is not guaranteed to be the same type or the same size as #gsize,
+even though they are the same on many CPU architectures.
+
To print or scan values of this type, use
%G_GINTPTR_MODIFIER and/or %G_GUINTPTR_FORMAT.
@@ -70568,9 +71506,16 @@ Since: 2.18
<function name="gulong">
<description>
-Corresponds to the standard C unsigned long type.
+Equivalent to the standard C `unsigned long` type.
+
Values of this type can range from 0 to %G_MAXULONG.
+The standard C `unsigned long` type should usually be preferred in
+new code, but `gulong` can be used in contexts where a type name
+must be a single word, such as in the g_type_name() of %G_TYPE_ULONG
+or when generating a family of function names for multiple types
+using macros.
+
</description>
<parameters>
</parameters>
@@ -70632,8 +71577,15 @@ To print/scan values of this type as integer, use
<function name="gushort">
<description>
-Corresponds to the standard C unsigned short type.
-Values of this type can range from 0 to %G_MAXUSHORT.
+Equivalent to the standard C `unsigned short` type.
+
+Values of this type can range from 0 to `USHRT_MAX`,
+or equivalently from 0 to %G_MAXUSHORT.
+
+The standard C `unsigned short` type should usually be preferred in
+new code, but `gushort` can be used in contexts where a type name
+must be a single word, such as when generating a family of function
+names for multiple types using macros.
</description>
<parameters>
diff --git a/glib/src/glib_enums.defs b/glib/src/glib_enums.defs
index ba26cec2..1fe1cd11 100644
--- a/glib/src/glib_enums.defs
+++ b/glib/src/glib_enums.defs
@@ -1863,6 +1863,10 @@
;;
;; /* not really a Unicode script, but part of ISO 15924 */
;; G_UNICODE_SCRIPT_MATH, /* Zmth */
+;;
+;; /* Unicode 15.0 additions */
+;; G_UNICODE_SCRIPT_KAWI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Kawi */
+;; G_UNICODE_SCRIPT_NAG_MUNDARI GLIB_AVAILABLE_ENUMERATOR_IN_2_74, /* Nag Mundari */
;; } GUnicodeScript;
(define-enum-extended UnicodeScript
@@ -2033,6 +2037,8 @@
'("toto" "G_UNICODE_SCRIPT_TOTO" "160")
'("vithkuqi" "G_UNICODE_SCRIPT_VITHKUQI" "161")
'("math" "G_UNICODE_SCRIPT_MATH" "162")
+ '("kawi" "G_UNICODE_SCRIPT_KAWI" "163")
+ '("nag-mundari" "G_UNICODE_SCRIPT_NAG_MUNDARI" "164")
)
)
diff --git a/glib/src/glib_functions.defs b/glib/src/glib_functions.defs
index 6798d66a..5408dad5 100644
--- a/glib/src/glib_functions.defs
+++ b/glib/src/glib_functions.defs
@@ -1024,6 +1024,8 @@
'("toto" "G_UNICODE_SCRIPT_TOTO")
'("vithkuqi" "G_UNICODE_SCRIPT_VITHKUQI")
'("math" "G_UNICODE_SCRIPT_MATH")
+ '("kawi" "G_UNICODE_SCRIPT_KAWI")
+ '("nag-mundari" "G_UNICODE_SCRIPT_NAG_MUNDARI")
)
)
@@ -1226,6 +1228,27 @@
)
)
+(define-function g_array_new_take
+ (c-name "g_array_new_take")
+ (return-type "GArray*")
+ (parameters
+ '("gpointer" "data")
+ '("gsize" "len")
+ '("gboolean" "clear")
+ '("gsize" "element_size")
+ )
+)
+
+(define-function g_array_new_take_zero_terminated
+ (c-name "g_array_new_take_zero_terminated")
+ (return-type "GArray*")
+ (parameters
+ '("gpointer" "data")
+ '("gboolean" "clear")
+ '("gsize" "element_size")
+ )
+)
+
(define-method steal
(of-object "GArray")
(c-name "g_array_steal")
@@ -1401,6 +1424,28 @@
)
)
+(define-function g_ptr_array_new_take
+ (c-name "g_ptr_array_new_take")
+ (return-type "GPtrArray*")
+ (parameters
+ '("gpointer*" "data")
+ '("gsize" "len")
+ '("GDestroyNotify" "element_free_func")
+ )
+)
+
+(define-function g_ptr_array_new_from_array
+ (c-name "g_ptr_array_new_from_array")
+ (return-type "GPtrArray*")
+ (parameters
+ '("gpointer*" "data")
+ '("gsize" "len")
+ '("GCopyFunc" "copy_func")
+ '("gpointer" "copy_func_user_data")
+ '("GDestroyNotify" "element_free_func")
+ )
+)
+
(define-method steal
(of-object "GPtrArray")
(c-name "g_ptr_array_steal")
@@ -1448,6 +1493,26 @@
)
)
+(define-function g_ptr_array_new_take_null_terminated
+ (c-name "g_ptr_array_new_take_null_terminated")
+ (return-type "GPtrArray*")
+ (parameters
+ '("gpointer*" "data")
+ '("GDestroyNotify" "element_free_func")
+ )
+)
+
+(define-function g_ptr_array_new_from_null_terminated_array
+ (c-name "g_ptr_array_new_from_null_terminated_array")
+ (return-type "GPtrArray*")
+ (parameters
+ '("gpointer*" "data")
+ '("GCopyFunc" "copy_func")
+ '("gpointer" "copy_func_user_data")
+ '("GDestroyNotify" "element_free_func")
+ )
+)
+
(define-method free
(of-object "GPtrArray")
(c-name "g_ptr_array_free")
@@ -1609,6 +1674,25 @@
)
)
+(define-method sort_values
+ (of-object "GPtrArray")
+ (c-name "g_ptr_array_sort_values")
+ (return-type "none")
+ (parameters
+ '("GCompareFunc" "compare_func")
+ )
+)
+
+(define-method sort_values_with_data
+ (of-object "GPtrArray")
+ (c-name "g_ptr_array_sort_values_with_data")
+ (return-type "none")
+ (parameters
+ '("GCompareDataFunc" "compare_func")
+ '("gpointer" "user_data")
+ )
+)
+
(define-method foreach
(of-object "GPtrArray")
(c-name "g_ptr_array_foreach")
@@ -2365,6 +2449,12 @@
(return-type "none")
)
+(define-method copy
+ (of-object "GBookmarkFile")
+ (c-name "g_bookmark_file_copy")
+ (return-type "GBookmarkFile*")
+)
+
(define-method load_from_file
(of-object "GBookmarkFile")
(c-name "g_bookmark_file_load_from_file")
@@ -5007,6 +5097,18 @@
(return-type "none")
)
+(define-method steal_all_keys
+ (of-object "GHashTable")
+ (c-name "g_hash_table_steal_all_keys")
+ (return-type "GPtrArray*")
+)
+
+(define-method steal_all_values
+ (of-object "GHashTable")
+ (c-name "g_hash_table_steal_all_values")
+ (return-type "GPtrArray*")
+)
+
(define-method lookup
(of-object "GHashTable")
(c-name "g_hash_table_lookup")
@@ -5103,6 +5205,18 @@
)
)
+(define-method get_keys_as_ptr_array
+ (of-object "GHashTable")
+ (c-name "g_hash_table_get_keys_as_ptr_array")
+ (return-type "GPtrArray*")
+)
+
+(define-method get_values_as_ptr_array
+ (of-object "GHashTable")
+ (c-name "g_hash_table_get_values_as_ptr_array")
+ (return-type "GPtrArray*")
+)
+
(define-method init
(of-object "GHashTableIter")
(c-name "g_hash_table_iter_init")
@@ -11697,24 +11811,6 @@
)
)
-(define-function g_str_has_suffix
- (c-name "g_str_has_suffix")
- (return-type "gboolean")
- (parameters
- '("const-gchar*" "str")
- '("const-gchar*" "suffix")
- )
-)
-
-(define-function g_str_has_prefix
- (c-name "g_str_has_prefix")
- (return-type "gboolean")
- (parameters
- '("const-gchar*" "str")
- '("const-gchar*" "prefix")
- )
-)
-
(define-function g_strtod
(c-name "g_strtod")
(return-type "gdouble")
@@ -15134,6 +15230,15 @@
(return-type "gsize")
)
+(define-method maybe_get_child_value
+ (of-object "GVariant")
+ (c-name "g_variant_maybe_get_child_value")
+ (return-type "GVariant*")
+ (parameters
+ '("gsize" "index_")
+ )
+)
+
;; From gvariant.h
@@ -16523,10 +16628,6 @@
-;; From gversionmacros.h
-
-
-
;; From gwakeup.h
(define-function g_wakeup_new
@@ -17302,3 +17403,11 @@
;; From glibconfig.h
+
+;; From glib-visibility.h
+
+
+
+;; From gversionmacros.h
+
+
diff --git a/glib/src/gmodule_enums.defs b/glib/src/gmodule_enums.defs
index 34f43f13..ac6e28a1 100644
--- a/glib/src/gmodule_enums.defs
+++ b/glib/src/gmodule_enums.defs
@@ -24,11 +24,11 @@
;; G_MODULE_ERROR_FAILED,
;; G_MODULE_ERROR_CHECK_FAILED,
;; } GModuleError
-;; GLIB_AVAILABLE_ENUMERATOR_IN_2_70;
+;; GMODULE_AVAILABLE_ENUMERATOR_IN_2_70;
-(define-enum-extended LIB_AVAILABLE_ENUMERATOR_IN_2_70
+(define-enum-extended MODULE_AVAILABLE_ENUMERATOR_IN_2_70
(in-module "G")
- (c-name "GLIB_AVAILABLE_ENUMERATOR_IN_2_70")
+ (c-name "GMODULE_AVAILABLE_ENUMERATOR_IN_2_70")
(values
'("failed" "G_MODULE_ERROR_FAILED" "0")
'("check-failed" "G_MODULE_ERROR_CHECK_FAILED" "1")
diff --git a/glib/src/gmodule_functions.defs b/glib/src/gmodule_functions.defs
index 9946995c..e0a8d583 100644
--- a/glib/src/gmodule_functions.defs
+++ b/glib/src/gmodule_functions.defs
@@ -102,3 +102,7 @@
;; From gmoduleconf.h
+
+;; From gmodule-visibility.h
+
+
diff --git a/glib/src/gobject_enums.defs b/glib/src/gobject_enums.defs
index 3ace3c73..10c42e74 100644
--- a/glib/src/gobject_enums.defs
+++ b/glib/src/gobject_enums.defs
@@ -32,7 +32,7 @@
;; G_PARAM_CONSTRUCT_ONLY = 1 << 3,
;; G_PARAM_LAX_VALIDATION = 1 << 4,
;; G_PARAM_STATIC_NAME = 1 << 5,
-;; G_PARAM_PRIVATE GLIB_DEPRECATED_ENUMERATOR_IN_2_26 = G_PARAM_STATIC_NAME,
+;; G_PARAM_PRIVATE GOBJECT_DEPRECATED_ENUMERATOR_IN_2_26 = G_PARAM_STATIC_NAME,
;; G_PARAM_STATIC_NICK = 1 << 6,
;; G_PARAM_STATIC_BLURB = 1 << 7,
;; /* User defined flags go here */
@@ -98,7 +98,7 @@
;; Original typedef:
;; typedef enum
;; {
-;; G_CONNECT_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
+;; G_CONNECT_DEFAULT GOBJECT_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;; G_CONNECT_AFTER = 1 << 0,
;; G_CONNECT_SWAPPED = 1 << 1
;; } GConnectFlags;
@@ -147,7 +147,7 @@
;; G_TYPE_DEBUG_SIGNALS = 1 << 1,
;; G_TYPE_DEBUG_INSTANCE_COUNT = 1 << 2,
;; G_TYPE_DEBUG_MASK = 0x07
-;; } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36;
+;; } GTypeDebugFlags GOBJECT_DEPRECATED_TYPE_IN_2_36;
(define-flags-extended TypeDebugFlags
(in-module "G")
@@ -186,10 +186,11 @@
;; Original typedef:
;; typedef enum /*< skip >*/
;; {
-;; G_TYPE_FLAG_NONE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
+;; G_TYPE_FLAG_NONE GOBJECT_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;; G_TYPE_FLAG_ABSTRACT = (1 << 4),
;; G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5),
-;; G_TYPE_FLAG_FINAL GLIB_AVAILABLE_ENUMERATOR_IN_2_70 = (1 << 6)
+;; G_TYPE_FLAG_FINAL GOBJECT_AVAILABLE_ENUMERATOR_IN_2_70 = (1 << 6),
+;; G_TYPE_FLAG_DEPRECATED GOBJECT_AVAILABLE_ENUMERATOR_IN_2_76 = (1 << 7)
;; } GTypeFlags;
(define-flags-extended TypeFlags
@@ -200,6 +201,7 @@
'("abstract" "G_TYPE_FLAG_ABSTRACT" "(1 << 4)")
'("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT" "(1 << 5)")
'("final" "G_TYPE_FLAG_FINAL" "(1 << 6)")
+ '("deprecated" "G_TYPE_FLAG_DEPRECATED" "(1 << 7)")
)
)
diff --git a/glib/src/gobject_functions.defs b/glib/src/gobject_functions.defs
index b1bc73cc..37aab19d 100644
--- a/glib/src/gobject_functions.defs
+++ b/glib/src/gobject_functions.defs
@@ -124,6 +124,7 @@
'("abstract" "G_TYPE_FLAG_ABSTRACT")
'("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT")
'("final" "G_TYPE_FLAG_FINAL")
+ '("deprecated" "G_TYPE_FLAG_DEPRECATED")
)
)
@@ -877,6 +878,11 @@
(return-type "GType")
)
+(define-function g_bookmark_file_get_type
+ (c-name "g_bookmark_file_get_type")
+ (return-type "GType")
+)
+
(define-function g_variant_get_gtype
(c-name "g_variant_get_gtype")
(return-type "GType")
@@ -4491,3 +4497,7 @@
)
+
+;; From gobject-visibility.h
+
+