diff options
-rw-r--r-- | gio/src/gio_docs.xml | 458 | ||||
-rw-r--r-- | gio/src/gio_enums.defs | 20 | ||||
-rw-r--r-- | gio/src/gio_methods.defs | 149 | ||||
-rw-r--r-- | gio/src/gio_signals.defs | 12 | ||||
-rw-r--r-- | glib/src/glib_docs.xml | 525 | ||||
-rw-r--r-- | glib/src/glib_enums.defs | 58 | ||||
-rw-r--r-- | glib/src/glib_functions.defs | 120 | ||||
-rw-r--r-- | glib/src/gobject_enums.defs | 6 | ||||
-rw-r--r-- | glib/src/gobject_functions.defs | 22 |
9 files changed, 1308 insertions, 62 deletions
diff --git a/gio/src/gio_docs.xml b/gio/src/gio_docs.xml index 1e157a3a..83a43911 100644 --- a/gio/src/gio_docs.xml +++ b/gio/src/gio_docs.xml @@ -250,6 +250,11 @@ Since 2.72 the `pid` may be 0 if the process id wasn't known (for example if the process was launched via D-Bus). The `pid` may not be set at all in subsequent releases. +On Windows, `pid` is guaranteed to be valid only for the duration of the +#GAppLaunchContext::launched signal emission; after the signal is emitted, +GLib will call g_spawn_close_pid(). If you need to keep the #GPid after the +signal has been emitted, then you can duplicate `pid` using `DuplicateHandle()`. + Since: 2.36 </description> @@ -472,7 +477,12 @@ Since: 2.28 </description> <parameters> <parameter name="G_APPLICATION_FLAGS_NONE"> -<parameter_description> Default +<parameter_description> Default. Deprecated in 2.74, use +%G_APPLICATION_DEFAULT_FLAGS instead +</parameter_description> +</parameter> +<parameter name="G_APPLICATION_DEFAULT_FLAGS"> +<parameter_description> Default flags. Since: 2.74 </parameter_description> </parameter> <parameter name="G_APPLICATION_IS_SERVICE"> @@ -1130,6 +1140,15 @@ delayed until g_dbus_connection_start_message_processing() is called. as a server, require the UID of the peer to be the same as the UID of the server. (Since: 2.68) </parameter_description> </parameter> +<parameter name="G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE"> +<parameter_description> When authenticating, try to use +protocols that work across a Linux user namespace boundary, even if this +reduces interoperability with older D-Bus implementations. This currently +affects client-side `EXTERNAL` authentication, for which this flag makes +connections to a server in another user namespace succeed, but causes +a deadlock when connecting to a GDBus server older than 2.73.3. Since: 2.74 +</parameter_description> +</parameter> </parameters> </enum> @@ -2760,8 +2779,22 @@ a server. Server certificates that fail to validate in any of the ways indicated here will be rejected unless the application overrides the default via #GDtlsConnection::accept-certificate. +GLib guarantees that if certificate verification fails, at least one +flag will be set, but it does not guarantee that all possible flags +will be set. Accordingly, you may not safely decide to ignore any +particular type of error. For example, it would be incorrect to mask +%G_TLS_CERTIFICATE_EXPIRED if you want to allow expired certificates, +because this could potentially be the only error flag set even if +other problems exist with the certificate. Therefore, there is no +safe way to use this property. This is not a horrible problem, +though, because you should not be attempting to ignore validation +errors anyway. If you really must ignore TLS certificate errors, +connect to #GDtlsConnection::accept-certificate. + Since: 2.48 +Deprecated: 2.74: Do not attempt to ignore validation errors. + </description> </property> @@ -3702,6 +3735,10 @@ value, which has this more logical name. Since 2.44. <parameter_description> Message too large. Since 2.48. </parameter_description> </parameter> +<parameter name="G_IO_ERROR_NO_SUCH_DEVICE"> +<parameter_description> No such device found. Since 2.74 +</parameter_description> +</parameter> </parameters> </enum> @@ -3947,6 +3984,15 @@ Since: 2.44 </description> </property> +<property name="GListStore:n-items"> +<description> +The number of items contained in this list store. + +Since: 2.74 + +</description> +</property> + <signal name="GMemoryMonitor::low-memory-warning"> <description> Emitted when the system is running low on free memory. The signal @@ -6327,6 +6373,10 @@ Since: 2.28 </description> <parameters> +<parameter name="G_TLS_CERTIFICATE_NO_FLAGS"> +<parameter_description> No flags set. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_TLS_CERTIFICATE_UNKNOWN_CA"> <parameter_description> The signing certificate authority is not known. @@ -6432,7 +6482,7 @@ preventing binding data retrieval. <enum name="GTlsChannelBindingType"> <description> The type of TLS channel binding data to retrieve from #GTlsConnection -or #GDtlsConnection, as documented by RFC 5929. The +or #GDtlsConnection, as documented by RFC 5929 or RFC 9266. The [`tls-unique-for-telnet`](https://tools.ietf.org/html/rfc5929#section-5) binding type is not currently implemented. @@ -6452,6 +6502,12 @@ type binding type </parameter_description> </parameter> +<parameter name="G_TLS_CHANNEL_BINDING_TLS_EXPORTER"> +<parameter_description> +[`tls-exporter`](https://www.rfc-editor.org/rfc/rfc9266.html) binding +type. Since: 2.74 +</parameter_description> +</parameter> </parameters> </enum> @@ -8722,6 +8778,65 @@ support URIs </return> </function> +<function name="g_app_info_get_default_for_type_async"> +<description> +Asynchronously gets the default #GAppInfo for a given content type. + +Since: 2.74 + +</description> +<parameters> +<parameter name="content_type"> +<parameter_description> the content type to find a #GAppInfo for +</parameter_description> +</parameter> +<parameter name="must_support_uris"> +<parameter_description> if %TRUE, the #GAppInfo is expected to +support URIs +</parameter_description> +</parameter> +<parameter name="cancellable"> +<parameter_description> optional #GCancellable object, %NULL to ignore +</parameter_description> +</parameter> +<parameter name="callback"> +<parameter_description> a #GAsyncReadyCallback to call when the request is done +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> data to pass to @callback +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + +<function name="g_app_info_get_default_for_type_finish"> +<description> +Finishes a default #GAppInfo lookup started by +g_app_info_get_default_for_type_async(). + +If no #GAppInfo is found, then @error will be set to %G_IO_ERROR_NOT_FOUND. + +Since: 2.74 + +</description> +<parameters> +<parameter name="result"> +<parameter_description> a #GAsyncResult +</parameter_description> +</parameter> +<parameter name="error"> +<parameter_description> a #GError +</parameter_description> +</parameter> +</parameters> +<return> #GAppInfo for given @content_type or +%NULL on error. + +</return> +</function> + <function name="g_app_info_get_default_for_uri_scheme"> <description> Gets the default application for handling URIs with @@ -8742,6 +8857,63 @@ of the URI, up to but not including the ':', e.g. "http", </return> </function> +<function name="g_app_info_get_default_for_uri_scheme_async"> +<description> +Asynchronously gets the default application for handling URIs with +the given URI scheme. A URI scheme is the initial part +of the URI, up to but not including the ':', e.g. "http", +"ftp" or "sip". + +Since: 2.74 + +</description> +<parameters> +<parameter name="uri_scheme"> +<parameter_description> a string containing a URI scheme. +</parameter_description> +</parameter> +<parameter name="cancellable"> +<parameter_description> optional #GCancellable object, %NULL to ignore +</parameter_description> +</parameter> +<parameter name="callback"> +<parameter_description> a #GAsyncReadyCallback to call when the request is done +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> data to pass to @callback +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + +<function name="g_app_info_get_default_for_uri_scheme_finish"> +<description> +Finishes a default #GAppInfo lookup started by +g_app_info_get_default_for_uri_scheme_async(). + +If no #GAppInfo is found, then @error will be set to %G_IO_ERROR_NOT_FOUND. + +Since: 2.74 + +</description> +<parameters> +<parameter name="result"> +<parameter_description> a #GAsyncResult +</parameter_description> +</parameter> +<parameter name="error"> +<parameter_description> a #GError +</parameter_description> +</parameter> +</parameters> +<return> #GAppInfo for given @uri_scheme or +%NULL on error. + +</return> +</function> + <function name="g_app_info_get_description"> <description> Gets a human-readable description of an installed application. @@ -23927,8 +24099,14 @@ known. <description> Gets @conn's validation flags +This function does not work as originally designed and is impossible +to use correctly. See #GDtlsClientConnection:validation-flags for more +information. + Since: 2.48 +Deprecated: 2.74: Do not attempt to ignore validation errors. + </description> <parameters> <parameter name="conn"> @@ -23998,8 +24176,14 @@ Sets @conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, %G_TLS_CERTIFICATE_VALIDATE_ALL is used. +This function does not work as originally designed and is impossible +to use correctly. See #GDtlsClientConnection:validation-flags for more +information. + Since: 2.48 +Deprecated: 2.74: Do not attempt to ignore validation errors. + </description> <parameters> <parameter name="conn"> @@ -27353,6 +27537,9 @@ This requires the %G_FILE_ATTRIBUTE_TIME_ACCESS attribute. If %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC is provided, the resulting #GDateTime will have microsecond precision. +If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC must +be queried separately using g_file_info_get_attribute_uint32(). + Since: 2.70 </description> @@ -27692,6 +27879,9 @@ This requires the %G_FILE_ATTRIBUTE_TIME_CREATED attribute. If %G_FILE_ATTRIBUTE_TIME_CREATED_USEC is provided, the resulting #GDateTime will have microsecond precision. +If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_CREATED_NSEC must +be queried separately using g_file_info_get_attribute_uint32(). + Since: 2.70 </description> @@ -27864,6 +28054,9 @@ This requires the %G_FILE_ATTRIBUTE_TIME_MODIFIED attribute. If %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is provided, the resulting #GDateTime will have microsecond precision. +If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC must +be queried separately using g_file_info_get_attribute_uint32(). + Since: 2.62 </description> @@ -28088,6 +28281,8 @@ Sets the %G_FILE_ATTRIBUTE_TIME_ACCESS and %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attributes in the file info to the given date/time value. +%G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC will be cleared. + Since: 2.70 </description> @@ -28416,6 +28611,8 @@ Sets the %G_FILE_ATTRIBUTE_TIME_CREATED and %G_FILE_ATTRIBUTE_TIME_CREATED_USEC attributes in the file info to the given date/time value. +%G_FILE_ATTRIBUTE_TIME_CREATED_NSEC will be cleared. + Since: 2.70 </description> @@ -28552,6 +28749,8 @@ Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the given date/time value. +%G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared. + Since: 2.62 </description> @@ -28574,6 +28773,8 @@ Sets the %G_FILE_ATTRIBUTE_TIME_MODIFIED and %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the given time value. +%G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared. + Deprecated: 2.62: Use g_file_info_set_modification_date_time() instead, as #GTimeVal is deprecated due to the year 2038 problem. @@ -29472,6 +29673,74 @@ of the new symlink </return> </function> +<function name="g_file_make_symbolic_link_async"> +<description> +Asynchronously creates a symbolic link named @file which contains the +string @symlink_value. + +Virtual: make_symbolic_link_async +Since: 2.74 + +</description> +<parameters> +<parameter name="file"> +<parameter_description> a #GFile with the name of the symlink to create +</parameter_description> +</parameter> +<parameter name="symlink_value"> +<parameter_description> a string with the path for the target +of the new symlink +</parameter_description> +</parameter> +<parameter name="io_priority"> +<parameter_description> the [I/O priority][io-priority] of the request +</parameter_description> +</parameter> +<parameter name="cancellable"> +<parameter_description> optional #GCancellable object, +%NULL to ignore +</parameter_description> +</parameter> +<parameter name="callback"> +<parameter_description> a #GAsyncReadyCallback to call +when the request is satisfied +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> the data to pass to callback function +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + +<function name="g_file_make_symbolic_link_finish"> +<description> +Finishes an asynchronous symbolic link creation, started with +g_file_make_symbolic_link_async(). + +Virtual: make_symbolic_link_finish +Since: 2.74 + +</description> +<parameters> +<parameter name="file"> +<parameter_description> input #GFile +</parameter_description> +</parameter> +<parameter name="result"> +<parameter_description> a #GAsyncResult +</parameter_description> +</parameter> +<parameter name="error"> +<parameter_description> a #GError, or %NULL +</parameter_description> +</parameter> +</parameters> +<return> %TRUE on successful directory creation, %FALSE otherwise. +</return> +</function> + <function name="g_file_measure_disk_usage"> <description> Recursively measures the disk usage of @file. @@ -30311,6 +30580,133 @@ Free the returned object with g_object_unref(). </return> </function> +<function name="g_file_new_tmp_async"> +<description> +Asynchronously opens a file in the preferred directory for temporary files +(as returned by g_get_tmp_dir()) as g_file_new_tmp(). + +@tmpl should be a string in the GLib file name encoding +containing a sequence of six 'X' characters, and containing no +directory components. If it is %NULL, a default template is used. + +Since: 2.74 + +</description> +<parameters> +<parameter name="tmpl"> +<parameter_description> Template for the file +name, as in g_file_open_tmp(), or %NULL for a default template +</parameter_description> +</parameter> +<parameter name="io_priority"> +<parameter_description> the [I/O priority][io-priority] of the request +</parameter_description> +</parameter> +<parameter name="cancellable"> +<parameter_description> optional #GCancellable object, %NULL to ignore +</parameter_description> +</parameter> +<parameter name="callback"> +<parameter_description> a #GAsyncReadyCallback to call when the request is done +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> data to pass to @callback +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + +<function name="g_file_new_tmp_dir_async"> +<description> +Asynchronously creates a directory in the preferred directory for +temporary files (as returned by g_get_tmp_dir()) as g_dir_make_tmp(). + +@tmpl should be a string in the GLib file name encoding +containing a sequence of six 'X' characters, and containing no +directory components. If it is %NULL, a default template is used. + +Since: 2.74 + +</description> +<parameters> +<parameter name="tmpl"> +<parameter_description> Template for the file +name, as in g_dir_make_tmp(), or %NULL for a default template +</parameter_description> +</parameter> +<parameter name="io_priority"> +<parameter_description> the [I/O priority][io-priority] of the request +</parameter_description> +</parameter> +<parameter name="cancellable"> +<parameter_description> optional #GCancellable object, %NULL to ignore +</parameter_description> +</parameter> +<parameter name="callback"> +<parameter_description> a #GAsyncReadyCallback to call when the request is done +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> data to pass to @callback +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + +<function name="g_file_new_tmp_dir_finish"> +<description> +Finishes a temporary directory creation started by +g_file_new_tmp_dir_async(). + +Since: 2.74 + +</description> +<parameters> +<parameter name="result"> +<parameter_description> a #GAsyncResult +</parameter_description> +</parameter> +<parameter name="error"> +<parameter_description> a #GError, or %NULL +</parameter_description> +</parameter> +</parameters> +<return> a new #GFile. +Free the returned object with g_object_unref(). + +</return> +</function> + +<function name="g_file_new_tmp_finish"> +<description> +Finishes a temporary file creation started by g_file_new_tmp_async(). + +Since: 2.74 + +</description> +<parameters> +<parameter name="result"> +<parameter_description> a #GAsyncResult +</parameter_description> +</parameter> +<parameter name="iostream"> +<parameter_description> on return, a #GFileIOStream for the created file +</parameter_description> +</parameter> +<parameter name="error"> +<parameter_description> a #GError, or %NULL +</parameter_description> +</parameter> +</parameters> +<return> a new #GFile. +Free the returned object with g_object_unref(). + +</return> +</function> + <function name="g_file_open_readwrite"> <description> Opens an existing file for reading and writing. The result is @@ -34645,6 +35041,24 @@ calls, you should save its value as soon as the call which sets it </return> </function> +<function name="g_io_error_from_file_error"> +<description> +Converts #GFileError error codes into GIO error codes. + +Since: 2.74 + +</description> +<parameters> +<parameter name="file_error"> +<parameter_description> a #GFileError. +</parameter_description> +</parameter> +</parameters> +<return> #GIOErrorEnum value for the given #GFileError error value. + +</return> +</function> + <function name="g_io_error_from_win32_error"> <description> Converts some common error codes (as returned from GetLastError() @@ -35912,7 +36326,7 @@ set to the position where @item occurred for the first time. <function name="g_list_store_find_with_equal_func"> <description> Looks up the given @item in the list store by looping over the items and -comparing them with @compare_func until the first occurrence of @item which +comparing them with @equal_func until the first occurrence of @item which matches. If @item was not found, then @position will not be set, and this method will return %FALSE. @@ -35943,6 +36357,42 @@ set to the position where @item occurred for the first time. </return> </function> +<function name="g_list_store_find_with_equal_func_full"> +<description> +Like g_list_store_find_with_equal_func() but with an additional @user_data +that is passed to @equal_func. + +Since: 2.74 + +</description> +<parameters> +<parameter name="store"> +<parameter_description> a #GListStore +</parameter_description> +</parameter> +<parameter name="item"> +<parameter_description> an item +</parameter_description> +</parameter> +<parameter name="equal_func"> +<parameter_description> A custom equality check function +</parameter_description> +</parameter> +<parameter name="user_data"> +<parameter_description> user data for @equal_func +</parameter_description> +</parameter> +<parameter name="position"> +<parameter_description> the first position of @item, if it was found. +</parameter_description> +</parameter> +</parameters> +<return> Whether @store contains @item. If it was found, @position will be +set to the position where @item occurred for the first time. + +</return> +</function> + <function name="g_list_store_insert"> <description> Inserts @item into @store at @position. @item must be of type @@ -55482,6 +55932,8 @@ certificate outside the context of making a connection, or to check a certificate against a CA that is not part of the system CA database. +If @cert is valid, %G_TLS_CERTIFICATE_NO_FLAGS is returned. + If @identity is not %NULL, @cert's name(s) will be compared against it, and %G_TLS_CERTIFICATE_BAD_IDENTITY will be set in the return value if it does not match. If @identity is %NULL, that bit will diff --git a/gio/src/gio_enums.defs b/gio/src/gio_enums.defs index c0d53e24..d933e20e 100644 --- a/gio/src/gio_enums.defs +++ b/gio/src/gio_enums.defs @@ -462,7 +462,8 @@ ;; G_IO_ERROR_BROKEN_PIPE, ;; G_IO_ERROR_CONNECTION_CLOSED = G_IO_ERROR_BROKEN_PIPE, ;; G_IO_ERROR_NOT_CONNECTED, -;; G_IO_ERROR_MESSAGE_TOO_LARGE +;; G_IO_ERROR_MESSAGE_TOO_LARGE, +;; G_IO_ERROR_NO_SUCH_DEVICE GLIB_AVAILABLE_ENUMERATOR_IN_2_74, ;; } GIOErrorEnum; (define-enum-extended IOErrorEnum @@ -518,6 +519,7 @@ '("connection-closed" "G_IO_ERROR_CONNECTION_CLOSED" "44") '("not-connected" "G_IO_ERROR_NOT_CONNECTED" "45") '("message-too-large" "G_IO_ERROR_MESSAGE_TOO_LARGE" "46") + '("no-such-device" "G_IO_ERROR_NO_SUCH_DEVICE" "47") ) ) @@ -1025,7 +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_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) ;; } GDBusConnectionFlags; (define-flags-extended DBusConnectionFlags @@ -1039,6 +1042,7 @@ '("message-bus-connection" "G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION" "(1<<3)") '("delay-message-processing" "G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING" "(1<<4)") '("authentication-require-same-user" "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER" "(1<<5)") + '("cross-namespace" "G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE" "(1<<6)") ) ) @@ -1280,9 +1284,10 @@ ) ;; Original typedef: -;; typedef enum +;; typedef enum /*< prefix=G_APPLICATION >*/ ;; { -;; G_APPLICATION_FLAGS_NONE, +;; 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_IS_SERVICE = (1 << 0), ;; G_APPLICATION_IS_LAUNCHER = (1 << 1), ;; @@ -1302,6 +1307,7 @@ (c-name "GApplicationFlags") (values '("flags-none" "G_APPLICATION_FLAGS_NONE" "0x0") + '("default-flags" "G_APPLICATION_DEFAULT_FLAGS" "0x0") '("is-service" "G_APPLICATION_IS_SERVICE" "(1 << 0)") '("is-launcher" "G_APPLICATION_IS_LAUNCHER" "(1 << 1)") '("handles-open" "G_APPLICATION_HANDLES_OPEN" "(1 << 2)") @@ -1345,6 +1351,7 @@ ;; Original typedef: ;; typedef enum { +;; G_TLS_CERTIFICATE_NO_FLAGS GLIB_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), @@ -1360,6 +1367,7 @@ (in-module "G") (c-name "GTlsCertificateFlags") (values + '("no-flags" "G_TLS_CERTIFICATE_NO_FLAGS" "0x0") '("unknown-ca" "G_TLS_CERTIFICATE_UNKNOWN_CA" "(1 << 0)") '("bad-identity" "G_TLS_CERTIFICATE_BAD_IDENTITY" "(1 << 1)") '("not-activated" "G_TLS_CERTIFICATE_NOT_ACTIVATED" "(1 << 2)") @@ -1391,7 +1399,8 @@ ;; Original typedef: ;; typedef enum { ;; G_TLS_CHANNEL_BINDING_TLS_UNIQUE, -;; G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT +;; G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT, +;; G_TLS_CHANNEL_BINDING_TLS_EXPORTER GLIB_AVAILABLE_ENUMERATOR_IN_2_74, ;; } GTlsChannelBindingType; (define-enum-extended TlsChannelBindingType @@ -1400,6 +1409,7 @@ (values '("unique" "G_TLS_CHANNEL_BINDING_TLS_UNIQUE" "0") '("server-end-point" "G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT" "1") + '("exporter" "G_TLS_CHANNEL_BINDING_TLS_EXPORTER" "2") ) ) diff --git a/gio/src/gio_methods.defs b/gio/src/gio_methods.defs index 63fa80c2..b0a24a56 100644 --- a/gio/src/gio_methods.defs +++ b/gio/src/gio_methods.defs @@ -1093,6 +1093,7 @@ '("connection-closed" "G_IO_ERROR_CONNECTION_CLOSED") '("not-connected" "G_IO_ERROR_NOT_CONNECTED") '("message-too-large" "G_IO_ERROR_MESSAGE_TOO_LARGE") + '("no-such-device" "G_IO_ERROR_NO_SUCH_DEVICE") ) ) @@ -1407,6 +1408,7 @@ '("message-bus-connection" "G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION") '("delay-message-processing" "G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING") '("authentication-require-same-user" "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER") + '("cross-namespace" "G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE") ) ) @@ -1561,6 +1563,7 @@ (gtype-id "G_TYPE_APPLICATION_FLAGS") (values '("flags-none" "G_APPLICATION_FLAGS_NONE") + '("default-flags" "G_APPLICATION_DEFAULT_FLAGS") '("is-service" "G_APPLICATION_IS_SERVICE") '("is-launcher" "G_APPLICATION_IS_LAUNCHER") '("handles-open" "G_APPLICATION_HANDLES_OPEN") @@ -1595,6 +1598,7 @@ (c-name "GTlsCertificateFlags") (gtype-id "G_TYPE_TLS_CERTIFICATE_FLAGS") (values + '("no-flags" "G_TLS_CERTIFICATE_NO_FLAGS") '("unknown-ca" "G_TLS_CERTIFICATE_UNKNOWN_CA") '("bad-identity" "G_TLS_CERTIFICATE_BAD_IDENTITY") '("not-activated" "G_TLS_CERTIFICATE_NOT_ACTIVATED") @@ -1624,6 +1628,7 @@ (values '("unique" "G_TLS_CHANNEL_BINDING_TLS_UNIQUE") '("server-end-point" "G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT") + '("exporter" "G_TLS_CHANNEL_BINDING_TLS_EXPORTER") ) ) @@ -2465,6 +2470,27 @@ ) ) +(define-function g_app_info_get_default_for_type_async + (c-name "g_app_info_get_default_for_type_async") + (return-type "none") + (parameters + '("const-char*" "content_type") + '("gboolean" "must_support_uris") + '("GCancellable*" "cancellable") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-function g_app_info_get_default_for_type_finish + (c-name "g_app_info_get_default_for_type_finish") + (return-type "GAppInfo*") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-function g_app_info_get_default_for_uri_scheme (c-name "g_app_info_get_default_for_uri_scheme") (return-type "GAppInfo*") @@ -2473,6 +2499,26 @@ ) ) +(define-function g_app_info_get_default_for_uri_scheme_async + (c-name "g_app_info_get_default_for_uri_scheme_async") + (return-type "none") + (parameters + '("const-char*" "uri_scheme") + '("GCancellable*" "cancellable") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-function g_app_info_get_default_for_uri_scheme_finish + (c-name "g_app_info_get_default_for_uri_scheme_finish") + (return-type "GAppInfo*") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-function g_app_info_launch_default_for_uri (c-name "g_app_info_launch_default_for_uri") (return-type "gboolean") @@ -8080,6 +8126,49 @@ ) ) +(define-function g_file_new_tmp_async + (c-name "g_file_new_tmp_async") + (return-type "none") + (parameters + '("const-char*" "tmpl") + '("int" "io_priority") + '("GCancellable*" "cancellable") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-function g_file_new_tmp_finish + (c-name "g_file_new_tmp_finish") + (return-type "GFile*") + (parameters + '("GAsyncResult*" "result") + '("GFileIOStream**" "iostream") + '("GError**" "error") + ) +) + +(define-function g_file_new_tmp_dir_async + (c-name "g_file_new_tmp_dir_async") + (return-type "none") + (parameters + '("const-char*" "tmpl") + '("int" "io_priority") + '("GCancellable*" "cancellable") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-function g_file_new_tmp_dir_finish + (c-name "g_file_new_tmp_dir_finish") + (return-type "GFile*") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-function g_file_parse_name (c-name "g_file_parse_name") (return-type "GFile*") @@ -8862,6 +8951,29 @@ ) ) +(define-method make_symbolic_link_async + (of-object "GFile") + (c-name "g_file_make_symbolic_link_async") + (return-type "none") + (parameters + '("const-char*" "symlink_value") + '("int" "io_priority") + '("GCancellable*" "cancellable") + '("GAsyncReadyCallback" "callback") + '("gpointer" "user_data") + ) +) + +(define-method make_symbolic_link_finish + (of-object "GFile") + (c-name "g_file_make_symbolic_link_finish") + (return-type "gboolean") + (parameters + '("GAsyncResult*" "result") + '("GError**" "error") + ) +) + (define-method query_settable_attributes (of-object "GFile") (c-name "g_file_query_settable_attributes") @@ -11073,6 +11185,14 @@ ) ) +(define-function g_io_error_from_file_error + (c-name "g_io_error_from_file_error") + (return-type "GIOErrorEnum") + (parameters + '("GFileError" "file_error") + ) +) + (define-function g_io_error_from_win32_error (c-name "g_io_error_from_win32_error") (return-type "GIOErrorEnum") @@ -11829,6 +11949,18 @@ ) ) +(define-method find_with_equal_func_full + (of-object "GListStore") + (c-name "g_list_store_find_with_equal_func_full") + (return-type "gboolean") + (parameters + '("gpointer" "item") + '("GEqualFuncFull" "equal_func") + '("gpointer" "user_data") + '("guint*" "position") + ) +) + ;; From gloadableicon.h @@ -19918,6 +20050,14 @@ (return-type "GType") ) +(define-function g_unix_mount_free + (c-name "g_unix_mount_free") + (return-type "none") + (parameters + '("GUnixMountEntry*" "mount_entry") + ) +) + (define-function g_unix_mount_copy (c-name "g_unix_mount_copy") (return-type "GUnixMountEntry*") @@ -20043,6 +20183,15 @@ ) ) +(define-method compare + (of-object "GUnixMountPoint") + (c-name "g_unix_mount_point_compare") + (return-type "gint") + (parameters + '("GUnixMountPoint*" "mount2") + ) +) + (define-method get_mount_path (of-object "GUnixMountPoint") (c-name "g_unix_mount_point_get_mount_path") diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs index 7c56f76c..514afbec 100644 --- a/gio/src/gio_signals.defs +++ b/gio/src/gio_signals.defs @@ -638,6 +638,16 @@ (construct-only #t) ) +(define-property n-items + (of-object "GListStore") + (prop-type "GParamUInt") + (docs "") + (readable #t) + (writable #f) + (construct-only #f) + (default-value "0") +) + ;; From GLoadableIcon ;; From GMemoryInputStream @@ -2529,7 +2539,7 @@ (readable #t) (writable #f) (construct-only #f) - (default-value "0") + (default-value "G_TLS_CERTIFICATE_NO_FLAGS") ) (define-property advertised-protocols diff --git a/glib/src/glib_docs.xml b/glib/src/glib_docs.xml index dee3bf00..285fc791 100644 --- a/glib/src/glib_docs.xml +++ b/glib/src/glib_docs.xml @@ -185,13 +185,18 @@ connection. </description> <parameters> +<parameter name="G_CONNECT_DEFAULT"> +<parameter_description> Default behaviour (no special flags). Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_CONNECT_AFTER"> -<parameter_description> whether the handler should be called before or after the -default handler of the signal. +<parameter_description> If set, the handler should be called after the +default handler of the signal. Normally, the handler is called before +the default handler. </parameter_description> </parameter> <parameter name="G_CONNECT_SWAPPED"> -<parameter_description> whether the instance and data should be swapped when +<parameter_description> If set, the instance and data should be swapped when calling the handler; see g_signal_connect_swapped() for an example. </parameter_description> </parameter> @@ -673,6 +678,18 @@ Network and storage sizes should be reported in the normal SI units. bytes, and return units in bits. For example, ‘Mb’ rather than ‘MB’. </parameter_description> </parameter> +<parameter name="G_FORMAT_SIZE_ONLY_VALUE"> +<parameter_description> return only value, without unit; this should +not be used together with @G_FORMAT_SIZE_LONG_FORMAT +nor @G_FORMAT_SIZE_ONLY_UNIT. Since: 2.74 +</parameter_description> +</parameter> +<parameter name="G_FORMAT_SIZE_ONLY_UNIT"> +<parameter_description> return only unit, without value; this should +not be used together with @G_FORMAT_SIZE_LONG_FORMAT +nor @G_FORMAT_SIZE_ONLY_VALUE. Since: 2.74 +</parameter_description> +</parameter> </parameters> </enum> @@ -812,6 +829,10 @@ g_io_channel_set_flags(). </description> <parameters> +<parameter name="G_IO_FLAG_NONE"> +<parameter_description> no special flags set. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_IO_FLAG_APPEND"> <parameter_description> turns on append mode, corresponds to %O_APPEND (see the documentation of the UNIX open() syscall) @@ -1147,6 +1168,10 @@ Flags that affect the behaviour of the parser. </description> <parameters> +<parameter name="G_MARKUP_DEFAULT_FLAGS"> +<parameter_description> No special behaviour. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG"> <parameter_description> flag you should not use </parameter_description> @@ -1370,7 +1395,7 @@ option: `--name arg` or combined in a single argument: `--name=arg`. </description> <parameters> <parameter name="G_OPTION_ARG_NONE"> -<parameter_description> No extra argument. This is useful for simple flags. +<parameter_description> No extra argument. This is useful for simple flags or booleans. </parameter_description> </parameter> <parameter name="G_OPTION_ARG_STRING"> @@ -1461,7 +1486,8 @@ Flags which modify individual options. </parameter> <parameter name="G_OPTION_FLAG_REVERSE"> <parameter_description> For options of the %G_OPTION_ARG_NONE kind, this -flag indicates that the sense of the option is reversed. +flag indicates that the sense of the option is reversed. i.e. %FALSE will +be stored into the argument rather than %TRUE. </parameter_description> </parameter> <parameter name="G_OPTION_FLAG_NO_ARG"> @@ -1579,6 +1605,10 @@ Since: 2.14 </description> <parameters> +<parameter name="G_REGEX_DEFAULT"> +<parameter_description> No special options set. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_REGEX_CASELESS"> <parameter_description> Letters in the pattern match both upper- and lowercase letters. This option can be changed within a pattern @@ -1650,9 +1680,13 @@ in the usual way). </parameter_description> </parameter> <parameter name="G_REGEX_OPTIMIZE"> -<parameter_description> Optimize the regular expression. If the pattern will -be used many times, then it may be worth the effort to optimize it -to improve the speed of matches. +<parameter_description> Since 2.74 and the port to pcre2, requests JIT +compilation, which, if the just-in-time compiler is available, further +processes a compiled pattern into machine code that executes much +faster. However, it comes at the cost of extra processing before the +match is performed, so it is most beneficial to use this when the same +compiled pattern is used for matching many times. Before 2.74 this +option used the built-in non-JIT optimizations in pcre1. </parameter_description> </parameter> <parameter name="G_REGEX_FIRSTLINE"> @@ -1699,7 +1733,8 @@ characters '\r', '\n' and '\r\n'. Since: 2.34 </parameter> <parameter name="G_REGEX_JAVASCRIPT_COMPAT"> <parameter_description> Changes behaviour so that it is compatible with -JavaScript rather than PCRE. Since: 2.34 +JavaScript rather than PCRE. Since GLib 2.74 this is no longer supported, +as libpcre2 does not support it. Since: 2.34 Deprecated: 2.74 </parameter_description> </parameter> </parameters> @@ -1995,6 +2030,10 @@ Since: 2.14 </description> <parameters> +<parameter name="G_REGEX_MATCH_DEFAULT"> +<parameter_description> No special options set. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_REGEX_MATCH_ANCHORED"> <parameter_description> The pattern is forced to be "anchored", that is, it is constrained to match only at the first matching point in the @@ -2456,6 +2495,21 @@ Since: 2.34 Since: 2.40 </parameter_description> </parameter> +<parameter name="G_SPAWN_CHILD_INHERITS_STDOUT"> +<parameter_description> the child will inherit the parent's standard output. +Since: 2.74 +</parameter_description> +</parameter> +<parameter name="G_SPAWN_CHILD_INHERITS_STDERR"> +<parameter_description> the child will inherit the parent's standard error. +Since: 2.74 +</parameter_description> +</parameter> +<parameter name="G_SPAWN_STDIN_FROM_DEV_NULL"> +<parameter_description> the child's standard input is attached to `/dev/null`. +Since: 2.74 +</parameter_description> +</parameter> </parameters> </enum> @@ -2502,6 +2556,10 @@ not show stdout and stderr. </description> <parameters> +<parameter name="G_TEST_SUBPROCESS_DEFAULT"> +<parameter_description> Default behaviour. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_TEST_SUBPROCESS_INHERIT_STDIN"> <parameter_description> If this flag is given, the child process will inherit the parent's stdin. Otherwise, the child's @@ -2536,6 +2594,10 @@ which is deprecated. g_test_trap_subprocess() uses </description> <parameters> +<parameter name="G_TEST_TRAP_DEFAULT"> +<parameter_description> Default behaviour. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_TEST_TRAP_SILENCE_STDOUT"> <parameter_description> Redirect stdout of the test child to `/dev/null` so it cannot be observed on the console during test @@ -2852,6 +2914,10 @@ Bit masks used to check or determine characteristics of a type. </description> <parameters> +<parameter name="G_TYPE_FLAG_NONE"> +<parameter_description> No special flags. Since: 2.74 +</parameter_description> +</parameter> <parameter name="G_TYPE_FLAG_ABSTRACT"> <parameter_description> Indicates an abstract type. No instances can be created for an abstract type @@ -7377,6 +7443,47 @@ Since: 2.4 </return> </function> +<function name="g_atomic_int_compare_and_exchange_full"> +<description> +Compares @atomic to @oldval and, if equal, sets it to @newval. +If @atomic was not equal to @oldval then no change occurs. +In any case the value of @atomic before this operation is stored in @preval. + +This compare and exchange is done atomically. + +Think of this operation as an atomic version of +`{ *preval = *atomic; if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. + +This call acts as a full compiler and hardware memory barrier. + +See also g_atomic_int_compare_and_exchange() + +Since: 2.74 + +</description> +<parameters> +<parameter name="atomic"> +<parameter_description> a pointer to a #gint or #guint +</parameter_description> +</parameter> +<parameter name="oldval"> +<parameter_description> the value to compare with +</parameter_description> +</parameter> +<parameter name="newval"> +<parameter_description> the value to conditionally replace with +</parameter_description> +</parameter> +<parameter name="preval"> +<parameter_description> the contents of @atomic before this operation +</parameter_description> +</parameter> +</parameters> +<return> %TRUE if the exchange took place + +</return> +</function> + <function name="g_atomic_int_dec_and_test"> <description> Decrements the value of @atomic by 1. @@ -7403,6 +7510,35 @@ Since: 2.4 </return> </function> +<function name="g_atomic_int_exchange"> +<description> +Sets the @atomic to @newval and returns the old value from @atomic. + +This exchange is done atomically. + +Think of this operation as an atomic version of +`{ tmp = *atomic; *atomic = val; return tmp; }`. + +This call acts as a full compiler and hardware memory barrier. + +Since: 2.74 + +</description> +<parameters> +<parameter name="atomic"> +<parameter_description> a pointer to a #gint or #guint +</parameter_description> +</parameter> +<parameter name="newval"> +<parameter_description> the value to replace with +</parameter_description> +</parameter> +</parameters> +<return> the value of @atomic before the exchange, signed + +</return> +</function> + <function name="g_atomic_int_exchange_and_add"> <description> This function existed before g_atomic_int_add() returned the prior @@ -7660,6 +7796,76 @@ Since: 2.4 </return> </function> +<function name="g_atomic_pointer_compare_and_exchange_full"> +<description> +Compares @atomic to @oldval and, if equal, sets it to @newval. +If @atomic was not equal to @oldval then no change occurs. +In any case the value of @atomic before this operation is stored in @preval. + +This compare and exchange is done atomically. + +Think of this operation as an atomic version of +`{ *preval = *atomic; if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. + +This call acts as a full compiler and hardware memory barrier. + +See also g_atomic_pointer_compare_and_exchange() + +Since: 2.74 + +</description> +<parameters> +<parameter name="atomic"> +<parameter_description> a pointer to a #gpointer-sized value +</parameter_description> +</parameter> +<parameter name="oldval"> +<parameter_description> the value to compare with +</parameter_description> +</parameter> +<parameter name="newval"> +<parameter_description> the value to conditionally replace with +</parameter_description> +</parameter> +<parameter name="preval"> +<parameter_description> the contents of @atomic before this operation +</parameter_description> +</parameter> +</parameters> +<return> %TRUE if the exchange took place + +</return> +</function> + +<function name="g_atomic_pointer_exchange"> +<description> +Sets the @atomic to @newval and returns the old value from @atomic. + +This exchange is done atomically. + +Think of this operation as an atomic version of +`{ tmp = *atomic; *atomic = val; return tmp; }`. + +This call acts as a full compiler and hardware memory barrier. + +Since: 2.74 + +</description> +<parameters> +<parameter name="atomic"> +<parameter_description> a pointer to a #gpointer-sized value +</parameter_description> +</parameter> +<parameter name="newval"> +<parameter_description> the value to replace with +</parameter_description> +</parameter> +</parameters> +<return> the value of @atomic before the exchange + +</return> +</function> + <function name="g_atomic_pointer_get"> <description> Gets the current value of @atomic. @@ -16119,6 +16325,33 @@ Removes an element, using its #GQuark identifier. <return></return> </function> +<function name="g_datalist_id_remove_multiple"> +<description> +Removes multiple keys from a datalist. + +This is more efficient than calling g_datalist_id_remove_data() +multiple times in a row. + +Since: 2.74 + +</description> +<parameters> +<parameter name="datalist"> +<parameter_description> a datalist +</parameter_description> +</parameter> +<parameter name="keys"> +<parameter_description> keys to remove +</parameter_description> +</parameter> +<parameter name="n_keys"> +<parameter_description> length of @keys, must be <= 16 +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + <function name="g_datalist_id_remove_no_notify"> <description> Removes an element, without calling its destroy notification @@ -17881,7 +18114,8 @@ The following format specifiers are supported: - \%c: the preferred date and time representation for the current locale - \%C: the century number (year/100) as a 2-digit integer (00-99) - \%d: the day of the month as a decimal number (range 01 to 31) -- \%e: the day of the month as a decimal number (range 1 to 31) +- \%e: the day of the month as a decimal number (range 1 to 31); +single digits are preceded by a figure space - \%F: equivalent to `%Y-%m-%d` (the ISO 8601 date format) - \%g: the last two digits of the ISO 8601 week-based year as a decimal number (00-99). This works well with \%V and \%u. @@ -17892,9 +18126,9 @@ well with \%V and \%u. - \%I: the hour as a decimal number using a 12-hour clock (range 01 to 12) - \%j: the day of the year as a decimal number (range 001 to 366) - \%k: the hour (24-hour clock) as a decimal number (range 0 to 23); -single digits are preceded by a blank +single digits are preceded by a figure space - \%l: the hour (12-hour clock) as a decimal number (range 1 to 12); -single digits are preceded by a blank +single digits are preceded by a figure space - \%m: the month as a decimal number (range 01 to 12) - \%M: the minute as a decimal number (range 00 to 59) - \%f: the microsecond as a decimal number (range 000000 to 999999) @@ -23800,6 +24034,35 @@ range between %G_PRIORITY_DEFAULT_IDLE and %G_PRIORITY_HIGH_IDLE. </return> </function> +<function name="g_idle_add_once"> +<description> +Adds a function to be called whenever there are no higher priority +events pending to the default main loop. The function is given the +default idle priority, %G_PRIORITY_DEFAULT_IDLE. + +The function will only be called once and then the source will be +automatically removed from the main context. + +This function otherwise behaves like g_idle_add(). + +Since: 2.74 + +</description> +<parameters> +<parameter name="function"> +<parameter_description> function to call +</parameter_description> +</parameter> +<parameter name="data"> +<parameter_description> data to pass to @function +</parameter_description> +</parameter> +</parameters> +<return> the ID (greater than 0) of the event source + +</return> +</function> + <function name="g_idle_remove_by_data"> <description> Removes the idle function with the given data. @@ -31715,7 +31978,7 @@ statically allocated. Calling g_mutex_clear() on a locked mutex leads to undefined behaviour. -Sine: 2.32 +Since: 2.32 </description> <parameters> @@ -33139,9 +33402,11 @@ This function should be used if you plan to use a static array of class initialization: |[<!-- language="C" --> -enum { -PROP_0, PROP_FOO, PROP_BAR, N_PROPERTIES -}; +typedef enum { +PROP_FOO = 1, +PROP_BAR, +N_PROPERTIES +} MyObjectProperty; static GParamSpec *obj_properties[N_PROPERTIES] = { NULL, }; @@ -33154,17 +33419,17 @@ obj_properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "Foo", -1, G_MAXINT, 0, -G_PARAM_READWRITE); +G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); obj_properties[PROP_BAR] = g_param_spec_string ("bar", "Bar", "Bar", NULL, -G_PARAM_READWRITE); +G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); gobject_class->set_property = my_object_set_property; gobject_class->get_property = my_object_get_property; g_object_class_install_properties (gobject_class, -N_PROPERTIES, +G_N_ELEMENTS (obj_properties), obj_properties); } ]| @@ -33302,8 +33567,8 @@ A convenience function to connect multiple signals at once. The signal specs expected by this function have the form "modifier::signal_name", where modifier can be one of the following: -- signal: equivalent to g_signal_connect_data (..., NULL, 0) -- object-signal, object_signal: equivalent to g_signal_connect_object (..., 0) +- signal: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_DEFAULT) +- object-signal, object_signal: equivalent to g_signal_connect_object (..., G_CONNECT_DEFAULT) - swapped-signal, swapped_signal: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_SWAPPED) - swapped_object_signal, swapped-object-signal: equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED) - signal_after, signal-after: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_AFTER) @@ -33993,12 +34258,11 @@ instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.: |[<!-- language="C" --> -enum +typedef enum { -PROP_0, -PROP_FOO, +PROP_FOO = 1, PROP_LAST -}; +} MyObjectProperty; static GParamSpec *properties[PROP_LAST]; @@ -34008,7 +34272,7 @@ my_object_class_init (MyObjectClass *klass) properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo", 0, 100, 50, -G_PARAM_READWRITE); +G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (gobject_class, PROP_FOO, properties[PROP_FOO]); @@ -37246,6 +37510,30 @@ Checks whether @value contains the default value as specified in @pspec. </return> </function> +<function name="g_param_value_is_valid"> +<description> +Return whether the contents of @value comply with the specifications +set out by @pspec. + +Since: 2.74 + +</description> +<parameters> +<parameter name="pspec"> +<parameter_description> a valid #GParamSpec +</parameter_description> +</parameter> +<parameter name="value"> +<parameter_description> a #GValue of correct type for @pspec +</parameter_description> +</parameter> +</parameters> +<return> whether the contents of @value comply with the specifications +set out by @pspec. + +</return> +</function> + <function name="g_param_value_set_default"> <description> Sets @value to its default value as specified in @pspec. @@ -38157,7 +38445,8 @@ If @func is %NULL, then only the pointers (and not what they are pointing to) are copied to the new #GPtrArray. The copy of @array will have the same #GDestroyNotify for its elements as -@array. +@array. The copy will also be %NULL terminated if (and only if) the source +array is. Since: 2.62 @@ -38196,6 +38485,8 @@ may get compiler warnings from this though if compiling with GCC’s If @func is %NULL, then only the pointers (and not what they are pointing to) are copied to the new #GPtrArray. +Whether @array_to_extend is %NULL terminated stays unchanged by this function. + Since: 2.62 </description> @@ -38357,6 +38648,10 @@ If array contents point to dynamically-allocated memory, they should be freed separately if @free_seg is %TRUE and no #GDestroyNotify function has been set for @array. +Note that if the array is %NULL terminated and @free_seg is %FALSE +then this will always return an allocated %NULL terminated buffer. +If pdata is previously %NULL, a new buffer will be allocated. + This function is not thread-safe. If using a #GPtrArray from multiple threads, use only the atomic g_ptr_array_ref() and g_ptr_array_unref() functions. @@ -38426,6 +38721,29 @@ Since: 2.40 <return></return> </function> +<function name="g_ptr_array_is_null_terminated"> +<description> +Gets whether the @array was constructed as %NULL-terminated. + +This will only return %TRUE for arrays constructed by passing %TRUE to the +`null_terminated` argument of g_ptr_array_new_null_terminated(). It will not +return %TRUE for normal arrays which have had a %NULL element appended to +them. + +Since: 2.74 + +</description> +<parameters> +<parameter name="array"> +<parameter_description> the #GPtrArray +</parameter_description> +</parameter> +</parameters> +<return> %TRUE if the array is made to be %NULL terminated. + +</return> +</function> + <function name="g_ptr_array_new"> <description> Creates a new #GPtrArray with a reference count of 1. @@ -38467,6 +38785,50 @@ destroy @array or %NULL </return> </function> +<function name="g_ptr_array_new_null_terminated"> +<description> +Like g_ptr_array_new_full() but also allows to set the array to +be %NULL terminated. A %NULL terminated pointer array has an +additional %NULL pointer after the last element, beyond the +current length. + +#GPtrArray created by other constructors are not automatically %NULL +terminated. + +Note that if the @array's length is zero and currently no +data array is allocated, then pdata will still be %NULL. +%GPtrArray will only %NULL terminate pdata, if an actual +array is allocated. It does not guarantee that an array +is always allocated. In other words, if the length is zero, +then pdata may either point to a %NULL terminated array of length +zero or be %NULL. + +Since: 2.74 + +</description> +<parameters> +<parameter name="reserved_size"> +<parameter_description> number of pointers preallocated. +If @null_terminated is %TRUE, the actually allocated +buffer size is @reserved_size plus 1, unless @reserved_size +is zero, in which case no initial buffer gets allocated. +</parameter_description> +</parameter> +<parameter name="element_free_func"> +<parameter_description> A function to free elements with +destroy @array or %NULL +</parameter_description> +</parameter> +<parameter name="null_terminated"> +<parameter_description> whether to make the array as %NULL terminated. +</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 @@ -38836,6 +39198,10 @@ Frees the data in the array and resets the size to zero, while the underlying array is preserved for use elsewhere and returned to the caller. +Note that if the array is %NULL terminated this may still return +%NULL if the length of the array was zero and pdata was not yet +allocated. + Even if set, the #GDestroyNotify function will never be called on the current contents of the array and the caller is responsible for freeing the array elements. @@ -38888,7 +39254,8 @@ elements of the original array </parameter> </parameters> <return> the element data, which should be -freed using g_free(). +freed using g_free(). This may be %NULL if the array doesn’t have any +elements (i.e. if `*len` is zero). </return> </function> @@ -40604,7 +40971,7 @@ statically allocated. Calling g_rec_mutex_clear() on a locked recursive mutex leads to undefined behaviour. -Sine: 2.32 +Since: 2.32 </description> <parameters> @@ -41258,7 +41625,7 @@ print_uppercase_words (const gchar *string) GRegex *regex; GMatchInfo *match_info; -regex = g_regex_new ("[A-Z]+", 0, 0, NULL); +regex = g_regex_new ("[A-Z]+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); g_regex_match (regex, string, 0, &match_info); while (g_match_info_matches (match_info)) { @@ -41462,7 +41829,7 @@ GRegex *regex; GMatchInfo *match_info; GError *error = NULL; -regex = g_regex_new ("[A-Z]+", 0, 0, NULL); +regex = g_regex_new ("[A-Z]+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); g_regex_match_full (regex, string, -1, 0, 0, &match_info, &error); while (g_match_info_matches (match_info)) { @@ -41717,7 +42084,7 @@ g_hash_table_insert (h, "2", "TWO"); g_hash_table_insert (h, "3", "THREE"); g_hash_table_insert (h, "4", "FOUR"); -reg = g_regex_new ("1|2|3|4", 0, 0, NULL); +reg = g_regex_new ("1|2|3|4", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); res = g_regex_replace_eval (reg, text, -1, 0, 0, eval_cb, h, NULL); g_hash_table_destroy (h); @@ -42477,7 +42844,7 @@ statically allocated. Calling g_rw_lock_clear() when any thread holds the lock leads to undefined behaviour. -Sine: 2.32 +Since: 2.32 </description> <parameters> @@ -45420,6 +45787,37 @@ Since: 2.72 <return></return> </function> +<function name="g_signal_group_connect_closure"> +<description> +Connects @closure to the signal @detailed_signal on #GSignalGroup:target. + +You cannot connect a signal handler after #GSignalGroup:target has been set. + +Since: 2.74 + +</description> +<parameters> +<parameter name="self"> +<parameter_description> a #GSignalGroup +</parameter_description> +</parameter> +<parameter name="detailed_signal"> +<parameter_description> a string of the form `signal-name` with optional `::signal-detail` +</parameter_description> +</parameter> +<parameter name="closure"> +<parameter_description> the closure to connect. +</parameter_description> +</parameter> +<parameter name="after"> +<parameter_description> whether the handler should be called before or after the +default handler of the signal. +</parameter_description> +</parameter> +</parameters> +<return></return> +</function> + <function name="g_signal_group_connect_data"> <description> Connects @c_handler to the signal @detailed_signal @@ -49163,17 +49561,23 @@ absolute path, it will be looked for in the `PATH` variable from @envp. If both %G_SPAWN_SEARCH_PATH and %G_SPAWN_SEARCH_PATH_FROM_ENVP are used, the value from @envp takes precedence over the environment. +%G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's +standard input (by default, the child's standard input is attached to +`/dev/null`). %G_SPAWN_STDIN_FROM_DEV_NULL explicitly imposes the default +behavior. Both flags cannot be enabled at the same time and, in both cases, +the @stdin_pipe_out argument is ignored. + %G_SPAWN_STDOUT_TO_DEV_NULL means that the child's standard output -will be discarded, instead of going to the same location as the parent's -standard output. If you use this flag, @stdout_pipe_out must be %NULL. +will be discarded (by default, it goes to the same location as the parent's +standard output). %G_SPAWN_CHILD_INHERITS_STDOUT explicitly imposes the +default behavior. Both flags cannot be enabled at the same time and, in +both cases, the @stdout_pipe_out argument is ignored. %G_SPAWN_STDERR_TO_DEV_NULL means that the child's standard error -will be discarded, instead of going to the same location as the parent's -standard error. If you use this flag, @stderr_pipe_out must be %NULL. - -%G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's -standard input (by default, the child's standard input is attached to -`/dev/null`). If you use this flag, @stdin_pipe_out must be %NULL. +will be discarded (by default, it goes to the same location as the parent's +standard error). %G_SPAWN_CHILD_INHERITS_STDERR explicitly imposes the +default behavior. Both flags cannot be enabled at the same time and, in +both cases, the @stderr_pipe_out argument is ignored. It is valid to pass the same FD in multiple parameters (e.g. you can pass a single FD for both @stdout_fd and @stderr_fd, and include it in @@ -50978,7 +51382,7 @@ documentation </parameter> </parameters> <return> a UTF-8 string describing the error code. If the error code -is unknown, it returns a string like "unknown error (<code>)". +is unknown, it returns a string like "Unknown error: <code>". </return> </function> @@ -54438,7 +54842,7 @@ return; } // Reruns this same test in a subprocess -g_test_trap_subprocess (NULL, 0, 0); +g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_DEFAULT); g_test_trap_assert_failed (); g_test_trap_assert_stderr ("*ERROR*too large*"); } @@ -55987,6 +56391,39 @@ the range between %G_PRIORITY_DEFAULT and %G_PRIORITY_HIGH. </return> </function> +<function name="g_timeout_add_once"> +<description> +Sets a function to be called after @interval milliseconds have elapsed, +with the default priority, %G_PRIORITY_DEFAULT. + +The given @function is called once and then the source will be automatically +removed from the main context. + +This function otherwise behaves like g_timeout_add(). + +Since: 2.74 + +</description> +<parameters> +<parameter name="interval"> +<parameter_description> the time after which the function will be called, in +milliseconds (1/1000ths of a second) +</parameter_description> +</parameter> +<parameter name="function"> +<parameter_description> function to call +</parameter_description> +</parameter> +<parameter name="data"> +<parameter_description> data to pass to @function +</parameter_description> +</parameter> +</parameters> +<return> the ID (greater than 0) of the event source + +</return> +</function> + <function name="g_timeout_add_seconds"> <description> Sets a function to be called at regular intervals with the default @@ -62276,7 +62713,7 @@ of characters instead of a given number of bytes. The @src string must be valid UTF-8 encoded text. (Use g_utf8_validate() on all text before trying to use UTF-8 utility functions with it.) -Note you must ensure @dest is at least 4 * @n to fit the +Note you must ensure @dest is at least 4 * @n + 1 to fit the largest possible UTF-8 characters diff --git a/glib/src/glib_enums.defs b/glib/src/glib_enums.defs index 50195788..ba26cec2 100644 --- a/glib/src/glib_enums.defs +++ b/glib/src/glib_enums.defs @@ -407,6 +407,7 @@ ;; Original typedef: ;; typedef enum ;; { +;; G_IO_FLAG_NONE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_IO_FLAG_APPEND = 1 << 0, ;; G_IO_FLAG_NONBLOCK = 1 << 1, ;; G_IO_FLAG_IS_READABLE = 1 << 2, /* Read only flag */ @@ -422,6 +423,7 @@ (in-module "G") (c-name "GIOFlags") (values + '("none" "G_IO_FLAG_NONE" "0x0") '("append" "G_IO_FLAG_APPEND" "1 << 0") '("nonblock" "G_IO_FLAG_NONBLOCK" "1 << 1") '("is-readable" "G_IO_FLAG_IS_READABLE" "1 << 2") @@ -562,6 +564,7 @@ ;; Original typedef: ;; typedef enum ;; { +;; G_MARKUP_DEFAULT_FLAGS GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0, ;; G_MARKUP_TREAT_CDATA_AS_TEXT = 1 << 1, ;; G_MARKUP_PREFIX_ERROR_POSITION = 1 << 2, @@ -572,6 +575,7 @@ (in-module "G") (c-name "GMarkupParseFlags") (values + '("default-flags" "G_MARKUP_DEFAULT_FLAGS" "0x0") '("do-not-use-this-unsupported-flag" "G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG" "1 << 0") '("treat-cdata-as-text" "G_MARKUP_TREAT_CDATA_AS_TEXT" "1 << 1") '("prefix-error-position" "G_MARKUP_PREFIX_ERROR_POSITION" "1 << 2") @@ -913,6 +917,7 @@ ;; Original typedef: ;; typedef enum ;; { +;; G_REGEX_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_REGEX_CASELESS = 1 << 0, ;; G_REGEX_MULTILINE = 1 << 1, ;; G_REGEX_DOTALL = 1 << 2, @@ -930,13 +935,14 @@ ;; G_REGEX_NEWLINE_CRLF = G_REGEX_NEWLINE_CR | G_REGEX_NEWLINE_LF, ;; G_REGEX_NEWLINE_ANYCRLF = G_REGEX_NEWLINE_CR | 1 << 22, ;; G_REGEX_BSR_ANYCRLF = 1 << 23, -;; G_REGEX_JAVASCRIPT_COMPAT = 1 << 25 +;; G_REGEX_JAVASCRIPT_COMPAT GLIB_DEPRECATED_ENUMERATOR_IN_2_74 = 1 << 25 ;; } GRegexCompileFlags; (define-flags-extended RegexCompileFlags (in-module "G") (c-name "GRegexCompileFlags") (values + '("default" "G_REGEX_DEFAULT" "0x0") '("caseless" "G_REGEX_CASELESS" "1 << 0") '("multiline" "G_REGEX_MULTILINE" "1 << 1") '("dotall" "G_REGEX_DOTALL" "1 << 2") @@ -961,6 +967,7 @@ ;; Original typedef: ;; typedef enum ;; { +;; G_REGEX_MATCH_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_REGEX_MATCH_ANCHORED = 1 << 4, ;; G_REGEX_MATCH_NOTBOL = 1 << 7, ;; G_REGEX_MATCH_NOTEOL = 1 << 8, @@ -982,6 +989,7 @@ (in-module "G") (c-name "GRegexMatchFlags") (values + '("default" "G_REGEX_MATCH_DEFAULT" "0x0") '("anchored" "G_REGEX_MATCH_ANCHORED" "1 << 4") '("notbol" "G_REGEX_MATCH_NOTBOL" "1 << 7") '("noteol" "G_REGEX_MATCH_NOTEOL" "1 << 8") @@ -1217,7 +1225,34 @@ ;; G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5, ;; G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6, ;; G_SPAWN_SEARCH_PATH_FROM_ENVP = 1 << 7, -;; G_SPAWN_CLOEXEC_PIPES = 1 << 8 +;; G_SPAWN_CLOEXEC_PIPES = 1 << 8, +;; +;; /** +;; * G_SPAWN_CHILD_INHERITS_STDOUT: +;; * +;; * The child will inherit the parent's standard output. +;; * +;; * Since: 2.74 +;; */ +;; G_SPAWN_CHILD_INHERITS_STDOUT = 1 << 9, +;; +;; /** +;; * G_SPAWN_CHILD_INHERITS_STDERR: +;; * +;; * The child will inherit the parent's standard error. +;; * +;; * Since: 2.74 +;; */ +;; G_SPAWN_CHILD_INHERITS_STDERR = 1 << 10, +;; +;; /** +;; * G_SPAWN_STDIN_FROM_DEV_NULL: +;; * +;; * The child's standard input is attached to `/dev/null`. +;; * +;; * Since: 2.74 +;; */ +;; G_SPAWN_STDIN_FROM_DEV_NULL = 1 << 11 ;; } GSpawnFlags; (define-flags-extended SpawnFlags @@ -1234,6 +1269,9 @@ '("file-and-argv-zero" "G_SPAWN_FILE_AND_ARGV_ZERO" "1 << 6") '("search-path-from-envp" "G_SPAWN_SEARCH_PATH_FROM_ENVP" "1 << 7") '("cloexec-pipes" "G_SPAWN_CLOEXEC_PIPES" "1 << 8") + '("child-inherits-stdout" "G_SPAWN_CHILD_INHERITS_STDOUT" "1 << 9") + '("child-inherits-stderr" "G_SPAWN_CHILD_INHERITS_STDERR" "1 << 10") + '("stdin-from-dev-null" "G_SPAWN_STDIN_FROM_DEV_NULL" "1 << 11") ) ) @@ -1292,6 +1330,7 @@ ;; Original typedef: ;; typedef enum { +;; G_TEST_TRAP_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_TEST_TRAP_SILENCE_STDOUT = 1 << 7, ;; G_TEST_TRAP_SILENCE_STDERR = 1 << 8, ;; G_TEST_TRAP_INHERIT_STDIN = 1 << 9 @@ -1301,6 +1340,7 @@ (in-module "G") (c-name "GTestTrapFlags") (values + '("default" "G_TEST_TRAP_DEFAULT" "0x0") '("silence-stdout" "G_TEST_TRAP_SILENCE_STDOUT" "1 << 7") '("silence-stderr" "G_TEST_TRAP_SILENCE_STDERR" "1 << 8") '("inherit-stdin" "G_TEST_TRAP_INHERIT_STDIN" "1 << 9") @@ -1309,6 +1349,7 @@ ;; Original typedef: ;; typedef enum { +;; G_TEST_SUBPROCESS_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_TEST_SUBPROCESS_INHERIT_STDIN = 1 << 0, ;; G_TEST_SUBPROCESS_INHERIT_STDOUT = 1 << 1, ;; G_TEST_SUBPROCESS_INHERIT_STDERR = 1 << 2 @@ -1318,9 +1359,10 @@ (in-module "G") (c-name "GTestSubprocessFlags") (values - '("stdin" "G_TEST_SUBPROCESS_INHERIT_STDIN" "1 << 0") - '("stdout" "G_TEST_SUBPROCESS_INHERIT_STDOUT" "1 << 1") - '("stderr" "G_TEST_SUBPROCESS_INHERIT_STDERR" "1 << 2") + '("default" "G_TEST_SUBPROCESS_DEFAULT" "0x0") + '("inherit-stdin" "G_TEST_SUBPROCESS_INHERIT_STDIN" "1 << 0") + '("inherit-stdout" "G_TEST_SUBPROCESS_INHERIT_STDOUT" "1 << 1") + '("inherit-stderr" "G_TEST_SUBPROCESS_INHERIT_STDERR" "1 << 2") ) ) @@ -2165,7 +2207,9 @@ ;; G_FORMAT_SIZE_DEFAULT = 0, ;; G_FORMAT_SIZE_LONG_FORMAT = 1 << 0, ;; G_FORMAT_SIZE_IEC_UNITS = 1 << 1, -;; G_FORMAT_SIZE_BITS = 1 << 2 +;; G_FORMAT_SIZE_BITS = 1 << 2, +;; G_FORMAT_SIZE_ONLY_VALUE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 1 << 3, +;; G_FORMAT_SIZE_ONLY_UNIT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 1 << 4 ;; } GFormatSizeFlags; (define-flags-extended FormatSizeFlags @@ -2176,6 +2220,8 @@ '("long-format" "G_FORMAT_SIZE_LONG_FORMAT" "1 << 0") '("iec-units" "G_FORMAT_SIZE_IEC_UNITS" "1 << 1") '("bits" "G_FORMAT_SIZE_BITS" "1 << 2") + '("only-value" "G_FORMAT_SIZE_ONLY_VALUE" "1 << 3") + '("only-unit" "G_FORMAT_SIZE_ONLY_UNIT" "1 << 4") ) ) diff --git a/glib/src/glib_functions.defs b/glib/src/glib_functions.defs index 4963b298..6798d66a 100644 --- a/glib/src/glib_functions.defs +++ b/glib/src/glib_functions.defs @@ -231,6 +231,7 @@ (c-name "GIOFlags") (gtype-id "G_TYPE_IO_FLAGS") (values + '("none" "G_IO_FLAG_NONE") '("append" "G_IO_FLAG_APPEND") '("nonblock" "G_IO_FLAG_NONBLOCK") '("is-readable" "G_IO_FLAG_IS_READABLE") @@ -312,6 +313,7 @@ (c-name "GMarkupParseFlags") (gtype-id "G_TYPE_MARKUP_PARSE_FLAGS") (values + '("default-flags" "G_MARKUP_DEFAULT_FLAGS") '("do-not-use-this-unsupported-flag" "G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG") '("treat-cdata-as-text" "G_MARKUP_TREAT_CDATA_AS_TEXT") '("prefix-error-position" "G_MARKUP_PREFIX_ERROR_POSITION") @@ -500,6 +502,7 @@ (c-name "GRegexCompileFlags") (gtype-id "G_TYPE_REGEX_COMPILE_FLAGS") (values + '("default" "G_REGEX_DEFAULT") '("caseless" "G_REGEX_CASELESS") '("multiline" "G_REGEX_MULTILINE") '("dotall" "G_REGEX_DOTALL") @@ -526,6 +529,7 @@ (c-name "GRegexMatchFlags") (gtype-id "G_TYPE_REGEX_MATCH_FLAGS") (values + '("default" "G_REGEX_MATCH_DEFAULT") '("anchored" "G_REGEX_MATCH_ANCHORED") '("notbol" "G_REGEX_MATCH_NOTBOL") '("noteol" "G_REGEX_MATCH_NOTEOL") @@ -629,6 +633,9 @@ '("file-and-argv-zero" "G_SPAWN_FILE_AND_ARGV_ZERO") '("search-path-from-envp" "G_SPAWN_SEARCH_PATH_FROM_ENVP") '("cloexec-pipes" "G_SPAWN_CLOEXEC_PIPES") + '("child-inherits-stdout" "G_SPAWN_CHILD_INHERITS_STDOUT") + '("child-inherits-stderr" "G_SPAWN_CHILD_INHERITS_STDERR") + '("stdin-from-dev-null" "G_SPAWN_STDIN_FROM_DEV_NULL") ) ) @@ -666,6 +673,7 @@ (c-name "GTestTrapFlags") (gtype-id "G_TYPE_TEST_TRAP_FLAGS") (values + '("default" "G_TEST_TRAP_DEFAULT") '("silence-stdout" "G_TEST_TRAP_SILENCE_STDOUT") '("silence-stderr" "G_TEST_TRAP_SILENCE_STDERR") '("inherit-stdin" "G_TEST_TRAP_INHERIT_STDIN") @@ -677,9 +685,10 @@ (c-name "GTestSubprocessFlags") (gtype-id "G_TYPE_TEST_SUBPROCESS_FLAGS") (values - '("stdin" "G_TEST_SUBPROCESS_INHERIT_STDIN") - '("stdout" "G_TEST_SUBPROCESS_INHERIT_STDOUT") - '("stderr" "G_TEST_SUBPROCESS_INHERIT_STDERR") + '("default" "G_TEST_SUBPROCESS_DEFAULT") + '("inherit-stdin" "G_TEST_SUBPROCESS_INHERIT_STDIN") + '("inherit-stdout" "G_TEST_SUBPROCESS_INHERIT_STDOUT") + '("inherit-stderr" "G_TEST_SUBPROCESS_INHERIT_STDERR") ) ) @@ -1122,6 +1131,8 @@ '("long-format" "G_FORMAT_SIZE_LONG_FORMAT") '("iec-units" "G_FORMAT_SIZE_IEC_UNITS") '("bits" "G_FORMAT_SIZE_BITS") + '("only-value" "G_FORMAT_SIZE_ONLY_VALUE") + '("only-unit" "G_FORMAT_SIZE_ONLY_UNIT") ) ) @@ -1427,6 +1438,16 @@ ) ) +(define-function g_ptr_array_new_null_terminated + (c-name "g_ptr_array_new_null_terminated") + (return-type "GPtrArray*") + (parameters + '("guint" "reserved_size") + '("GDestroyNotify" "element_free_func") + '("gboolean" "null_terminated") + ) +) + (define-method free (of-object "GPtrArray") (c-name "g_ptr_array_free") @@ -1619,6 +1640,12 @@ ) ) +(define-method is_null_terminated + (of-object "GPtrArray") + (c-name "g_ptr_array_is_null_terminated") + (return-type "gboolean") +) + (define-function g_byte_array_new (c-name "g_byte_array_new") (is-constructor-of "GByteArray") @@ -2024,6 +2051,26 @@ ) ) +(define-function g_atomic_int_compare_and_exchange_full + (c-name "g_atomic_int_compare_and_exchange_full") + (return-type "gboolean") + (parameters + '("gint*" "atomic") + '("gint" "oldval") + '("gint" "newval") + '("gint*" "preval") + ) +) + +(define-function g_atomic_int_exchange + (c-name "g_atomic_int_exchange") + (return-type "gint") + (parameters + '("gint*" "atomic") + '("gint" "newval") + ) +) + (define-function g_atomic_int_add (c-name "g_atomic_int_add") (return-type "gint") @@ -2087,6 +2134,26 @@ ) ) +(define-function g_atomic_pointer_compare_and_exchange_full + (c-name "g_atomic_pointer_compare_and_exchange_full") + (return-type "gboolean") + (parameters + '("void*" "atomic") + '("gpointer" "oldval") + '("gpointer" "newval") + '("void*" "preval") + ) +) + +(define-function g_atomic_pointer_exchange + (c-name "g_atomic_pointer_exchange") + (return-type "gpointer") + (parameters + '("void*" "atomic") + '("gpointer" "newval") + ) +) + (define-function g_atomic_pointer_add (c-name "g_atomic_pointer_add") (return-type "gssize") @@ -3356,6 +3423,16 @@ ) ) +(define-function g_datalist_id_remove_multiple + (c-name "g_datalist_id_remove_multiple") + (return-type "none") + (parameters + '("GData**" "datalist") + '("GQuark*" "keys") + '("gsize" "n_keys") + ) +) + (define-function g_datalist_id_dup_data (c-name "g_datalist_id_dup_data") (return-type "gpointer") @@ -6562,6 +6639,24 @@ ) ) +(define-function g_win32_reopen_noninherited + (c-name "g_win32_reopen_noninherited") + (return-type "int") + (parameters + '("int" "fd") + '("int" "mode") + '("GError**" "err") + ) +) + +(define-function g_win32_handle_is_socket + (c-name "g_win32_handle_is_socket") + (return-type "gboolean") + (parameters + '("void*" "h") + ) +) + ;; From glibintl.h @@ -7608,6 +7703,16 @@ ) ) +(define-function g_timeout_add_once + (c-name "g_timeout_add_once") + (return-type "guint") + (parameters + '("guint" "interval") + '("GSourceOnceFunc" "function") + '("gpointer" "data") + ) +) + (define-function g_timeout_add_seconds_full (c-name "g_timeout_add_seconds_full") (return-type "guint") @@ -7672,6 +7777,15 @@ ) ) +(define-function g_idle_add_once + (c-name "g_idle_add_once") + (return-type "guint") + (parameters + '("GSourceOnceFunc" "function") + '("gpointer" "data") + ) +) + (define-function g_idle_remove_by_data (c-name "g_idle_remove_by_data") (return-type "gboolean") diff --git a/glib/src/gobject_enums.defs b/glib/src/gobject_enums.defs index 2735545b..3ace3c73 100644 --- a/glib/src/gobject_enums.defs +++ b/glib/src/gobject_enums.defs @@ -98,6 +98,7 @@ ;; Original typedef: ;; typedef enum ;; { +;; G_CONNECT_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0, ;; G_CONNECT_AFTER = 1 << 0, ;; G_CONNECT_SWAPPED = 1 << 1 ;; } GConnectFlags; @@ -106,6 +107,7 @@ (in-module "G") (c-name "GConnectFlags") (values + '("default" "G_CONNECT_DEFAULT" "0x0") '("after" "G_CONNECT_AFTER" "1 << 0") '("swapped" "G_CONNECT_SWAPPED" "1 << 1") ) @@ -162,6 +164,8 @@ ;; Original typedef: ;; typedef enum /*< skip >*/ ;; { +;; /* There is no G_TYPE_FUNDAMENTAL_FLAGS_NONE: this is implemented to use +;; * the same bits as GTypeFlags */ ;; G_TYPE_FLAG_CLASSED = (1 << 0), ;; G_TYPE_FLAG_INSTANTIATABLE = (1 << 1), ;; G_TYPE_FLAG_DERIVABLE = (1 << 2), @@ -182,6 +186,7 @@ ;; Original typedef: ;; typedef enum /*< skip >*/ ;; { +;; G_TYPE_FLAG_NONE GLIB_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) @@ -191,6 +196,7 @@ (in-module "G") (c-name "GTypeFlags") (values + '("none" "G_TYPE_FLAG_NONE" "0x0") '("abstract" "G_TYPE_FLAG_ABSTRACT" "(1 << 4)") '("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT" "(1 << 5)") '("final" "G_TYPE_FLAG_FINAL" "(1 << 6)") diff --git a/glib/src/gobject_functions.defs b/glib/src/gobject_functions.defs index 68baccb1..b1bc73cc 100644 --- a/glib/src/gobject_functions.defs +++ b/glib/src/gobject_functions.defs @@ -70,6 +70,7 @@ (c-name "GConnectFlags") (gtype-id "G_TYPE_CONNECT_FLAGS") (values + '("default" "G_CONNECT_DEFAULT") '("after" "G_CONNECT_AFTER") '("swapped" "G_CONNECT_SWAPPED") ) @@ -119,6 +120,7 @@ (c-name "GTypeFlags") (gtype-id "G_TYPE_TYPE_FLAGS") (values + '("none" "G_TYPE_FLAG_NONE") '("abstract" "G_TYPE_FLAG_ABSTRACT") '("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT") '("final" "G_TYPE_FLAG_FINAL") @@ -2218,6 +2220,15 @@ ) ) +(define-function g_param_value_is_valid + (c-name "g_param_value_is_valid") + (return-type "gboolean") + (parameters + '("GParamSpec*" "pspec") + '("const-GValue*" "value") + ) +) + (define-function g_param_value_convert (c-name "g_param_value_convert") (return-type "gboolean") @@ -2739,6 +2750,17 @@ (return-type "none") ) +(define-method connect_closure + (of-object "GSignalGroup") + (c-name "g_signal_group_connect_closure") + (return-type "none") + (parameters + '("const-gchar*" "detailed_signal") + '("GClosure*" "closure") + '("gboolean" "after") + ) +) + (define-method connect_object (of-object "GSignalGroup") (c-name "g_signal_group_connect_object") |