From 7768e3c06e08027da24750e1f5132081726bbed0 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Mon, 22 Aug 2022 13:29:13 +0200 Subject: Glib, Gio: Regenerate docs.xml and .defs files using gtk files from glib 2.73.3. --- glib/src/glib_docs.xml | 525 ++++++++++++++++++++++++++++++++++++---- glib/src/glib_enums.defs | 58 ++++- glib/src/glib_functions.defs | 120 ++++++++- glib/src/gobject_enums.defs | 6 + glib/src/gobject_functions.defs | 22 ++ 5 files changed, 678 insertions(+), 53 deletions(-) (limited to 'glib') 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. + + Default behaviour (no special flags). Since: 2.74 + + - whether the handler should be called before or after the -default handler of the signal. + If set, the handler should be called after the +default handler of the signal. Normally, the handler is called before +the default handler. - whether the instance and data should be swapped when + If set, the instance and data should be swapped when calling the handler; see g_signal_connect_swapped() for an example. @@ -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’. + + 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 + + + + 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 + + @@ -812,6 +829,10 @@ g_io_channel_set_flags(). + + no special flags set. Since: 2.74 + + 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. + + No special behaviour. Since: 2.74 + + flag you should not use @@ -1370,7 +1395,7 @@ option: `--name arg` or combined in a single argument: `--name=arg`. - No extra argument. This is useful for simple flags. + No extra argument. This is useful for simple flags or booleans. @@ -1461,7 +1486,8 @@ Flags which modify individual options. 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. @@ -1579,6 +1605,10 @@ Since: 2.14 + + No special options set. Since: 2.74 + + 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). - 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. + 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. @@ -1699,7 +1733,8 @@ characters '\r', '\n' and '\r\n'. Since: 2.34 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 @@ -1995,6 +2030,10 @@ Since: 2.14 + + No special options set. Since: 2.74 + + 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 + + the child will inherit the parent's standard output. +Since: 2.74 + + + + the child will inherit the parent's standard error. +Since: 2.74 + + + + the child's standard input is attached to `/dev/null`. +Since: 2.74 + + @@ -2502,6 +2556,10 @@ not show stdout and stderr. + + Default behaviour. Since: 2.74 + + 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 + + Default behaviour. Since: 2.74 + + 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. + + No special flags. Since: 2.74 + + Indicates an abstract type. No instances can be created for an abstract type @@ -7377,6 +7443,47 @@ Since: 2.4 + + +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 + + + + + a pointer to a #gint or #guint + + + + the value to compare with + + + + the value to conditionally replace with + + + + the contents of @atomic before this operation + + + + %TRUE if the exchange took place + + + + Decrements the value of @atomic by 1. @@ -7403,6 +7510,35 @@ Since: 2.4 + + +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 + + + + + a pointer to a #gint or #guint + + + + the value to replace with + + + + the value of @atomic before the exchange, signed + + + + This function existed before g_atomic_int_add() returned the prior @@ -7660,6 +7796,76 @@ Since: 2.4 + + +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 + + + + + a pointer to a #gpointer-sized value + + + + the value to compare with + + + + the value to conditionally replace with + + + + the contents of @atomic before this operation + + + + %TRUE if the exchange took place + + + + + + +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 + + + + + a pointer to a #gpointer-sized value + + + + the value to replace with + + + + the value of @atomic before the exchange + + + + Gets the current value of @atomic. @@ -16119,6 +16325,33 @@ Removes an element, using its #GQuark identifier. + + +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 + + + + + a datalist + + + + keys to remove + + + + length of @keys, must be <= 16 + + + + + + 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. + + +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 + + + + + function to call + + + + data to pass to @function + + + + the ID (greater than 0) of the event source + + + + 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 @@ -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 whether the contents of @value comply with the specifications +set out by @pspec. + +Since: 2.74 + + + + + a valid #GParamSpec + + + + a #GValue of correct type for @pspec + + + + whether the contents of @value comply with the specifications +set out by @pspec. + + + + 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 @@ -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 + + +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 + + + + + the #GPtrArray + + + + %TRUE if the array is made to be %NULL terminated. + + + + Creates a new #GPtrArray with a reference count of 1. @@ -38467,6 +38785,50 @@ destroy @array or %NULL + + +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 + + + + + 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. + + + + A function to free elements with +destroy @array or %NULL + + + + whether to make the array as %NULL terminated. + + + + A new #GPtrArray + + + + 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 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). @@ -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 @@ -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 @@ -45420,6 +45787,37 @@ Since: 2.72 + + +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 + + + + + a #GSignalGroup + + + + a string of the form `signal-name` with optional `::signal-detail` + + + + the closure to connect. + + + + whether the handler should be called before or after the +default handler of the signal. + + + + + + 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 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>". @@ -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. + + +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 + + + + + the time after which the function will be called, in +milliseconds (1/1000ths of a second) + + + + function to call + + + + data to pass to @function + + + + the ID (greater than 0) of the event source + + + + 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") -- cgit v1.2.1