diff --git a/rust-bindings/rust/gir-files/GLib-2.0.gir b/rust-bindings/rust/gir-files/GLib-2.0.gir
index 6f8527d9..0a894f03 100644
--- a/rust-bindings/rust/gir-files/GLib-2.0.gir
+++ b/rust-bindings/rust/gir-files/GLib-2.0.gir
@@ -9,24 +9,20 @@ and/or use gtk-doc annotations. -->
Integer representing a day of the month; between 1 and 31.
#G_DATE_BAD_DAY represents an invalid day of the month.
-
Integer representing a year; #G_DATE_BAD_YEAR is the invalid
value. The year must be 1 or higher; negative (BC) years are not
allowed. The year is represented with four digits.
-
Opaque type. See g_main_context_pusher_new() for details.
-
Opaque type. See g_mutex_locker_new() for details.
-
@@ -37,28 +33,23 @@ while Windows uses process handles (which are pointers).
GPid is used in GLib only for descendant processes spawned with
the g_spawn functions.
-
A GQuark is a non-zero integer which uniquely identifies a
particular string. A GQuark value of zero is associated to %NULL.
-
Opaque type. See g_rw_lock_reader_locker_new() for details.
-
Opaque type. See g_rw_lock_writer_locker_new() for details.
-
Opaque type. See g_rec_mutex_locker_new() for details.
-
@@ -69,13 +60,11 @@ called on `char*` arrays not allocated using g_ref_string_new().
If using #GRefString with autocleanups, g_autoptr() must be used rather than
g_autofree(), so that the reference counting metadata is also freed.
-
A typedef alias for gchar**. This is mostly useful when used together with
g_auto().
-
@@ -99,16 +88,13 @@ gtime = (GTime)ttime;
]|
This is not [Y2038-safe](https://en.wikipedia.org/wiki/Year_2038_problem).
Use #GDateTime or #time_t instead.
-
A value representing an interval of time, in microseconds.
-
-
@@ -121,7 +107,6 @@ Note this is not necessarily the same as the value returned by GCC’s
`__alignof__` operator, which returns the preferred alignment for a type.
The preferred alignment may be a stricter alignment than the minimal
alignment.
-
a type-name
@@ -129,7 +114,6 @@ alignment.
-
@@ -141,7 +125,6 @@ For example,
- `G_APPROX_VALUE (3.14, 3.15, 0.001)` evaluates to false
- `G_APPROX_VALUE (n, 0.f, FLT_EPSILON)` evaluates to true if `n` is within
the single precision floating point epsilon from zero
-
a numeric value
@@ -165,11 +148,9 @@ The typical usage would be something like:
fprintf (out, "value=%s\n", g_ascii_dtostr (buf, sizeof (buf), value));
]|
-
-
@@ -177,7 +158,6 @@ The typical usage would be something like:
Contains the public fields of a GArray.
-
a pointer to the element data. The data may be moved as
elements are added to the #GArray.
@@ -190,7 +170,6 @@ The typical usage would be something like:
Adds @len elements onto the end of the array.
-
the #GArray
@@ -241,7 +220,6 @@ guint matched_index;
gboolean result = g_array_binary_search (garray, &i, cmpint, &matched_index);
...
]|
-
%TRUE if @target is one of the elements of @array, %FALSE otherwise.
@@ -271,7 +249,6 @@ gboolean result = g_array_binary_search (garray, &i, cmpint, &matched_in
Create a shallow copy of a #GArray. If the array elements consist of
pointers to data, the pointers are copied but the actual data is not.
-
A copy of @array.
@@ -302,7 +279,6 @@ function has been set for @array.
This function is not thread-safe. If using a #GArray from multiple
threads, use only the atomic g_array_ref() and g_array_unref()
functions.
-
the element data if @free_segment is %FALSE, otherwise
%NULL. The element data should be freed using g_free().
@@ -323,7 +299,6 @@ functions.
Gets the size of the elements in @array.
-
Size of each element, in bytes
@@ -351,7 +326,6 @@ upwards.
@data may be %NULL if (and only if) @len is zero. If @len is zero, this
function is a no-op.
-
the #GArray
@@ -381,7 +355,6 @@ function is a no-op.
Creates a new #GArray with a reference count of 1.
-
the new #GArray
@@ -414,7 +387,6 @@ function is a no-op.
This operation is slower than g_array_append_vals() since the
existing elements in the array have to be moved to make space for
the new elements.
-
the #GArray
@@ -441,7 +413,6 @@ the new elements.
Atomically increments the reference count of @array by one.
This function is thread-safe and may be called from any thread.
-
The passed in #GArray
@@ -460,7 +431,6 @@ This function is thread-safe and may be called from any thread.
Removes the element at the given index from a #GArray. The following
elements are moved down one place.
-
the #GArray
@@ -485,7 +455,6 @@ elements are moved down one place.
element in the array is used to fill in the space, so this function
does not preserve the order of the #GArray. But it is faster than
g_array_remove_index().
-
the #GArray
@@ -508,7 +477,6 @@ g_array_remove_index().
Removes the given number of elements starting at the given index
from a #GArray. The following elements are moved to close the gap.
-
the #GArray
@@ -543,7 +511,6 @@ pointer to the element to clear, rather than the element itself.
Note that in contrast with other uses of #GDestroyNotify
functions, @clear_func is expected to clear the contents of
the array element it is given, but not free the element itself.
-
@@ -563,7 +530,6 @@ the array element it is given, but not free the element itself.
Sets the size of the array, expanding it if necessary. If the array
was created with @clear_ set to %TRUE, the new elements are set to 0.
-
the #GArray
@@ -588,7 +554,6 @@ was created with @clear_ set to %TRUE, the new elements are set to 0.
a reference count of 1. This avoids frequent reallocation, if you
are going to add many elements to the array. Note however that the
size of the array is still 0.
-
the new #GArray
@@ -623,7 +588,6 @@ than second arg, zero for equal, greater zero if first arg is
greater than second arg).
This is guaranteed to be a stable sort since version 2.32.
-
@@ -649,7 +613,6 @@ This is guaranteed to be a stable sort since version 2.32.
There used to be a comment here about making the sort stable by
using the addresses of the elements in the comparison function.
This did not actually work, so any such code should be removed.
-
@@ -689,7 +652,6 @@ gsize data_len;
data = g_array_steal (some_array, &data_len);
...
]|
-
the element data, which should be
freed using g_free().
@@ -714,7 +676,6 @@ data = g_array_steal (some_array, &data_len);
reference count drops to 0, all memory allocated by the array is
released. This function is thread-safe and may be called from any
thread.
-
@@ -729,7 +690,6 @@ thread.
-
@@ -757,7 +717,6 @@ thread.
The GAsyncQueue struct is an opaque data structure which represents
an asynchronous queue. It should only be accessed through the
g_async_queue_* functions.
-
Returns the length of the queue.
@@ -767,7 +726,6 @@ value means waiting threads, and a positive value means available
entries in the @queue. A return value of 0 could mean n entries
in the queue and n threads waiting. This can happen due to locking
of the queue or due to scheduling.
-
the length of the @queue
@@ -790,7 +748,6 @@ in the queue and n threads waiting. This can happen due to locking
of the queue or due to scheduling.
This function must be called while holding the @queue's lock.
-
the length of the @queue.
@@ -812,7 +769,6 @@ Call g_async_queue_unlock() to drop the lock again.
While holding the lock, you can only call the
g_async_queue_*_unlocked() functions on @queue. Otherwise,
deadlock may occur.
-
@@ -826,7 +782,6 @@ deadlock may occur.
Pops data from the @queue. If @queue is empty, this function
blocks until data becomes available.
-
data from the queue
@@ -843,7 +798,6 @@ blocks until data becomes available.
blocks until data becomes available.
This function must be called while holding the @queue's lock.
-
data from the queue.
@@ -857,7 +811,6 @@ This function must be called while holding the @queue's lock.
Pushes the @data into the @queue. @data must not be %NULL.
-
@@ -877,7 +830,6 @@ This function must be called while holding the @queue's lock.
In contrast to g_async_queue_push(), this function
pushes the new item ahead of the items already in the queue,
so that it will be the next one to be popped off the queue.
-
@@ -899,7 +851,6 @@ pushes the new item ahead of the items already in the queue,
so that it will be the next one to be popped off the queue.
This function must be called while holding the @queue's lock.
-
@@ -925,7 +876,6 @@ This function will lock @queue before it sorts the queue and unlock
it when it is finished.
For an example of @func see g_async_queue_sort().
-
@@ -964,7 +914,6 @@ new elements, see g_async_queue_sort().
This function must be called while holding the @queue's lock.
For an example of @func see g_async_queue_sort().
-
@@ -991,7 +940,6 @@ For an example of @func see g_async_queue_sort().
Pushes the @data into the @queue. @data must not be %NULL.
This function must be called while holding the @queue's lock.
-
@@ -1009,7 +957,6 @@ This function must be called while holding the @queue's lock.
Increases the reference count of the asynchronous @queue by 1.
You do not need to hold the lock to call this function.
-
the @queue that was passed in (since 2.6)
@@ -1026,7 +973,6 @@ You do not need to hold the lock to call this function.
Reference counting is done atomically.
so g_async_queue_ref() can be used regardless of the @queue's
lock.
-
@@ -1039,7 +985,6 @@ lock.
Remove an item from the queue.
-
%TRUE if the item was removed
@@ -1059,7 +1004,6 @@ lock.
Remove an item from the queue.
This function must be called while holding the @queue's lock.
-
%TRUE if the item was removed
@@ -1098,7 +1042,6 @@ lowest priority would be at the top of the queue, you could use:
return (id1 > id2 ? +1 : id1 == id2 ? 0 : -1);
]|
-
@@ -1127,7 +1070,6 @@ if the first element should be lower in the @queue than the second
element.
This function must be called while holding the @queue's lock.
-
@@ -1155,7 +1097,6 @@ If no data is received before @end_time, %NULL is returned.
To easily calculate @end_time, a combination of g_get_real_time()
and g_time_val_add() can be used.
use g_async_queue_timeout_pop().
-
data from the queue or %NULL, when no data is
received before @end_time.
@@ -1183,7 +1124,6 @@ and g_time_val_add() can be used.
This function must be called while holding the @queue's lock.
use g_async_queue_timeout_pop_unlocked().
-
data from the queue or %NULL, when no data is
received before @end_time.
@@ -1205,7 +1145,6 @@ This function must be called while holding the @queue's lock.
@timeout microseconds, or until data becomes available.
If no data is received before the timeout, %NULL is returned.
-
data from the queue or %NULL, when no data is
received before the timeout.
@@ -1229,7 +1168,6 @@ If no data is received before the timeout, %NULL is returned.
If no data is received before the timeout, %NULL is returned.
This function must be called while holding the @queue's lock.
-
data from the queue or %NULL, when no data is
received before the timeout.
@@ -1249,7 +1187,6 @@ This function must be called while holding the @queue's lock.
Tries to pop data from the @queue. If no data is available,
%NULL is returned.
-
data from the queue or %NULL, when no data is
available immediately.
@@ -1267,7 +1204,6 @@ This function must be called while holding the @queue's lock.
%NULL is returned.
This function must be called while holding the @queue's lock.
-
data from the queue or %NULL, when no data is
available immediately.
@@ -1286,7 +1222,6 @@ This function must be called while holding the @queue's lock.
Calling this function when you have not acquired
the with g_async_queue_lock() leads to undefined
behaviour.
-
@@ -1304,7 +1239,6 @@ If the reference count went to 0, the @queue will be destroyed
and the memory allocated will be freed. So you are not allowed
to use the @queue afterwards, as it might have disappeared.
You do not need to hold the lock to call this function.
-
@@ -1323,7 +1257,6 @@ will be destroyed and the memory allocated will be freed.
Reference counting is done atomically.
so g_async_queue_unref() can be used regardless of the @queue's
lock.
-
@@ -1336,7 +1269,6 @@ lock.
Creates a new asynchronous queue.
-
a new #GAsyncQueue. Free with g_async_queue_unref()
@@ -1346,7 +1278,6 @@ lock.
Creates a new asynchronous queue and sets up a destroy notify
function that is used to free any remaining queue items when
the queue is destroyed after the final unref.
-
a new #GAsyncQueue. Free with g_async_queue_unref()
@@ -1362,13 +1293,11 @@ the queue is destroyed after the final unref.
Specifies one of the possible types of byte order.
See #G_BYTE_ORDER.
-
The `GBookmarkFile` structure contains only
private data and should not be directly accessed.
-
Adds the application with @name and @exec to the list of
applications that have registered a bookmark for @uri into
@@ -1392,7 +1321,6 @@ with the same @name had already registered a bookmark for
@uri inside @bookmark.
If no bookmark for @uri is found, one is created.
-
@@ -1421,7 +1349,6 @@ If no bookmark for @uri is found, one is created.
belongs to.
If no bookmark for @uri is found then it is created.
-
@@ -1442,7 +1369,6 @@ If no bookmark for @uri is found then it is created.
Frees a #GBookmarkFile.
-
@@ -1460,7 +1386,6 @@ In the event the URI cannot be found, -1 is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
Use g_bookmark_file_get_added_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
a timestamp
@@ -1481,7 +1406,6 @@ In the event the URI cannot be found, -1 is returned and
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a #GDateTime
@@ -1513,7 +1437,6 @@ the command line fails, an error of the #G_SHELL_ERROR domain is
set and %FALSE is returned.
Use g_bookmark_file_get_application_info() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
%TRUE on success.
@@ -1559,7 +1482,6 @@ for @uri, %FALSE is returned and error is set to
#G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting
the command line fails, an error of the #G_SHELL_ERROR domain is
set and %FALSE is returned.
-
%TRUE on success.
@@ -1597,7 +1519,6 @@ bookmark for @uri.
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a newly allocated %NULL-terminated array of strings.
Use g_strfreev() to free it.
@@ -1625,7 +1546,6 @@ In the event the URI cannot be found, %NULL is returned and
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a newly allocated string or %NULL if the specified
URI cannot be found.
@@ -1650,7 +1570,6 @@ In the event the URI cannot be found, %NULL is returned and
The returned array is %NULL terminated, so @length may optionally
be %NULL.
-
a newly allocated %NULL-terminated array of group names.
Use g_strfreev() to free it.
@@ -1678,7 +1597,6 @@ be %NULL.
In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
%TRUE if the icon for the bookmark for the URI was found.
You should free the returned strings.
@@ -1710,7 +1628,6 @@ In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the
event that the private flag cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE.
-
%TRUE if the private flag is set, %FALSE otherwise.
@@ -1733,7 +1650,6 @@ In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the
event that the MIME type cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE.
-
a newly allocated string or %NULL if the specified
URI cannot be found.
@@ -1757,7 +1673,6 @@ In the event the URI cannot be found, -1 is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
Use g_bookmark_file_get_modified_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
a timestamp
@@ -1778,7 +1693,6 @@ In the event the URI cannot be found, -1 is returned and
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a #GDateTime
@@ -1796,7 +1710,6 @@ In the event the URI cannot be found, %NULL is returned and
Gets the number of bookmarks inside @bookmark.
-
the number of bookmarks
@@ -1815,7 +1728,6 @@ If @uri is %NULL, the title of @bookmark is returned.
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a newly allocated string or %NULL if the specified
URI cannot be found.
@@ -1836,7 +1748,6 @@ In the event the URI cannot be found, %NULL is returned and
Returns all URIs of the bookmarks in the bookmark file @bookmark.
The array of returned URIs will be %NULL-terminated, so @length may
optionally be %NULL.
-
a newly allocated %NULL-terminated array of strings.
Use g_strfreev() to free it.
@@ -1862,7 +1773,6 @@ In the event the URI cannot be found, -1 is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
Use g_bookmark_file_get_visited_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
a timestamp.
@@ -1883,7 +1793,6 @@ In the event the URI cannot be found, -1 is returned and
In the event the URI cannot be found, %NULL is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
a #GDateTime
@@ -1905,7 +1814,6 @@ registered by application @name.
In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
%TRUE if the application @name was found
@@ -1931,7 +1839,6 @@ the bookmark for @uri belongs to.
In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
%TRUE if @group was found.
@@ -1953,7 +1860,6 @@ In the event the URI cannot be found, %FALSE is returned and
Looks whether the desktop bookmark has an item with its URI set to @uri.
-
%TRUE if @uri is inside @bookmark, %FALSE otherwise
@@ -1973,7 +1879,6 @@ In the event the URI cannot be found, %FALSE is returned and
Loads a bookmark file from memory into an empty #GBookmarkFile
structure. If the object cannot be created then @error is set to a
#GBookmarkFileError.
-
%TRUE if a desktop bookmark could be loaded.
@@ -2002,7 +1907,6 @@ paths returned from g_get_user_data_dir() and g_get_system_data_dirs(),
loads the file into @bookmark and returns the file's full path in
@full_path. If the file could not be loaded then @error is
set to either a #GFileError or #GBookmarkFileError.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -2027,7 +1931,6 @@ set to either a #GFileError or #GBookmarkFileError.
Loads a desktop bookmark file into an empty #GBookmarkFile structure.
If the file could not be loaded then @error is set to either a #GFileError
or #GBookmarkFileError.
-
%TRUE if a desktop bookmark file could be loaded
@@ -2051,7 +1954,6 @@ existing bookmark for @new_uri will be overwritten. If @new_uri is
In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
-
%TRUE if the URI was successfully changed
@@ -2080,7 +1982,6 @@ In the event the URI cannot be found, %FALSE is returned and
In the event that no application with name @app_name has registered
a bookmark for @uri, %FALSE is returned and error is set to
#G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED.
-
%TRUE if the application was successfully removed.
@@ -2108,7 +2009,6 @@ In the event the URI cannot be found, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.
In the event no group was defined, %FALSE is returned and
@error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE.
-
%TRUE if @group was successfully removed.
@@ -2130,7 +2030,6 @@ In the event no group was defined, %FALSE is returned and
Removes the bookmark for @uri from the bookmark file @bookmark.
-
%TRUE if the bookmark was removed successfully.
@@ -2152,7 +2051,6 @@ In the event no group was defined, %FALSE is returned and
If no bookmark for @uri is found then it is created.
Use g_bookmark_file_set_added_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
@@ -2175,7 +2073,6 @@ If no bookmark for @uri is found then it is created.
Sets the time the bookmark for @uri was added into @bookmark.
If no bookmark for @uri is found then it is created.
-
@@ -2225,7 +2122,6 @@ for @uri, %FALSE is returned and error is set to
for @uri is found, one is created.
Use g_bookmark_file_set_application_info() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
%TRUE if the application's meta-data was successfully
changed.
@@ -2286,7 +2182,6 @@ in the event that no application @name has registered a bookmark
for @uri, %FALSE is returned and error is set to
#G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark
for @uri is found, one is created.
-
%TRUE if the application's meta-data was successfully
changed.
@@ -2326,7 +2221,6 @@ for @uri is found, one is created.
If @uri is %NULL, the description of @bookmark is set.
If a bookmark for @uri cannot be found then it is created.
-
@@ -2350,7 +2244,6 @@ If a bookmark for @uri cannot be found then it is created.
set group name list is removed.
If @uri cannot be found then an item for it is created.
-
@@ -2382,7 +2275,6 @@ the currently set icon. @href can either be a full URL for the icon
file or the icon name following the Icon Naming specification.
If no bookmark for @uri is found one is created.
-
@@ -2409,7 +2301,6 @@ If no bookmark for @uri is found one is created.
Sets the private flag of the bookmark for @uri.
If a bookmark for @uri cannot be found then it is created.
-
@@ -2432,7 +2323,6 @@ If a bookmark for @uri cannot be found then it is created.
Sets @mime_type as the MIME type of the bookmark for @uri.
If a bookmark for @uri cannot be found then it is created.
-
@@ -2462,7 +2352,6 @@ modifies a bookmark also changes the modification time, except for
g_bookmark_file_set_visited_date_time().
Use g_bookmark_file_set_modified_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
@@ -2490,7 +2379,6 @@ The "modified" time should only be set when the bookmark's meta-data
was actually changed. Every function of #GBookmarkFile that
modifies a bookmark also changes the modification time, except for
g_bookmark_file_set_visited_date_time().
-
@@ -2516,7 +2404,6 @@ bookmark file @bookmark.
If @uri is %NULL, the title of @bookmark is set.
If a bookmark for @uri cannot be found then it is created.
-
@@ -2547,7 +2434,6 @@ using g_bookmark_file_get_mime_type(). Changing the "visited" time
does not affect the "modified" time.
Use g_bookmark_file_set_visited_date_time() instead, as
`time_t` is deprecated due to the year 2038 problem.
-
@@ -2576,7 +2462,6 @@ either using the command line retrieved by g_bookmark_file_get_application_info(
or by the default application for the bookmark's MIME type, retrieved
using g_bookmark_file_get_mime_type(). Changing the "visited" time
does not affect the "modified" time.
-
@@ -2597,7 +2482,6 @@ does not affect the "modified" time.
This function outputs @bookmark as a string.
-
a newly allocated string holding the contents of the #GBookmarkFile
@@ -2619,7 +2503,6 @@ does not affect the "modified" time.
This function outputs @bookmark into a file. The write process is
guaranteed to be atomic by using g_file_set_contents() internally.
-
%TRUE if the file was successfully written.
@@ -2646,7 +2529,6 @@ guaranteed to be atomic by using g_file_set_contents() internally.
Use g_bookmark_file_load_from_file(), g_bookmark_file_load_from_data()
or g_bookmark_file_load_from_data_dirs() to read an existing bookmark
file.
-
an empty #GBookmarkFile
@@ -2655,7 +2537,6 @@ file.
Error codes returned by bookmark file parsing.
-
URI was ill-formed
@@ -2685,7 +2566,6 @@ file.
Contains the public fields of a GByteArray.
-
a pointer to the element data. The data may be moved as
elements are added to the #GByteArray
@@ -2698,7 +2578,6 @@ file.
Adds the given bytes to the end of the #GByteArray.
The array will grow in size automatically if necessary.
-
the #GByteArray
@@ -2727,7 +2606,6 @@ The array will grow in size automatically if necessary.
%TRUE it frees the actual byte data. If the reference count of
@array is greater than one, the #GByteArray wrapper is preserved but
the size of @array will be set to zero.
-
the element data if @free_segment is %FALSE, otherwise
%NULL. The element data should be freed using g_free().
@@ -2755,7 +2633,6 @@ will be set to zero.
This is identical to using g_bytes_new_take() and g_byte_array_free()
together.
-
a new immutable #GBytes representing same
byte data that was in the array
@@ -2772,7 +2649,6 @@ together.
Creates a new #GByteArray with a reference count of 1.
-
the new #GByteArray
@@ -2782,8 +2658,11 @@ together.
Create byte array containing the data. The data will be owned by the array
-and will be freed with g_free(), i.e. it could be allocated using g_strdup().
-
+and will be freed with g_free(), i.e. it could be allocated using g_strdup().
+
+Do not use it if @len is greater than %G_MAXUINT. #GByteArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
a new #GByteArray
@@ -2806,7 +2685,6 @@ and will be freed with g_free(), i.e. it could be allocated using g_strdup().
Adds the given data to the start of the #GByteArray.
The array will grow in size automatically if necessary.
-
the #GByteArray
@@ -2833,7 +2711,6 @@ The array will grow in size automatically if necessary.
Atomically increments the reference count of @array by one.
This function is thread-safe and may be called from any thread.
-
The passed in #GByteArray
@@ -2852,7 +2729,6 @@ This function is thread-safe and may be called from any thread.
Removes the byte at the given index from a #GByteArray.
The following bytes are moved down one place.
-
the #GByteArray
@@ -2877,7 +2753,6 @@ The following bytes are moved down one place.
element in the array is used to fill in the space, so this function
does not preserve the order of the #GByteArray. But it is faster
than g_byte_array_remove_index().
-
the #GByteArray
@@ -2900,7 +2775,6 @@ than g_byte_array_remove_index().
Removes the given number of bytes starting at the given index from a
#GByteArray. The following elements are moved to close the gap.
-
the #GByteArray
@@ -2926,7 +2800,6 @@ than g_byte_array_remove_index().
Sets the size of the #GByteArray, expanding it if necessary.
-
the #GByteArray
@@ -2951,7 +2824,6 @@ than g_byte_array_remove_index().
This avoids frequent reallocation, if you are going to add many
bytes to the array. Note however that the size of the array is still
0.
-
the new #GByteArray
@@ -2976,7 +2848,6 @@ is undefined. If you want equal elements to keep their order (i.e.
you want a stable sort) you can write a comparison function that,
if two elements would otherwise compare equal, compares them by
their addresses.
-
@@ -2996,7 +2867,6 @@ their addresses.
Like g_byte_array_sort(), but the comparison function takes an extra
user data argument.
-
@@ -3021,7 +2891,6 @@ user data argument.
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.
-
the element data, which should be
freed using g_free().
@@ -3046,7 +2915,6 @@ to the caller.
reference count drops to 0, all memory allocated by the array is
released. This function is thread-safe and may be called from any
thread.
-
@@ -3085,12 +2953,10 @@ The data pointed to by this bytes must not be modified. For a mutable
array of bytes see #GByteArray. Use g_bytes_unref_to_array() to create a
mutable array for a #GBytes sequence. To create an immutable #GBytes from
a mutable #GByteArray, use the g_byte_array_free_to_bytes() function.
-
Creates a new #GBytes from @data.
@data is copied. If @size is 0, @data may be %NULL.
-
a new #GBytes
@@ -3114,7 +2980,6 @@ a mutable #GByteArray, use the g_byte_array_free_to_bytes() function.
@data must be static (ie: never modified or freed). It may be %NULL if @size
is 0.
-
a new #GBytes
@@ -3146,7 +3011,6 @@ For creating #GBytes with memory from other allocators, see
g_bytes_new_with_free_func().
@data may be %NULL if @size is 0.
-
a new #GBytes
@@ -3175,7 +3039,6 @@ When the last reference is dropped, @free_func will be called with the
been called to indicate that the bytes is no longer in use.
@data may be %NULL if @size is 0.
-
a new #GBytes
@@ -3212,7 +3075,6 @@ prefix of the longer one then the shorter one is considered to be less than
the longer one. Otherwise the first byte where both differ is used for
comparison. If @bytes1 has a smaller value at that position it is
considered less, otherwise greater than @bytes2.
-
a negative value if @bytes1 is less than @bytes2, a positive value
if @bytes1 is greater than @bytes2, and zero if @bytes1 is equal to
@@ -3236,7 +3098,6 @@ considered less, otherwise greater than @bytes2.
This function can be passed to g_hash_table_new() as the @key_equal_func
parameter, when using non-%NULL #GBytes pointers as keys in a #GHashTable.
-
%TRUE if the two keys match.
@@ -3260,7 +3121,6 @@ This function will always return the same pointer for a given #GBytes.
%NULL may be returned if @size is 0. This is not guaranteed, as the #GBytes
may represent an empty string with @data non-%NULL and @size as 0. %NULL will
not be returned if @size is non-zero.
-
a pointer to the byte data, or %NULL
@@ -3283,7 +3143,6 @@ not be returned if @size is non-zero.
Get the size of the byte data in the #GBytes.
This function will always return the same value for a given #GBytes.
-
the size
@@ -3300,7 +3159,6 @@ This function will always return the same value for a given #GBytes.
This function can be passed to g_hash_table_new() as the @key_hash_func
parameter, when using non-%NULL #GBytes pointers as keys in a #GHashTable.
-
a hash value corresponding to the key.
@@ -3324,7 +3182,6 @@ Since 2.56, if @offset is 0 and @length matches the size of @bytes, then
is a slice of another #GBytes, then the resulting #GBytes will reference
the same #GBytes instead of @bytes. This allows consumers to simplify the
usage of #GBytes when asynchronously writing to streams.
-
a new #GBytes
@@ -3346,7 +3203,6 @@ usage of #GBytes when asynchronously writing to streams.
Increase the reference count on @bytes.
-
the #GBytes
@@ -3361,7 +3217,6 @@ usage of #GBytes when asynchronously writing to streams.
Releases a reference on @bytes. This may result in the bytes being
freed. If @bytes is %NULL, it will return immediately.
-
@@ -3379,8 +3234,11 @@ the same byte data.
As an optimization, the byte data is transferred to the array without copying
if this was the last reference to bytes and bytes was created with
g_bytes_new(), g_bytes_new_take() or g_byte_array_free_to_bytes(). In all
-other cases the data is copied.
-
+other cases the data is copied.
+
+Do not use it if @bytes contains more than %G_MAXUINT
+bytes. #GByteArray stores the length of its data in #guint, which
+may be shorter than #gsize, that @bytes is using.
a new mutable #GByteArray containing the same byte data
@@ -3402,7 +3260,6 @@ As an optimization, the byte data is returned without copying if this was
the last reference to bytes and bytes was created with g_bytes_new(),
g_bytes_new_take() or g_byte_array_free_to_bytes(). In all other cases the
data is copied.
-
a pointer to the same byte data, which should be
freed with g_free()
@@ -3425,7 +3282,6 @@ data is copied.
Checks the version of the GLib library that is being compiled
against. See glib_check_version() for a runtime check.
-
the major version to check for
@@ -3442,28 +3298,24 @@ against. See glib_check_version() for a runtime check.
The set of uppercase ASCII alphabet characters.
Used for specifying valid identifier characters
in #GScannerConfig.
-
The set of ASCII digits.
Used for specifying valid identifier characters
in #GScannerConfig.
-
The set of lowercase ASCII alphabet characters.
Used for specifying valid identifier characters
in #GScannerConfig.
-
An opaque structure representing a checksumming operation.
To create a new GChecksum, use g_checksum_new(). To free
a GChecksum, use g_checksum_free().
-
Creates a new #GChecksum, using the checksum algorithm @checksum_type.
If the @checksum_type is not known, %NULL is returned.
@@ -3478,8 +3330,7 @@ vector of raw bytes. Once either g_checksum_get_string() or
g_checksum_get_digest() have been called on a #GChecksum, the checksum
will be closed and it won't be possible to call g_checksum_update()
on it anymore.
-
-
+
the newly created #GChecksum, or %NULL.
Use g_checksum_free() to free the memory allocated by it.
@@ -3495,10 +3346,9 @@ on it anymore.
Copies a #GChecksum. If @checksum has been closed, by calling
g_checksum_get_string() or g_checksum_get_digest(), the copied
checksum will be closed as well.
-
- the copy of the passed #GChecksum. Use g_checksum_free()
- when finished using it.
+ the copy of the passed #GChecksum. Use
+ g_checksum_free() when finished using it.
@@ -3510,7 +3360,6 @@ checksum will be closed as well.
Frees the memory allocated for @checksum.
-
@@ -3527,7 +3376,6 @@ into @buffer. The size of the digest depends on the type of checksum.
Once this function has been called, the #GChecksum is closed and can
no longer be updated with g_checksum_update().
-
@@ -3556,7 +3404,6 @@ Once this function has been called the #GChecksum can no longer be
updated with g_checksum_update().
The hexadecimal characters will be lower case.
-
the hexadecimal representation of the checksum. The
returned string is owned by the checksum and should not be modified
@@ -3572,7 +3419,6 @@ The hexadecimal characters will be lower case.
Resets the state of the @checksum back to its initial state.
-
@@ -3587,7 +3433,6 @@ The hexadecimal characters will be lower case.
Feeds @data into an existing #GChecksum. The checksum must still be
open, that is g_checksum_get_string() or g_checksum_get_digest() must
not have been called on @checksum.
-
@@ -3610,7 +3455,6 @@ not have been called on @checksum.
Gets the length in bytes of digests of type @checksum_type
-
the checksum length, or -1 if @checksum_type is
not supported.
@@ -3630,7 +3474,6 @@ digest of some data.
Note that the #GChecksumType enumeration may be extended at a later
date to include new hashing algorithm types.
-
Use the MD5 hashing algorithm
@@ -3651,7 +3494,6 @@ date to include new hashing algorithm types.
Prototype of a #GChildWatchSource callback, called when a child
process has exited. To interpret @status, see the documentation
for g_spawn_check_exit_status().
-
@@ -3676,7 +3518,6 @@ for g_spawn_check_exit_status().
The implementation is expected to free the resource identified
by @handle_id; for instance, if @handle_id is a #GSource ID,
g_source_remove() can be used.
-
@@ -3692,7 +3533,6 @@ g_source_remove() can be used.
values. The function should return a negative integer if the first
value comes before the second, 0 if they are equal, or a positive
integer if the first value comes after the second.
-
negative value if @a < @b; zero if @a = @b; positive
value if @a > @b
@@ -3718,7 +3558,6 @@ integer if the first value comes after the second.
values. The function should return a negative integer if the first
value comes before the second, 0 if they are equal, or a positive
integer if the first value comes after the second.
-
negative value if @a < @b; zero if @a = @b; positive
value if @a > @b
@@ -3801,7 +3640,6 @@ without initialisation. Otherwise, you should call g_cond_init()
on it and g_cond_clear() when done.
A #GCond should only be accessed via the g_cond_ functions.
-
@@ -3815,7 +3653,6 @@ A #GCond should only be accessed via the g_cond_ functions.
If no threads are waiting for @cond, this function has no effect.
It is good practice to lock the same mutex as the waiting threads
while calling this function, though not required.
-
@@ -3834,7 +3671,6 @@ statically allocated.
Calling g_cond_clear() for a #GCond on which threads are
blocking leads to undefined behaviour.
-
@@ -3857,7 +3693,6 @@ needed, use g_cond_clear().
Calling g_cond_init() on an already-initialised #GCond leads
to undefined behaviour.
-
@@ -3873,7 +3708,6 @@ to undefined behaviour.
If no threads are waiting for @cond, this function has no effect.
It is good practice to hold the same lock as the waiting thread
while calling this function, though not required.
-
@@ -3899,7 +3733,6 @@ condition is no longer met.
For this reason, g_cond_wait() must always be used in a loop. See
the documentation for #GCond for a complete example.
-
@@ -3963,7 +3796,6 @@ time on this API -- if a relative time of 5 seconds were passed
directly to the call and a spurious wakeup occurred, the program would
have to start over waiting again (which would lead to a total wait
time of more than 5 seconds).
-
%TRUE on a signal, %FALSE on a timeout
@@ -3986,7 +3818,6 @@ time of more than 5 seconds).
Error codes returned by character set conversion routines.
-
Conversion between the requested character
sets is not supported.
@@ -4020,7 +3851,6 @@ time of more than 5 seconds).
A function of this signature is used to copy the node data
when doing a deep-copy of a tree.
-
A pointer to the copy
@@ -4040,22 +3870,18 @@ when doing a deep-copy of a tree.
A bitmask that restricts the possible flags passed to
g_datalist_set_flags(). Passing a flags value where
flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.
-
Represents an invalid #GDateDay.
-
Represents an invalid Julian day number.
-
Represents an invalid year.
-
@@ -4076,7 +3902,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref)
This macro should be used unconditionally; it is a no-op on compilers
where cleanup is not supported.
-
a type name to define a g_autoptr() cleanup function for
@@ -4100,7 +3925,6 @@ G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GQueue, g_queue_clear)
This macro should be used unconditionally; it is a no-op on compilers
where cleanup is not supported.
-
a type name to define a g_auto() cleanup function for
@@ -4131,7 +3955,6 @@ G_DEFINE_AUTO_CLEANUP_FREE_FUNC(GStrv, g_strfreev, NULL)
This macro should be used unconditionally; it is a no-op on compilers
where cleanup is not supported.
-
a type name to define a g_auto() cleanup function for
@@ -4151,7 +3974,6 @@ where cleanup is not supported.
Note that the quark name will be stringified automatically
in the macro, so you shouldn't use double quotes.
-
the name to return a #GQuark for
@@ -4162,154 +3984,132 @@ in the macro, so you shouldn't use double quotes.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -4325,7 +4125,6 @@ before the function declaration.
G_DEPRECATED_FOR(my_replacement)
int my_mistake (void);
]|
-
the name of the function that this function was deprecated for
@@ -4333,455 +4132,390 @@ int my_mistake (void);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -4790,26 +4524,22 @@ int my_mistake (void);
The directory separator character.
This is '/' on UNIX machines and '\' under Windows.
-
The directory separator as a string.
This is "/" on UNIX machines and "\" under Windows.
-
The #GData struct is an opaque data structure to represent a
[Keyed Data List][glib-Keyed-Data-Lists]. It should only be
accessed via the following functions.
-
Specifies the type of function passed to g_dataset_foreach(). It is
called with each #GQuark id and associated data element, together
with the @user_data parameter supplied to g_dataset_foreach().
-
@@ -4840,7 +4570,6 @@ initialized with g_date_clear(). g_date_clear() makes the date invalid
but safe. An invalid date doesn't represent a day, it's "empty." A date
becomes valid after you set it to a Julian day or you set a day, month,
and year.
-
the Julian representation of the date
@@ -4872,7 +4601,6 @@ and year.
it to a safe state. The new date will
be cleared (as if you'd called g_date_clear()) but invalid (it won't
represent an existing day). Free the return value with g_date_free().
-
a newly-allocated #GDate
@@ -4882,7 +4610,6 @@ represent an existing day). Free the return value with g_date_free().
Like g_date_new(), but also sets the value of the date. Assuming the
day-month-year triplet you pass in represents an existing day, the
returned date will be valid.
-
a newly-allocated #GDate initialized with @day, @month, and @year
@@ -4906,7 +4633,6 @@ returned date will be valid.
Like g_date_new(), but also sets the value of the date. Assuming the
Julian day number you pass in is valid (greater than 0, less than an
unreasonably large number), the returned date will be valid.
-
a newly-allocated #GDate initialized with @julian_day
@@ -4922,7 +4648,6 @@ unreasonably large number), the returned date will be valid.
Increments a date some number of days.
To move forward by weeks, add weeks*7 days.
The date must be valid.
-
@@ -4943,7 +4668,6 @@ If the day of the month is greater than 28,
this routine may change the day of the month
(because the destination month may not have
the current day in it). The date must be valid.
-
@@ -4963,7 +4687,6 @@ the current day in it). The date must be valid.
If the date is February 29, and the destination
year is not a leap year, the date will be changed
to February 28. The date must be valid.
-
@@ -4984,7 +4707,6 @@ If @date falls after @max_date, sets @date equal to @max_date.
Otherwise, @date is unchanged.
Either of @min_date and @max_date may be %NULL.
All non-%NULL dates must be valid.
-
@@ -5008,7 +4730,6 @@ All non-%NULL dates must be valid.
state. The cleared dates will not represent an existing date, but will
not contain garbage. Useful to init a date declared on the stack.
Validity can be tested with g_date_valid().
-
@@ -5026,7 +4747,6 @@ Validity can be tested with g_date_valid().
qsort()-style comparison function for dates.
Both dates must be valid.
-
0 for equal, less than zero if @lhs is less than @rhs,
greater than zero if @lhs is greater than @rhs
@@ -5047,7 +4767,6 @@ Both dates must be valid.
Copies a GDate to a newly-allocated GDate. If the input was invalid
(as determined by g_date_valid()), the invalid state will be copied
as is into the new object.
-
a newly-allocated #GDate initialized from @date
@@ -5063,7 +4782,6 @@ as is into the new object.
Computes the number of days between two dates.
If @date2 is prior to @date1, the returned value is negative.
Both dates must be valid.
-
the number of days between @date1 and @date2
@@ -5081,7 +4799,6 @@ Both dates must be valid.
Frees a #GDate returned from g_date_new().
-
@@ -5094,7 +4811,6 @@ Both dates must be valid.
Returns the day of the month. The date must be valid.
-
day of the month
@@ -5109,7 +4825,6 @@ Both dates must be valid.
Returns the day of the year, where Jan 1 is the first day of the
year. The date must be valid.
-
day of the year
@@ -5124,7 +4839,6 @@ year. The date must be valid.
Returns the week of the year, where weeks are interpreted according
to ISO 8601.
-
ISO 8601 week number of the year.
@@ -5141,7 +4855,6 @@ to ISO 8601.
Julian day is simply the number of days since January 1, Year 1; i.e.,
January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2,
etc. The date must be valid.
-
Julian day
@@ -5157,7 +4870,6 @@ etc. The date must be valid.
Returns the week of the year, where weeks are understood to start on
Monday. If the date is before the first Monday of the year, return 0.
The date must be valid.
-
week of the year
@@ -5171,7 +4883,6 @@ The date must be valid.
Returns the month of the year. The date must be valid.
-
month of the year as a #GDateMonth
@@ -5187,7 +4898,6 @@ The date must be valid.
Returns the week of the year during which this date falls, if
weeks are understood to begin on Sunday. The date must be valid.
Can return 0 if the day is before the first Sunday of the year.
-
week number
@@ -5201,7 +4911,6 @@ Can return 0 if the day is before the first Sunday of the year.
Returns the day of the week for a #GDate. The date must be valid.
-
day of the week as a #GDateWeekday.
@@ -5215,7 +4924,6 @@ Can return 0 if the day is before the first Sunday of the year.
Returns the year of a #GDate. The date must be valid.
-
year in which the date falls
@@ -5230,7 +4938,6 @@ Can return 0 if the day is before the first Sunday of the year.
Returns %TRUE if the date is on the first of a month.
The date must be valid.
-
%TRUE if the date is the first of the month
@@ -5245,7 +4952,6 @@ The date must be valid.
Returns %TRUE if the date is the last day of the month.
The date must be valid.
-
%TRUE if the date is the last day of the month
@@ -5260,7 +4966,6 @@ The date must be valid.
Checks if @date1 is less than or equal to @date2,
and swap the values if this is not the case.
-
@@ -5278,7 +4983,6 @@ and swap the values if this is not the case.
Sets the day of the month for a #GDate. If the resulting
day-month-year triplet is invalid, the date will be invalid.
-
@@ -5298,7 +5002,6 @@ day-month-year triplet is invalid, the date will be invalid.
The day-month-year triplet must be valid; if you aren't
sure it is, call g_date_valid_dmy() to check before you
set it.
-
@@ -5323,7 +5026,6 @@ set it.
Sets the value of a #GDate from a Julian day number.
-
@@ -5341,7 +5043,6 @@ set it.
Sets the month of the year for a #GDate. If the resulting
day-month-year triplet is invalid, the date will be invalid.
-
@@ -5368,7 +5069,6 @@ isn't very precise, and its exact behavior varies with the locale.
It's intended to be a heuristic routine that guesses what the user
means by a given string (and it does work pretty well in that
capacity).
-
@@ -5387,7 +5087,6 @@ capacity).
Sets the value of a date from a #GTime value.
The time to date conversion is done using the user's current timezone.
Use g_date_set_time_t() instead.
-
@@ -5414,7 +5113,6 @@ To set the value of a date to the current day, you could write:
// handle the error
g_date_set_time_t (date, now);
]|
-
@@ -5437,7 +5135,6 @@ additional precision.
The time to date conversion is done using the user's current timezone.
#GTimeVal is not year-2038-safe. Use g_date_set_time_t()
instead.
-
@@ -5455,7 +5152,6 @@ The time to date conversion is done using the user's current timezone.
Sets the year for a #GDate. If the resulting day-month-year
triplet is invalid, the date will be invalid.
-
@@ -5474,7 +5170,6 @@ triplet is invalid, the date will be invalid.
Moves a date some number of days into the past.
To move by weeks, just move by weeks*7 days.
The date must be valid.
-
@@ -5494,7 +5189,6 @@ The date must be valid.
If the current day of the month doesn't exist in
the destination month, the day of the month
may change. The date must be valid.
-
@@ -5515,7 +5209,6 @@ If the current day doesn't exist in the destination
year (i.e. it's February 29 and you move to a non-leap-year)
then the day is changed to February 29. The date
must be valid.
-
@@ -5533,7 +5226,6 @@ must be valid.
Fills in the date-related bits of a struct tm using the @date value.
Initializes the non-date parts with something safe but meaningless.
-
@@ -5552,7 +5244,6 @@ Initializes the non-date parts with something safe but meaningless.
Returns %TRUE if the #GDate represents an existing day. The date must not
contain garbage; it should have been initialized with g_date_clear()
if it wasn't allocated by one of the g_date_new() variants.
-
Whether the date is valid
@@ -5567,7 +5258,6 @@ if it wasn't allocated by one of the g_date_new() variants.
Returns the number of days in a month, taking leap
years into account.
-
number of days in @month during the @year
@@ -5591,7 +5281,6 @@ plus 1 or 2 extra days depending on whether it's a leap
year. This function is basically telling you how many
Mondays are in the year, i.e. there are 53 Mondays if
one of the extra days happens to be a Monday.)
-
number of Mondays in the year
@@ -5611,7 +5300,6 @@ plus 1 or 2 extra days depending on whether it's a leap
year. This function is basically telling you how many
Sundays are in the year, i.e. there are 53 Sundays if
one of the extra days happens to be a Sunday.)
-
the number of weeks in @year
@@ -5630,7 +5318,6 @@ For the purposes of this function, leap year is every year
divisible by 4 unless that year is divisible by 100. If it
is divisible by 100 it would be a leap year only if that year
is also divisible by 400.
-
%TRUE if the year is a leap year
@@ -5656,7 +5343,6 @@ addition to those implemented by the platform's C library.
For example, don't expect that using g_date_strftime() would
make the \%F provided by the C99 strftime() work on Windows
where the C library only complies to C89.
-
number of characters written to the buffer, or 0 the buffer was too small
@@ -5683,7 +5369,6 @@ where the C library only complies to C89.
Returns %TRUE if the day of the month is valid (a day is valid if it's
between 1 and 31 inclusive).
-
%TRUE if the day is valid
@@ -5699,7 +5384,6 @@ between 1 and 31 inclusive).
Returns %TRUE if the day-month-year triplet forms a valid, existing day
in the range of days #GDate understands (Year 1 or later, no more than
a few thousand years in the future).
-
%TRUE if the date is a valid one
@@ -5722,7 +5406,6 @@ a few thousand years in the future).
Returns %TRUE if the Julian day is valid. Anything greater than zero
is basically a valid Julian, though there is a 32-bit limit.
-
%TRUE if the Julian day is valid
@@ -5737,7 +5420,6 @@ is basically a valid Julian, though there is a 32-bit limit.
Returns %TRUE if the month value is valid. The 12 #GDateMonth
enumeration values are the only valid months.
-
%TRUE if the month is valid
@@ -5752,7 +5434,6 @@ enumeration values are the only valid months.
Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration
values are the only valid weekdays.
-
%TRUE if the weekday is valid
@@ -5767,7 +5448,6 @@ values are the only valid weekdays.
Returns %TRUE if the year is valid. Any year greater than 0 is valid,
though there is a 16-bit limit to what #GDate will understand.
-
%TRUE if the year is valid
@@ -5783,7 +5463,6 @@ though there is a 16-bit limit to what #GDate will understand.
This enumeration isn't used in the API, but may be useful if you need
to mark a number as a day, month, or year.
-
a day
@@ -5797,7 +5476,6 @@ to mark a number as a day, month, or year.
Enumeration representing a month; values are #G_DATE_JANUARY,
#G_DATE_FEBRUARY, etc. #G_DATE_BAD_MONTH is the invalid value.
-
invalid value
@@ -5841,7 +5519,6 @@ to mark a number as a day, month, or year.
`GDateTime` is an opaque structure whose members
cannot be accessed directly.
-
Creates a new #GDateTime corresponding to the given date and time in
the time zone @tz.
@@ -5871,7 +5548,6 @@ return %NULL.
You should release the return value by calling g_date_time_unref()
when you are done with it.
-
a new #GDateTime, or %NULL
@@ -5951,7 +5627,6 @@ formatted string.
You should release the return value by calling g_date_time_unref()
when you are done with it.
-
a new #GDateTime, or %NULL
@@ -5983,7 +5658,6 @@ You should release the return value by calling g_date_time_unref()
when you are done with it.
#GTimeVal is not year-2038-safe. Use
g_date_time_new_from_unix_local() instead.
-
a new #GDateTime, or %NULL
@@ -6008,7 +5682,6 @@ You should release the return value by calling g_date_time_unref()
when you are done with it.
#GTimeVal is not year-2038-safe. Use
g_date_time_new_from_unix_utc() instead.
-
a new #GDateTime, or %NULL
@@ -6032,7 +5705,6 @@ of the supported range of #GDateTime.
You should release the return value by calling g_date_time_unref()
when you are done with it.
-
a new #GDateTime, or %NULL
@@ -6055,7 +5727,6 @@ of the supported range of #GDateTime.
You should release the return value by calling g_date_time_unref()
when you are done with it.
-
a new #GDateTime, or %NULL
@@ -6073,7 +5744,6 @@ the local time zone.
This call is equivalent to calling g_date_time_new() with the time
zone returned by g_time_zone_new_local().
-
a #GDateTime, or %NULL
@@ -6115,7 +5785,6 @@ year 9999.
You should release the return value by calling g_date_time_unref()
when you are done with it.
-
a new #GDateTime, or %NULL
@@ -6133,7 +5802,6 @@ time zone.
This is equivalent to calling g_date_time_new_now() with the time
zone returned by g_time_zone_new_local().
-
a new #GDateTime, or %NULL
@@ -6144,7 +5812,6 @@ zone returned by g_time_zone_new_local().
This is equivalent to calling g_date_time_new_now() with the time
zone returned by g_time_zone_new_utc().
-
a new #GDateTime, or %NULL
@@ -6156,7 +5823,6 @@ UTC.
This call is equivalent to calling g_date_time_new() with the time
zone returned by g_time_zone_new_utc().
-
a #GDateTime, or %NULL
@@ -6190,7 +5856,6 @@ zone returned by g_time_zone_new_utc().
Creates a copy of @datetime and adds the specified timespan to the copy.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6210,7 +5875,6 @@ zone returned by g_time_zone_new_utc().
Creates a copy of @datetime and adds the specified number of days to the
copy. Add negative values to subtract days.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6230,7 +5894,6 @@ copy. Add negative values to subtract days.
Creates a new #GDateTime adding the specified values to the current date and
time in @datetime. Add negative values to subtract.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6270,7 +5933,6 @@ time in @datetime. Add negative values to subtract.
Creates a copy of @datetime and adds the specified number of hours.
Add negative values to subtract hours.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6290,7 +5952,6 @@ Add negative values to subtract hours.
Creates a copy of @datetime adding the specified number of minutes.
Add negative values to subtract minutes.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6315,7 +5976,6 @@ The day of the month of the resulting #GDateTime is clamped to the number
of days in the updated calendar month. For example, if adding 1 month to
31st January 2018, the result would be 28th February 2018. In 2020 (a leap
year), the result would be 29th February.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6335,7 +5995,6 @@ year), the result would be 29th February.
Creates a copy of @datetime and adds the specified number of seconds.
Add negative values to subtract seconds.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6355,7 +6014,6 @@ Add negative values to subtract seconds.
Creates a copy of @datetime and adds the specified number of weeks to the
copy. Add negative values to subtract weeks.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6378,7 +6036,6 @@ copy. Add negative values to subtract years.
As with g_date_time_add_months(), if the resulting date would be 29th
February on a non-leap year, the day will be clamped to 28th February.
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6395,11 +6052,29 @@ February on a non-leap year, the day will be clamped to 28th February.
+
+ A comparison function for #GDateTimes that is suitable
+as a #GCompareFunc. Both #GDateTimes must be non-%NULL.
+
+ -1, 0 or 1 if @dt1 is less than, equal to or greater
+ than @dt2.
+
+
+
+
+ first #GDateTime to compare
+
+
+
+ second #GDateTime to compare
+
+
+
+
Calculates the difference in time between @end and @begin. The
#GTimeSpan that is returned is effectively @end - @begin (ie:
positive if the first parameter is larger).
-
the difference between the two #GDateTime, as a time
span expressed in microseconds.
@@ -6416,6 +6091,26 @@ positive if the first parameter is larger).
+
+ Checks to see if @dt1 and @dt2 are equal.
+
+Equal here means that they represent the same moment after converting
+them to the same time zone.
+
+ %TRUE if @dt1 and @dt2 are equal
+
+
+
+
+ a #GDateTime
+
+
+
+ a #GDateTime
+
+
+
+
Creates a newly allocated string representing the requested @format.
@@ -6516,7 +6211,6 @@ some languages (Baltic, Slavic, Greek, and more) due to their grammatical
rules. For other languages there is no difference. \%OB is a GNU and BSD
strftime() extension expected to be added to the future POSIX specification,
\%Ob and \%Oh are GNU strftime() extensions. Since: 2.56
-
a newly allocated string formatted to
the requested format or %NULL in the case that there was an error (such
@@ -6542,7 +6236,6 @@ including the date, time and time zone, and return that as a UTF-8 encoded
string.
Since GLib 2.66, this will output to sub-second precision if needed.
-
a newly allocated string formatted in
ISO 8601 format or %NULL in the case that there was an error. The string
@@ -6559,7 +6252,6 @@ Since GLib 2.66, this will output to sub-second precision if needed.
Retrieves the day of the month represented by @datetime in the gregorian
calendar.
-
the day of the month
@@ -6574,7 +6266,6 @@ calendar.
Retrieves the ISO 8601 day of the week on which @datetime falls (1 is
Monday, 2 is Tuesday... 7 is Sunday).
-
the day of the week
@@ -6589,7 +6280,6 @@ Monday, 2 is Tuesday... 7 is Sunday).
Retrieves the day of the year represented by @datetime in the Gregorian
calendar.
-
the day of the year
@@ -6603,7 +6293,6 @@ calendar.
Retrieves the hour of the day represented by @datetime
-
the hour of the day
@@ -6617,7 +6306,6 @@ calendar.
Retrieves the microsecond of the date represented by @datetime
-
the microsecond of the second
@@ -6631,7 +6319,6 @@ calendar.
Retrieves the minute of the hour represented by @datetime
-
the minute of the hour
@@ -6646,7 +6333,6 @@ calendar.
Retrieves the month of the year represented by @datetime in the Gregorian
calendar.
-
the month represented by @datetime
@@ -6660,7 +6346,6 @@ calendar.
Retrieves the second of the minute represented by @datetime
-
the second represented by @datetime
@@ -6675,7 +6360,6 @@ calendar.
Retrieves the number of seconds since the start of the last minute,
including the fractional part.
-
the number of seconds
@@ -6689,7 +6373,6 @@ including the fractional part.
Get the time zone for this @datetime.
-
the time zone
@@ -6708,7 +6391,6 @@ the time zone of @datetime.
For example, in Toronto this is currently "EST" during the winter
months and "EDT" during the summer months when daylight savings
time is in effect.
-
the time zone abbreviation. The returned
string is owned by the #GDateTime and it should not be
@@ -6731,7 +6413,6 @@ arrive at local time for the time zone (ie: negative numbers for time
zones west of GMT, positive numbers for east).
If @datetime represents UTC time, then the offset is always zero.
-
the number of microseconds that should be added to UTC to
get the local time
@@ -6776,7 +6457,6 @@ week (Monday to Sunday).
Note that January 1 0001 in the proleptic Gregorian calendar is a
Monday, so this function never returns 0.
-
the ISO 8601 week-numbering year for @datetime
@@ -6804,7 +6484,6 @@ year are considered as being contained in the last week of the
previous year. Similarly, the final days of a calendar year may be
considered as being part of the first ISO 8601 week of the next year
if 4 or more days of that week are contained within the new year.
-
the ISO 8601 week number for @datetime.
@@ -6818,7 +6497,6 @@ if 4 or more days of that week are contained within the new year.
Retrieves the year represented by @datetime in the Gregorian calendar.
-
the year represented by @datetime
@@ -6832,7 +6510,6 @@ if 4 or more days of that week are contained within the new year.
Retrieves the Gregorian day, month, and year of a given #GDateTime.
-
@@ -6855,10 +6532,22 @@ if 4 or more days of that week are contained within the new year.
+
+ Hashes @datetime into a #guint, suitable for use within #GHashTable.
+
+ a #guint containing the hash
+
+
+
+
+ a #GDateTime
+
+
+
+
Determines if daylight savings time is in effect at the time and in
the time zone of @datetime.
-
%TRUE if daylight savings time is in effect
@@ -6872,7 +6561,6 @@ the time zone of @datetime.
Atomically increments the reference count of @datetime by one.
-
the #GDateTime with the reference count increased
@@ -6890,7 +6578,6 @@ the time zone of @datetime.
This call is equivalent to calling g_date_time_to_timezone() with the
time zone returned by g_time_zone_new_local().
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6919,7 +6606,6 @@ out of range.
On systems where 'long' is 64bit, this function never fails.
#GTimeVal is not year-2038-safe. Use
g_date_time_to_unix() instead.
-
%TRUE if successful, else %FALSE
@@ -6942,7 +6628,6 @@ On systems where 'long' is 64bit, this function never fails.
This call can fail in the case that the time goes out of bounds. For
example, converting 0001-01-01 00:00:00 UTC to a time zone west of
Greenwich will fail (due to the year 0 being out of range).
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -6965,7 +6650,6 @@ nearest second.
Unix time is the number of seconds that have elapsed since 1970-01-01
00:00:00 UTC, regardless of the time zone associated with @datetime.
-
the Unix time corresponding to @datetime
@@ -6983,7 +6667,6 @@ Unix time is the number of seconds that have elapsed since 1970-01-01
This call is equivalent to calling g_date_time_to_timezone() with the
time zone returned by g_time_zone_new_utc().
-
the newly created #GDateTime which
should be freed with g_date_time_unref(), or %NULL
@@ -7001,7 +6684,6 @@ time zone returned by g_time_zone_new_utc().
When the reference count reaches zero, the resources allocated by
@datetime are freed
-
@@ -7012,66 +6694,10 @@ When the reference count reaches zero, the resources allocated by
-
- A comparison function for #GDateTimes that is suitable
-as a #GCompareFunc. Both #GDateTimes must be non-%NULL.
-
-
- -1, 0 or 1 if @dt1 is less than, equal to or greater
- than @dt2.
-
-
-
-
- first #GDateTime to compare
-
-
-
- second #GDateTime to compare
-
-
-
-
-
- Checks to see if @dt1 and @dt2 are equal.
-
-Equal here means that they represent the same moment after converting
-them to the same time zone.
-
-
- %TRUE if @dt1 and @dt2 are equal
-
-
-
-
- a #GDateTime
-
-
-
- a #GDateTime
-
-
-
-
-
- Hashes @datetime into a #guint, suitable for use within #GHashTable.
-
-
- a #guint containing the hash
-
-
-
-
- a #GDateTime
-
-
-
-
Enumeration representing a day of the week; #G_DATE_MONDAY,
#G_DATE_TUESDAY, etc. #G_DATE_BAD_WEEKDAY is an invalid weekday.
-
invalid value
@@ -7100,7 +6726,6 @@ them to the same time zone.
Associates a string with a bit flag.
Used in g_parse_debug_string().
-
the string
@@ -7114,7 +6739,6 @@ Used in g_parse_debug_string().
Specifies the type of function which is called when a data element
is destroyed. It is passed the pointer to the data element and
should free any memory and resources allocated for it.
-
@@ -7127,10 +6751,8 @@ should free any memory and resources allocated for it.
An opaque structure representing an opened directory.
-
Closes the directory and deallocates all related resources.
-
@@ -7155,7 +6777,6 @@ name is in the on-disk encoding.
On Windows, as is true of all GLib functions which operate on
filenames, the returned name is in UTF-8.
-
The entry's name or %NULL if there are no
more entries. The return value is owned by GLib and
@@ -7172,7 +6793,6 @@ filenames, the returned name is in UTF-8.
Resets the given directory. The next call to g_dir_read_name()
will return the first entry again.
-
@@ -7195,7 +6815,6 @@ basename, no directory components are allowed. If template is
Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not
modified, and might thus be a read-only literal string.
-
The actual name used. This string
should be freed with g_free() when not needed any longer and is
@@ -7215,7 +6834,6 @@ modified, and might thus be a read-only literal string.
Opens a directory for reading. The names of the files in the
directory can then be retrieved using g_dir_read_name(). Note
that the ordering is not defined.
-
a newly allocated #GDir on success, %NULL on failure.
If non-%NULL, you must free the result with g_dir_close()
@@ -7240,13 +6858,11 @@ that the ordering is not defined.
mantissa and exponent of IEEE floats and doubles. These unions are defined
as appropriate for a given platform. IEEE floats and doubles are supported
(used for storage) by at least Intel, PPC and Sparc.
-
the double value
-
@@ -7266,7 +6882,6 @@ as appropriate for a given platform. IEEE floats and doubles are supported
What this means depends on the context, it could just be
incrementing the reference count, if @data is a ref-counted
object.
-
a duplicate of data
@@ -7285,11 +6900,9 @@ object.
The base of natural logarithms.
-
-
@@ -7301,7 +6914,6 @@ object.
Specifies the type of a function used to test two values for
equality. The function should return %TRUE if both values are equal
and %FALSE otherwise.
-
%TRUE if @a = @b; %FALSE otherwise
@@ -7320,7 +6932,6 @@ and %FALSE otherwise.
The `GError` structure contains information about
an error that has occurred.
-
error domain, e.g. #G_FILE_ERROR
@@ -7336,7 +6947,6 @@ an error that has occurred.
Creates a new #GError with the given @domain and @code,
and a message formatted with @format.
-
a new #GError
@@ -7365,7 +6975,6 @@ and a message formatted with @format.
not a printf()-style format string. Use this function if
@message contains text you don't have control over,
that could include printf() escape sequences.
-
a new #GError
@@ -7388,7 +6997,6 @@ that could include printf() escape sequences.
Creates a new #GError with the given @domain and @code,
and a message formatted with @format.
-
a new #GError
@@ -7414,7 +7022,6 @@ and a message formatted with @format.
Makes a copy of @error.
-
a new #GError
@@ -7428,7 +7035,6 @@ and a message formatted with @format.
Frees a #GError and associated resources.
-
@@ -7450,7 +7056,6 @@ instead treat any not-explicitly-recognized error code as being
equivalent to the `FAILED` code. This way, if the domain is
extended in the future to provide a more specific error code for
a certain case, your code will still work.
-
whether @error has @domain and @code
@@ -7474,7 +7079,6 @@ a certain case, your code will still work.
The possible errors, used in the @v_error field
of #GTokenValue, when the token is a %G_TOKEN_ERROR.
-
unknown error
@@ -7513,7 +7117,6 @@ It's not very portable to make detailed assumptions about exactly
which errors will be returned from a given operation. Some errors
don't occur on some systems, etc., sometimes there are subtle
differences in when a system will report a given error, etc.
-
Operation not permitted; only the owner of
the file (or other resource) or processes with special privileges
@@ -7635,7 +7238,6 @@ differences in when a system will report a given error, etc.
Flags to pass to g_file_set_contents_full() to affect its safety and
performance.
-
No guarantees about file consistency or durability.
The most dangerous setting, which is slightly faster than other settings.
@@ -7663,7 +7265,6 @@ performance.
A test to perform on a file using g_file_test().
-
%TRUE if the file is a regular file
(not a directory). Note that this test will also return %TRUE
@@ -7688,13 +7289,11 @@ performance.
mantissa and exponent of IEEE floats and doubles. These unions are defined
as appropriate for a given platform. IEEE floats and doubles are supported
(used for storage) by at least Intel, PPC and Sparc.
-
the double value
-
@@ -7708,7 +7307,6 @@ as appropriate for a given platform. IEEE floats and doubles are supported
Flags to modify the format of the string returned by g_format_size_full().
-
behave the same as g_format_size()
@@ -7731,7 +7329,6 @@ as appropriate for a given platform. IEEE floats and doubles are supported
Declares a type of function which takes an arbitrary
data pointer argument and has no return value. It is
not currently used in GLib or GTK+.
-
@@ -7745,7 +7342,6 @@ not currently used in GLib or GTK+.
Specifies the type of functions passed to g_list_foreach() and
g_slist_foreach().
-
@@ -7773,7 +7369,6 @@ sscanf ("42", "%" G_GINT16_FORMAT, &in)
out = in * 1000;
g_print ("%" G_GINT32_FORMAT, out);
]|
-
@@ -7788,26 +7383,22 @@ The following example prints "0x7b";
gint16 value = 123;
g_print ("%#" G_GINT16_MODIFIER "x", value);
]|
-
This is the platform dependent conversion specifier for scanning
and printing values of type #gint32. See also #G_GINT16_FORMAT.
-
The platform dependent length modifier for conversion specifiers
for scanning and printing values of type #gint32 or #guint32. It
is a string literal. See also #G_GINT16_MODIFIER.
-
This macro is used to insert 64-bit integer literals
into the source code.
-
a literal integer value, e.g. 0x1d636b02300a7aa7
@@ -7824,7 +7415,6 @@ is not defined. Note that scanf() may not support 64-bit integers, even
if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf()
is not recommended for parsing anyway; consider using g_ascii_strtoull()
instead.
-
@@ -7835,20 +7425,17 @@ It is a string literal.
Some platforms do not support printing 64-bit integers, even
though the types are supported. On such platforms %G_GINT64_MODIFIER
is not defined.
-
This is the platform dependent conversion specifier for scanning
and printing values of type #gintptr.
-
The platform dependent length modifier for conversion specifiers
for scanning and printing values of type #gintptr or #guintptr.
It is a string literal.
-
@@ -7865,7 +7452,6 @@ gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
]|
See the [GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-alloc_005fsize-function-attribute) for more details.
-
the index of the argument specifying the allocation size
@@ -7887,7 +7473,6 @@ gpointer g_malloc_n (gsize n_blocks,
]|
See the [GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-alloc_005fsize-function-attribute) for more details.
-
the index of the argument specifying one factor of the allocation size
@@ -7906,7 +7491,6 @@ the following would only match on compilers such as GCC 4.8 or newer.
#if G_GNUC_CHECK_VERSION(4, 8)
#endif
]|
-
major version to check against
@@ -7932,7 +7516,6 @@ See the [GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function
Note that if @f is a macro, it will be expanded in the warning message.
You can enclose it in quotes to prevent this. (The quotes will show up
in the warning, but it's better than showing the macro expansion.)
-
the intended replacement for the deprecated symbol,
@@ -7957,7 +7540,6 @@ See the [GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function
|[<!-- language="C" -->
gchar *g_dgettext (gchar *domain_name, gchar *msgid) G_GNUC_FORMAT (2);
]|
-
the index of the argument
@@ -7968,14 +7550,12 @@ gchar *g_dgettext (gchar *domain_name, gchar *msgid) G_GNUC_FORMAT (2);
Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
version 2.x. Don't use it.
Use G_STRFUNC() instead
-
Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
on gcc version 2.x. Don't use it.
Use G_STRFUNC() instead
-
@@ -7997,7 +7577,6 @@ gint g_snprintf (gchar *string,
gchar const *format,
...) G_GNUC_PRINTF (3, 4);
]|
-
the index of the argument corresponding to the
@@ -8027,7 +7606,6 @@ int my_vscanf (MyStream *stream,
See the
[GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-Wformat-3288)
for details.
-
the index of the argument corresponding to
@@ -8054,7 +7632,6 @@ gsize my_strftime (MyBuffer *buffer,
See the
[GNU C documentation](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-Wformat-3288)
for details.
-
the index of the argument corresponding to
@@ -8067,7 +7644,6 @@ for details.
into the source code.
See also #G_GINT64_CONSTANT.
-
a literal integer value, e.g. 0x1d636b02300a7aa7
@@ -8077,45 +7653,38 @@ See also #G_GINT64_CONSTANT.
This is the platform dependent conversion specifier for scanning
and printing values of type #gsize. See also #G_GINT16_FORMAT.
-
The platform dependent length modifier for conversion specifiers
for scanning and printing values of type #gsize. It
is a string literal.
-
This is the platform dependent conversion specifier for scanning
and printing values of type #gssize. See also #G_GINT16_FORMAT.
-
The platform dependent length modifier for conversion specifiers
for scanning and printing values of type #gssize. It
is a string literal.
-
This is the platform dependent conversion specifier for scanning
and printing values of type #guint16. See also #G_GINT16_FORMAT
-
This is the platform dependent conversion specifier for scanning
and printing values of type #guint32. See also #G_GINT16_FORMAT.
-
This macro is used to insert 64-bit unsigned integer
literals into the source code.
-
a literal integer value, e.g. 0x1d636b02300a7aa7U
@@ -8132,41 +7701,33 @@ is not defined. Note that scanf() may not support 64-bit integers, even
if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf()
is not recommended for parsing anyway; consider using g_ascii_strtoull()
instead.
-
This is the platform dependent conversion specifier
for scanning and printing values of type #guintptr.
-
-
-
Defined to 1 if gcc-style visibility handling is supported.
-
-
-
Specifies the type of the function passed to g_hash_table_foreach().
It is called with each key/value pair, together with the @user_data
parameter which is passed to g_hash_table_foreach().
-
@@ -8187,7 +7748,6 @@ parameter which is passed to g_hash_table_foreach().
Casts a pointer to a `GHook*`.
-
a pointer
@@ -8197,7 +7757,6 @@ parameter which is passed to g_hash_table_foreach().
Returns %TRUE if the #GHook is active, which is normally the case
until the #GHook is destroyed.
-
a #GHook
@@ -8206,7 +7765,6 @@ until the #GHook is destroyed.
Gets the flags of a hook.
-
a #GHook
@@ -8218,12 +7776,10 @@ until the #GHook is destroyed.
use be the #GHook implementation, i.e.
`1 << G_HOOK_FLAG_USER_SHIFT` is the first
bit which can be used for application-defined flags.
-
Returns %TRUE if the #GHook function is currently executing.
-
a #GHook
@@ -8232,7 +7788,6 @@ bit which can be used for application-defined flags.
Returns %TRUE if the #GHook is not in a #GHookList.
-
a #GHook
@@ -8242,7 +7797,6 @@ bit which can be used for application-defined flags.
Returns %TRUE if the #GHook is valid, i.e. it is in a #GHookList,
it is active and it has not been destroyed.
-
a #GHook
@@ -8255,7 +7809,6 @@ g_hash_table_foreach_remove(). It is called with each key/value
pair, together with the @user_data parameter passed to
g_hash_table_foreach_remove(). It should return %TRUE if the
key/value pair should be removed from the #GHashTable.
-
%TRUE if the key/value pair should be removed from the
#GHashTable
@@ -8307,7 +7860,6 @@ The key to choosing a good hash is unpredictability. Even
cryptographic hashes are very easy to find collisions for when the
remainder is taken modulo a somewhat predictable prime number. There
must be an element of randomness that an attacker is unable to guess.
-
the hash value corresponding to the key
@@ -8323,7 +7875,6 @@ must be an element of randomness that an attacker is unable to guess.
The #GHashTable struct is an opaque data structure to represent a
[Hash Table][glib-Hash-Tables]. It should only be accessed via the
following functions.
-
This is a convenience function for using a #GHashTable as a set. It
is equivalent to calling g_hash_table_replace() with @key as both the
@@ -8340,7 +7891,6 @@ the discussion in the section description.
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -8361,7 +7911,6 @@ or not.
Checks if @key is in @hash_table.
-
%TRUE if @key is in @hash_table, %FALSE otherwise.
@@ -8387,7 +7936,6 @@ you should either free them first or create the #GHashTable with destroy
notifiers using g_hash_table_new_full(). In the latter case the destroy
functions you supplied will be called on all keys and values during the
destruction phase.
-
@@ -8415,7 +7963,6 @@ once per every entry in a hash table) should probably be reworked
to use additional or different data structures for reverse lookups
(keep in mind that an O(n) find/foreach operation issued for all n
values in a hash table ends up needing O(n*n) operations).
-
The value of the first key/value pair is returned,
for which @predicate evaluates to %TRUE. If no pair with the
@@ -8453,7 +8000,6 @@ the hash table is not defined.
See g_hash_table_find() for performance caveats for linear
order searches in contrast to g_hash_table_lookup().
-
@@ -8484,7 +8030,6 @@ used to free the memory allocated for the removed keys and values.
See #GHashTableIter for an alternative way to loop over the
key/value pairs in the hash table.
-
the number of key/value pairs removed
@@ -8515,7 +8060,6 @@ destroy functions are called.
See #GHashTableIter for an alternative way to loop over the
key/value pairs in the hash table.
-
the number of key/value pairs removed.
@@ -8545,7 +8089,6 @@ until changes to the hash release those keys.
This iterates over every entry in the hash table to build its return value.
To iterate over the entries in a #GHashTable more efficiently, use a
#GHashTableIter.
-
a #GList containing all the keys
inside the hash table. The content of the list is owned by the
@@ -8583,7 +8126,6 @@ You should always free the return result with g_free(). In the
above-mentioned case of a string-keyed hash table, it may be
appropriate to use g_strfreev() if you call g_hash_table_steal_all()
first to transfer ownership of the keys.
-
a
%NULL-terminated array containing each key from the table.
@@ -8612,7 +8154,6 @@ is valid until @hash_table is modified.
This iterates over every entry in the hash table to build its return value.
To iterate over the entries in a #GHashTable more efficiently, use a
#GHashTableIter.
-
a #GList containing all the values
inside the hash table. The content of the list is owned by the
@@ -8645,7 +8186,6 @@ key is freed using that function.
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -8673,7 +8213,6 @@ or not.
distinguish between a key that is not present and one which is present
and has the value %NULL. If you need this distinction, use
g_hash_table_lookup_extended().
-
the associated value, or %NULL if the key is not found
@@ -8701,7 +8240,6 @@ for example before calling g_hash_table_remove().
You can actually pass %NULL for @lookup_key to test
whether the %NULL key exists, provided the hash and equal functions
of @hash_table are %NULL-safe.
-
%TRUE if the key was found in the #GHashTable
@@ -8746,7 +8284,6 @@ a similar fashion to g_direct_equal(), but without the overhead of
a function call. @key_equal_func is called with the key from the hash table
as its first parameter, and the user-provided key to check against as
its second.
-
a new #GHashTable
@@ -8777,7 +8314,6 @@ permissible if the application still holds a reference to the hash table.
This means that you may need to ensure that the hash table is empty by
calling g_hash_table_remove_all() before releasing the last reference using
g_hash_table_unref().
-
a new #GHashTable
@@ -8811,7 +8347,6 @@ g_hash_table_unref().
Atomically increments the reference count of @hash_table by one.
This function is MT-safe and may be called from any thread.
-
the passed in #GHashTable
@@ -8836,7 +8371,6 @@ If the #GHashTable was created using g_hash_table_new_full(), the
key and value are freed using the supplied destroy functions, otherwise
you have to make sure that any dynamically allocated values are freed
yourself.
-
%TRUE if the key was found and removed from the #GHashTable
@@ -8862,7 +8396,6 @@ If the #GHashTable was created using g_hash_table_new_full(),
the keys and values are freed using the supplied destroy functions,
otherwise you have to make sure that any dynamically allocated
values are freed yourself.
-
@@ -8888,7 +8421,6 @@ If you supplied a @key_destroy_func when creating the
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -8913,7 +8445,6 @@ or not.
Returns the number of elements contained in the #GHashTable.
-
the number of key/value pairs in the #GHashTable.
@@ -8931,7 +8462,6 @@ or not.
Removes a key and its associated value from a #GHashTable without
calling the key and value destroy functions.
-
%TRUE if the key was found and removed from the #GHashTable
@@ -8953,7 +8483,6 @@ calling the key and value destroy functions.
Removes all keys and their associated values from a #GHashTable
without calling the key and value destroy functions.
-
@@ -8978,7 +8507,6 @@ the caller of this method; as with g_hash_table_steal().
You can pass %NULL for @lookup_key, provided the hash and equal functions
of @hash_table are %NULL-safe.
-
%TRUE if the key was found in the #GHashTable
@@ -9012,7 +8540,6 @@ of @hash_table are %NULL-safe.
If the reference count drops to 0, all keys and values will be
destroyed, and all memory allocated by the hash table is released.
This function is MT-safe and may be called from any thread.
-
@@ -9035,7 +8562,6 @@ with g_hash_table_iter_init().
The iteration order of a #GHashTableIter over the keys/values in a hash
table is not defined.
-
@@ -9056,7 +8582,6 @@ table is not defined.
Returns the #GHashTable associated with @iter.
-
the #GHashTable associated with @iter.
@@ -9089,7 +8614,6 @@ while (g_hash_table_iter_next (&iter, &key, &value))
// do something with key and value
}
]|
-
@@ -9111,7 +8635,6 @@ while (g_hash_table_iter_next (&iter, &key, &value))
Advances @iter and retrieves the key and/or value that are now
pointed to as a result of this advancement. If %FALSE is returned,
@key and @value are not set, and the iterator becomes invalid.
-
%FALSE if the end of the #GHashTable has been reached.
@@ -9150,7 +8673,6 @@ while (g_hash_table_iter_next (&iter, &key, &value))
g_hash_table_iter_remove (&iter);
}
]|
-
@@ -9168,7 +8690,6 @@ g_hash_table_iter_next() returned %TRUE.
If you supplied a @value_destroy_func when creating the
#GHashTable, the old value is freed using that function.
-
@@ -9189,7 +8710,6 @@ iterator from its associated #GHashTable, without calling
the key and value destroy functions. Can only be called
after g_hash_table_iter_next() returned %TRUE, and cannot
be called more than once for the same key/value pair.
-
@@ -9205,12 +8725,10 @@ be called more than once for the same key/value pair.
An opaque structure representing a HMAC operation.
To create a new GHmac, use g_hmac_new(). To free
a GHmac, use g_hmac_unref().
-
Copies a #GHmac. If @hmac has been closed, by calling
g_hmac_get_string() or g_hmac_get_digest(), the copied
HMAC will be closed as well.
-
the copy of the passed #GHmac. Use g_hmac_unref()
when finished using it.
@@ -9229,7 +8747,6 @@ into @buffer. The size of the digest depends on the type of checksum.
Once this function has been called, the #GHmac is closed and can
no longer be updated with g_checksum_update().
-
@@ -9258,7 +8775,6 @@ Once this function has been called the #GHmac can no longer be
updated with g_hmac_update().
The hexadecimal characters will be lower case.
-
the hexadecimal representation of the HMAC. The
returned string is owned by the HMAC and should not be modified
@@ -9276,7 +8792,6 @@ The hexadecimal characters will be lower case.
Atomically increments the reference count of @hmac by one.
This function is MT-safe and may be called from any thread.
-
the passed in #GHmac.
@@ -9295,7 +8810,6 @@ If the reference count drops to 0, all keys and values will be
destroyed, and all memory allocated by the hash table is released.
This function is MT-safe and may be called from any thread.
Frees the memory allocated for @hmac.
-
@@ -9311,7 +8825,6 @@ Frees the memory allocated for @hmac.
The HMAC must still be open, that is g_hmac_get_string() or
g_hmac_get_digest() must not have been called on @hmac.
-
@@ -9349,7 +8862,6 @@ on it anymore.
Support for digests of type %G_CHECKSUM_SHA512 has been added in GLib 2.42.
Support for %G_CHECKSUM_SHA384 was added in GLib 2.52.
-
the newly created #GHmac, or %NULL.
Use g_hmac_unref() to free the memory allocated by it.
@@ -9375,7 +8887,6 @@ Support for %G_CHECKSUM_SHA384 was added in GLib 2.52.
The #GHook struct represents a single hook function in a #GHookList.
-
data which is passed to func when this hook is invoked
@@ -9414,7 +8925,6 @@ Support for %G_CHECKSUM_SHA384 was added in GLib 2.52.
Compares the ids of two #GHook elements, returning a negative value
if the second id is greater than the first.
-
a value <= 0 if the id of @sibling is >= the id of @new_hook
@@ -9432,7 +8942,6 @@ if the second id is greater than the first.
Allocates space for a #GHook and initializes it.
-
a new #GHook
@@ -9446,7 +8955,6 @@ if the second id is greater than the first.
Destroys a #GHook, given its ID.
-
%TRUE if the #GHook was found in the #GHookList and destroyed
@@ -9465,7 +8973,6 @@ if the second id is greater than the first.
Removes one #GHook from a #GHookList, marking it
inactive and calling g_hook_unref() on it.
-
@@ -9483,7 +8990,6 @@ inactive and calling g_hook_unref() on it.
Finds a #GHook in a #GHookList using the given function to
test for a match.
-
the found #GHook or %NULL if no matching #GHook is found
@@ -9511,7 +9017,6 @@ test for a match.
Finds a #GHook in a #GHookList with the given data.
-
the #GHook with the given @data or %NULL if no matching
#GHook is found
@@ -9535,7 +9040,6 @@ test for a match.
Finds a #GHook in a #GHookList with the given function.
-
the #GHook with the given @func or %NULL if no matching
#GHook is found
@@ -9559,7 +9063,6 @@ test for a match.
Finds a #GHook in a #GHookList with the given function and data.
-
the #GHook with the given @func and @data or %NULL if
no matching #GHook is found
@@ -9590,7 +9093,6 @@ test for a match.
The reference count for the #GHook is incremented, so you must call
g_hook_unref() to restore it when no longer needed. (Or call
g_hook_next_valid() if you are stepping through the #GHookList.)
-
the first valid #GHook, or %NULL if none are valid
@@ -9611,7 +9113,6 @@ g_hook_next_valid() if you are stepping through the #GHookList.)
Calls the #GHookList @finalize_hook function if it exists,
and frees the memory allocated for the #GHook.
-
@@ -9628,7 +9129,6 @@ and frees the memory allocated for the #GHook.
Returns the #GHook with the given id, or %NULL if it is not found.
-
the #GHook with the given id, or %NULL if it is not found
@@ -9646,7 +9146,6 @@ and frees the memory allocated for the #GHook.
Inserts a #GHook into a #GHookList, before a given #GHook.
-
@@ -9667,7 +9166,6 @@ and frees the memory allocated for the #GHook.
Inserts a #GHook into a #GHookList, sorted by the given function.
-
@@ -9691,7 +9189,6 @@ and frees the memory allocated for the #GHook.
The reference count for the #GHook is incremented, so you must call
g_hook_unref() to restore it when no longer needed. (Or continue to call
g_hook_next_valid() until %NULL is returned.)
-
the next valid #GHook, or %NULL if none are valid
@@ -9715,7 +9212,6 @@ g_hook_next_valid() until %NULL is returned.)
Prepends a #GHook on the start of a #GHookList.
-
@@ -9732,7 +9228,6 @@ g_hook_next_valid() until %NULL is returned.)
Increments the reference count for a #GHook.
-
the @hook that was passed in (since 2.6)
@@ -9752,7 +9247,6 @@ g_hook_next_valid() until %NULL is returned.)
Decrements the reference count of a #GHook.
If the reference count falls to 0, the #GHook is removed
from the #GHookList and g_hook_free() is called to free it.
-
@@ -9771,7 +9265,6 @@ from the #GHookList and g_hook_free() is called to free it.
Defines the type of a hook function that can be invoked
by g_hook_list_invoke_check().
-
%FALSE if the #GHook should be destroyed
@@ -9785,7 +9278,6 @@ by g_hook_list_invoke_check().
Defines the type of function used by g_hook_list_marshal_check().
-
%FALSE if @hook should be destroyed
@@ -9804,7 +9296,6 @@ by g_hook_list_invoke_check().
Defines the type of function used to compare #GHook elements in
g_hook_insert_sorted().
-
a value <= 0 if @new_hook should be before @sibling
@@ -9823,7 +9314,6 @@ g_hook_insert_sorted().
Defines the type of function to be called when a hook in a
list of hooks gets finalized.
-
@@ -9840,7 +9330,6 @@ list of hooks gets finalized.
Defines the type of the function passed to g_hook_find().
-
%TRUE if the required #GHook has been found
@@ -9858,7 +9347,6 @@ list of hooks gets finalized.
Flags used internally in the #GHook implementation.
-
set if the hook has not been destroyed
@@ -9873,7 +9361,6 @@ list of hooks gets finalized.
Defines the type of a hook function that can be invoked
by g_hook_list_invoke().
-
@@ -9886,7 +9373,6 @@ by g_hook_list_invoke().
The #GHookList struct represents a list of hook functions.
-
the next free #GHook id
@@ -9920,7 +9406,6 @@ by g_hook_list_invoke().
Removes all the #GHook elements from a #GHookList.
-
@@ -9934,7 +9419,6 @@ by g_hook_list_invoke().
Initializes a #GHookList.
This must be called before the #GHookList is used.
-
@@ -9952,7 +9436,6 @@ This must be called before the #GHookList is used.
Calls all of the #GHook functions in a #GHookList.
-
@@ -9972,7 +9455,6 @@ This must be called before the #GHookList is used.
Calls all of the #GHook functions in a #GHookList.
Any function which returns %FALSE is removed from the #GHookList.
-
@@ -9991,7 +9473,6 @@ Any function which returns %FALSE is removed from the #GHookList.
Calls a function on each valid #GHook.
-
@@ -10019,7 +9500,6 @@ Any function which returns %FALSE is removed from the #GHookList.
Calls a function on each valid #GHook and destroys it if the
function returns %FALSE.
-
@@ -10047,7 +9527,6 @@ function returns %FALSE.
Defines the type of function used by g_hook_list_marshal().
-
@@ -10065,7 +9544,6 @@ function returns %FALSE.
The GIConv struct wraps an iconv() conversion descriptor. It contains
private data and should only be accessed using the following functions.
-
Same as the standard UNIX routine iconv(), but
may be implemented via libiconv on UNIX flavors that lack
@@ -10080,7 +9558,6 @@ set, is implementation defined. This function may return success (with a
positive number of non-reversible conversions as replacement characters were
used), or it may return -1 and set an error such as %EILSEQ, in such a
situation.
-
count of non-reversible conversions, or -1 on error
@@ -10117,7 +9594,6 @@ you are done converting things.
GLib provides g_convert() and g_locale_to_utf8() which are likely
more convenient than the raw iconv wrappers.
-
-1 on error, 0 on success
@@ -10136,7 +9612,6 @@ a native implementation.
GLib provides g_convert() and g_locale_to_utf8() which are likely
more convenient than the raw iconv wrappers.
-
a "conversion descriptor", or (GIConv)-1 if
opening the converter failed.
@@ -10156,19 +9631,16 @@ more convenient than the raw iconv wrappers.
The bias by which exponents in double-precision floats are offset.
-
The bias by which exponents in single-precision floats are offset.
-
A data structure representing an IO Channel. The fields should be
considered private and should only be accessed with the following
functions.
-
@@ -10237,7 +9709,6 @@ channel will be closed when the last reference to it is dropped,
so there is no need to call g_io_channel_close() (though doing
so will not cause problems, as long as no attempt is made to
access the channel after it is closed).
-
A #GIOChannel on success, %NULL on failure.
@@ -10277,7 +9748,6 @@ sockets overlap. There is no way for GLib to know which one you mean
in case the argument you pass to this function happens to be both a
valid file descriptor and socket. If that happens a warning is
issued, and GLib assumes that it is the file descriptor you mean.
-
a new #GIOChannel.
@@ -10294,7 +9764,6 @@ issued, and GLib assumes that it is the file descriptor you mean.
flushed, ignoring errors. The channel will not be freed until the
last reference is dropped using g_io_channel_unref().
Use g_io_channel_shutdown() instead.
-
@@ -10307,7 +9776,6 @@ last reference is dropped using g_io_channel_unref().
Flushes the write buffer for the GIOChannel.
-
the status of the operation: One of
#G_IO_STATUS_NORMAL, #G_IO_STATUS_AGAIN, or
@@ -10325,7 +9793,6 @@ last reference is dropped using g_io_channel_unref().
This function returns a #GIOCondition depending on whether there
is data to be read/space to write data in the internal buffers in
the #GIOChannel. Only the flags %G_IO_IN and %G_IO_OUT may be set.
-
A #GIOCondition
@@ -10339,7 +9806,6 @@ the #GIOChannel. Only the flags %G_IO_IN and %G_IO_OUT may be set.
Gets the buffer size.
-
the size of the buffer.
@@ -10353,7 +9819,6 @@ the #GIOChannel. Only the flags %G_IO_IN and %G_IO_OUT may be set.
Returns whether @channel is buffered.
-
%TRUE if the @channel is buffered.
@@ -10370,7 +9835,6 @@ the #GIOChannel. Only the flags %G_IO_IN and %G_IO_OUT may be set.
will be closed when @channel receives its final unref and is
destroyed. The default value of this is %TRUE for channels created
by g_io_channel_new_file (), and %FALSE for all other channels.
-
%TRUE if the channel will be closed, %FALSE otherwise.
@@ -10386,7 +9850,6 @@ by g_io_channel_new_file (), and %FALSE for all other channels.
Gets the encoding for the input/output of the channel.
The internal encoding is always UTF-8. The encoding %NULL
makes the channel safe for binary data.
-
A string containing the encoding, this string is
owned by GLib and must not be freed.
@@ -10409,7 +9872,6 @@ If they should change at some later point (e.g. partial shutdown
of a socket with the UNIX shutdown() function), the user
should immediately call g_io_channel_get_flags() to update
the internal values of these flags.
-
the flags which are set on the channel
@@ -10425,7 +9887,6 @@ the internal values of these flags.
This returns the string that #GIOChannel uses to determine
where in the file a line break occurs. A value of %NULL
indicates autodetection.
-
The line termination string. This value
is owned by GLib and must not be freed.
@@ -10448,7 +9909,6 @@ indicates autodetection.
This is called by each of the above functions when creating a
#GIOChannel, and so is not often needed by the application
programmer (unless you are creating a new type of #GIOChannel).
-
@@ -10462,7 +9922,6 @@ programmer (unless you are creating a new type of #GIOChannel).
Reads data from a #GIOChannel.
Use g_io_channel_read_chars() instead.
-
%G_IO_ERROR_NONE if the operation was successful.
@@ -10489,7 +9948,6 @@ programmer (unless you are creating a new type of #GIOChannel).
Replacement for g_io_channel_read() with the new API.
-
the status of the operation.
@@ -10526,7 +9984,6 @@ programmer (unless you are creating a new type of #GIOChannel).
from a #GIOChannel into a newly-allocated string.
@str_return will contain allocated memory if the return
is %G_IO_STATUS_NORMAL.
-
the status of the operation.
@@ -10555,7 +10012,6 @@ is %G_IO_STATUS_NORMAL.
Reads a line from a #GIOChannel, using a #GString as a buffer.
-
the status of the operation.
@@ -10579,7 +10035,6 @@ is %G_IO_STATUS_NORMAL.
Reads all the remaining data from the file.
-
%G_IO_STATUS_NORMAL on success.
This function never returns %G_IO_STATUS_EOF.
@@ -10609,7 +10064,6 @@ is %G_IO_STATUS_NORMAL.
Reads a Unicode character from @channel.
This function cannot be called on a channel with %NULL encoding.
-
a #GIOStatus
@@ -10627,7 +10081,6 @@ This function cannot be called on a channel with %NULL encoding.
Increments the reference count of a #GIOChannel.
-
the @channel that was passed in (since 2.6)
@@ -10643,7 +10096,6 @@ This function cannot be called on a channel with %NULL encoding.
Sets the current position in the #GIOChannel, similar to the standard
library function fseek().
Use g_io_channel_seek_position() instead.
-
%G_IO_ERROR_NONE if the operation was successful.
@@ -10668,7 +10120,6 @@ library function fseek().
Replacement for g_io_channel_seek() with the new API.
-
the status of the operation.
@@ -10693,7 +10144,6 @@ library function fseek().
Sets the buffer size.
-
@@ -10728,7 +10178,6 @@ calls from the new and old APIs, if this is necessary for
maintaining old code.
The default state of the channel is buffered.
-
@@ -10750,7 +10199,6 @@ created by g_io_channel_new_file (), and %FALSE for all other channels.
Setting this flag to %TRUE for a channel you have already closed
can cause problems when the final reference to the #GIOChannel is dropped.
-
@@ -10801,7 +10249,6 @@ Channels which do not meet one of the above conditions cannot call
g_io_channel_seek_position() with an offset of %G_SEEK_CUR, and, if
they are "seekable", cannot call g_io_channel_write_chars() after
calling one of the API "read" functions.
-
%G_IO_STATUS_NORMAL if the encoding was successfully set
@@ -10819,7 +10266,6 @@ calling one of the API "read" functions.
Sets the (writeable) flags in @channel to (@flags & %G_IO_FLAG_SET_MASK).
-
the status of the operation.
@@ -10838,7 +10284,6 @@ calling one of the API "read" functions.
This sets the string that #GIOChannel uses to determine
where in the file a line break occurs.
-
@@ -10866,7 +10311,6 @@ where in the file a line break occurs.
Close an IO channel. Any pending data to be written will be
flushed if @flush is %TRUE. The channel will not be freed until the
last reference is dropped using g_io_channel_unref().
-
the status of the operation.
@@ -10887,7 +10331,6 @@ last reference is dropped using g_io_channel_unref().
On Windows this function returns the file descriptor or socket of
the #GIOChannel.
-
the file descriptor of the #GIOChannel.
@@ -10901,7 +10344,6 @@ the #GIOChannel.
Decrements the reference count of a #GIOChannel.
-
@@ -10915,7 +10357,6 @@ the #GIOChannel.
Writes data to a #GIOChannel.
Use g_io_channel_write_chars() instead.
-
%G_IO_ERROR_NONE if the operation was successful.
@@ -10946,7 +10387,6 @@ On seekable channels with encodings other than %NULL or UTF-8, generic
mixing of reading and writing is not allowed. A call to g_io_channel_write_chars ()
may only be made on a channel from which data has been read in the
cases described in the documentation for g_io_channel_set_encoding ().
-
the status of the operation.
@@ -10980,7 +10420,6 @@ cases described in the documentation for g_io_channel_set_encoding ().
Writes a Unicode character to @channel.
This function cannot be called on a channel with %NULL encoding.
-
a #GIOStatus
@@ -10998,7 +10437,6 @@ This function cannot be called on a channel with %NULL encoding.
Converts an `errno` error number to a #GIOChannelError.
-
a #GIOChannelError error number, e.g.
%G_IO_CHANNEL_ERROR_INVAL.
@@ -11019,7 +10457,6 @@ This function cannot be called on a channel with %NULL encoding.
Error codes returned by #GIOChannel operations.
-
File too large.
@@ -11074,7 +10511,6 @@ event source.
#GIOError is only used by the deprecated functions
g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
-
no error
@@ -11092,7 +10528,6 @@ g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
Specifies properties of a #GIOChannel. Some of the flags can only be
read with g_io_channel_get_flags(), but not changed with
g_io_channel_set_flags().
-
turns on append mode, corresponds to %O_APPEND
(see the documentation of the UNIX open() syscall)
@@ -11136,7 +10571,6 @@ g_io_channel_set_flags().
Specifies the type of function passed to g_io_add_watch() or
g_io_add_watch_full(), which is called when the requested condition
on a #GIOChannel is satisfied.
-
the function should return %FALSE if the event source
should be removed
@@ -11160,10 +10594,8 @@ on a #GIOChannel is satisfied.
A table of functions used to handle different types of #GIOChannel
in a generic way.
-
-
@@ -11185,7 +10617,6 @@ in a generic way.
-
@@ -11207,7 +10638,6 @@ in a generic way.
-
@@ -11226,7 +10656,6 @@ in a generic way.
-
@@ -11239,7 +10668,6 @@ in a generic way.
-
@@ -11255,7 +10683,6 @@ in a generic way.
-
@@ -11268,7 +10695,6 @@ in a generic way.
-
@@ -11284,7 +10710,6 @@ in a generic way.
-
@@ -11298,7 +10723,6 @@ in a generic way.
Statuses returned by most of the #GIOFuncs functions.
-
An error occurred.
@@ -11316,7 +10740,6 @@ in a generic way.
Checks whether a character is a directory
separator. It returns %TRUE for '/' on UNIX
machines and for '\' or '/' under Windows.
-
a character
@@ -11328,104 +10751,88 @@ machines and for '\' or '/' under Windows.
[Desktop Entry Specification](http://freedesktop.org/Standards/desktop-entry-spec).
Consult the specification for more
details about the meanings of the keys below.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
giving the available application actions.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a list
of strings giving the categories in which the desktop entry
should be shown in a menu.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
string giving the tooltip for the desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean set to true
if the application is D-Bus activatable.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a string
giving the command line to execute. It is only valid for desktop
entries with the `Application` type.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
string giving the generic name of the desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
stating whether the desktop entry has been deleted by the user.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
string giving the name of the icon to be displayed for the desktop
entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a list
of strings giving the MIME types supported by this desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
string giving the specific name of the desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
strings identifying the environments that should not display the
desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
stating whether the desktop entry should be shown in menus.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
strings identifying the environments that should display the
desktop entry.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a string
containing the working directory to run the program in. It is only
valid for desktop entries with the `Application` type.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
stating whether the application supports the
[Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
-
@@ -11433,7 +10840,6 @@ stating whether the application supports the
identifying the WM class or name hint of a window that the application
will create, which can be used to emulate Startup Notification with
older applications.
-
@@ -11441,7 +10847,6 @@ older applications.
stating whether the program should be run in a terminal window.
It is only valid for desktop entries with the
`Application` type.
-
@@ -11449,7 +10854,6 @@ It is only valid for desktop entries with the
giving the file name of a binary on disk used to determine if the
program is actually installed. It is only valid for desktop entries
with the `Application` type.
-
@@ -11458,51 +10862,43 @@ giving the type of the desktop entry. Usually
#G_KEY_FILE_DESKTOP_TYPE_APPLICATION,
#G_KEY_FILE_DESKTOP_TYPE_LINK, or
#G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a string
giving the URL to access. It is only valid for desktop entries
with the `Link` type.
-
A key under #G_KEY_FILE_DESKTOP_GROUP, whose value is a string
giving the version of the Desktop Entry Specification used for
the desktop entry file.
-
The value of the #G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
entries representing applications.
-
The value of the #G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
entries representing directories.
-
The value of the #G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
entries representing links to documents.
-
The GKeyFile struct contains only private data
and should not be accessed directly.
-
Creates a new empty #GKeyFile object. Use
g_key_file_load_from_file(), g_key_file_load_from_data(),
g_key_file_load_from_dirs() or g_key_file_load_from_data_dirs() to
read an existing key file.
-
an empty #GKeyFile.
@@ -11512,7 +10908,6 @@ read an existing key file.
Clears all keys and groups from @key_file, and decreases the
reference count by 1. If the reference count reaches zero,
frees the key file and all its allocated memory.
-
@@ -11531,7 +10926,6 @@ If @key cannot be found then %FALSE is returned and @error is set
to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value
associated with @key cannot be interpreted as a boolean then %FALSE
is returned and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the value associated with the key as a boolean,
or %FALSE if the key was not found or could not be parsed.
@@ -11560,7 +10954,6 @@ If @key cannot be found then %NULL is returned and @error is set to
#G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated
with @key cannot be interpreted as booleans then %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the values associated with the key as a list of booleans, or %NULL if the
@@ -11598,7 +10991,6 @@ If @key is %NULL then @comment will be read from above
Note that the returned string does not include the '#' comment markers,
but does include any whitespace after them (on each line). It includes
the line breaks between lines, but does not include the final line break.
-
a comment that should be freed with g_free()
@@ -11612,7 +11004,7 @@ the line breaks between lines, but does not include the final line break.
a group name, or %NULL
-
+
a key
@@ -11626,7 +11018,6 @@ If @key cannot be found then 0.0 is returned and @error is set to
#G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value associated
with @key cannot be interpreted as a double then 0.0 is returned
and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the value associated with the key as a double, or
0.0 if the key was not found or could not be parsed.
@@ -11655,7 +11046,6 @@ If @key cannot be found then %NULL is returned and @error is set to
#G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated
with @key cannot be interpreted as doubles then %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the values associated with the key as a list of doubles, or %NULL if the
@@ -11688,7 +11078,6 @@ and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
Returns all groups in the key file loaded with @key_file.
The array of returned groups will be %NULL-terminated, so
@length may optionally be %NULL.
-
a newly-allocated %NULL-terminated array of strings.
Use g_strfreev() to free it.
@@ -11711,7 +11100,6 @@ The array of returned groups will be %NULL-terminated, so
Returns the value associated with @key under @group_name as a signed
64-bit integer. This is similar to g_key_file_get_integer() but can return
64-bit results without truncation.
-
the value associated with the key as a signed 64-bit integer, or
0 if the key was not found or could not be parsed.
@@ -11741,7 +11129,6 @@ If @key cannot be found then 0 is returned and @error is set to
with @key cannot be interpreted as an integer, or is out of range
for a #gint, then 0 is returned
and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the value associated with the key as an integer, or
0 if the key was not found or could not be parsed.
@@ -11771,7 +11158,6 @@ If @key cannot be found then %NULL is returned and @error is set to
with @key cannot be interpreted as integers, or are out of range for
#gint, then %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE.
-
the values associated with the key as a list of integers, or %NULL if
@@ -11806,7 +11192,6 @@ returned keys will be %NULL-terminated, so @length may
optionally be %NULL. In the event that the @group_name cannot
be found, %NULL is returned and @error is set to
#G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
-
a newly-allocated %NULL-terminated array of strings.
Use g_strfreev() to free it.
@@ -11839,7 +11224,6 @@ g_key_file_get_locale_string_list() with exactly the same @key_file,
@group_name, @key and @locale, the result of those functions will
have originally been tagged with the locale that is the result of
this function.
-
the locale from the file, or %NULL if the key was not
found or the entry in the file was was untranslated
@@ -11877,7 +11261,6 @@ If @key cannot be found then %NULL is returned and @error is set
to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. If the value associated
with @key cannot be interpreted or no suitable translation can
be found then the untranslated value is returned.
-
a newly allocated string or %NULL if the specified
key cannot be found.
@@ -11917,7 +11300,6 @@ with @key cannot be interpreted or no suitable translations
can be found then the untranslated values are returned. The
returned array is %NULL-terminated, so @length may optionally
be %NULL.
-
a newly allocated %NULL-terminated string array
or %NULL if the key isn't found. The string array should be freed
@@ -11951,8 +11333,7 @@ be %NULL.
Returns the name of the start group of the file.
-
-
+
The start group of the key file.
@@ -11972,7 +11353,6 @@ In the event the key cannot be found, %NULL is returned and
@error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the
event that the @group_name cannot be found, %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
-
a newly allocated string or %NULL if the specified
key cannot be found.
@@ -12000,7 +11380,6 @@ In the event the key cannot be found, %NULL is returned and
@error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the
event that the @group_name cannot be found, %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
-
a %NULL-terminated string array or %NULL if the specified
@@ -12032,7 +11411,6 @@ and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
Returns the value associated with @key under @group_name as an unsigned
64-bit integer. This is similar to g_key_file_get_integer() but can return
large positive results without truncation.
-
the value associated with the key as an unsigned 64-bit integer,
or 0 if the key was not found or could not be parsed.
@@ -12061,7 +11439,6 @@ In the event the key cannot be found, %NULL is returned and
@error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the
event that the @group_name cannot be found, %NULL is returned
and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
-
a newly allocated string or %NULL if the specified
key cannot be found.
@@ -12084,7 +11461,6 @@ and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND.
Looks whether the key file has the group @group_name.
-
%TRUE if @group_name is a part of @key_file, %FALSE
otherwise.
@@ -12112,7 +11488,6 @@ whether it is not %NULL to see if an error occurred.
Language bindings should use g_key_file_get_value() to test whether
or not a key exists.
-
%TRUE if @key is a part of @group_name, %FALSE otherwise
@@ -12135,7 +11510,6 @@ or not a key exists.
Loads a key file from the data in @bytes into an empty #GKeyFile structure.
If the object cannot be created then %error is set to a #GKeyFileError.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -12158,7 +11532,6 @@ If the object cannot be created then %error is set to a #GKeyFileError.
Loads a key file from memory into an empty #GKeyFile structure.
If the object cannot be created then %error is set to a #GKeyFileError.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -12188,7 +11561,6 @@ returned from g_get_user_data_dir() and g_get_system_data_dirs(),
loads the file into @key_file and returns the file's full path in
@full_path. If the file could not be loaded then an %error is
set to either a #GFileError or #GKeyFileError.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -12223,7 +11595,6 @@ If the file could not be found in any of the @search_dirs,
the file is found but the OS returns an error when opening or reading the
file, a %G_FILE_ERROR is returned. If there is a problem parsing the file, a
%G_KEY_FILE_ERROR is returned.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -12263,7 +11634,6 @@ If the OS returns an error when opening or reading the file, a
This function will never return a %G_KEY_FILE_ERROR_NOT_FOUND error. If the
@file is not found, %G_FILE_ERROR_NOENT is returned.
-
%TRUE if a key file could be loaded, %FALSE otherwise
@@ -12285,7 +11655,6 @@ This function will never return a %G_KEY_FILE_ERROR_NOT_FOUND error. If the
Increases the reference count of @key_file.
-
the same @key_file.
@@ -12302,7 +11671,6 @@ This function will never return a %G_KEY_FILE_ERROR_NOT_FOUND error. If the
If @key is %NULL then @comment will be removed above @group_name.
If both @key and @group_name are %NULL, then @comment will
be removed above the first group in the file.
-
%TRUE if the comment was removed, %FALSE otherwise
@@ -12325,7 +11693,6 @@ be removed above the first group in the file.
Removes the specified group, @group_name,
from the key file.
-
%TRUE if the group was removed, %FALSE otherwise
@@ -12343,7 +11710,6 @@ from the key file.
Removes @key in @group_name from the key file.
-
%TRUE if the key was removed, %FALSE otherwise
@@ -12371,7 +11737,6 @@ g_file_set_contents_full() with the return value of g_key_file_to_data().
This function can fail for any of the reasons that
g_file_set_contents() may fail.
-
%TRUE if successful, else %FALSE with @error set
@@ -12390,7 +11755,6 @@ g_file_set_contents() may fail.
Associates a new boolean value with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12417,7 +11781,6 @@ If @key cannot be found then it is created.
Associates a list of boolean values with @key under @group_name.
If @key cannot be found then it is created.
If @group_name is %NULL, the start_group is used.
-
@@ -12455,7 +11818,6 @@ written above the first group in the file.
Note that this function prepends a '#' comment marker to
each line of @comment.
-
%TRUE if the comment was written, %FALSE otherwise
@@ -12482,7 +11844,6 @@ each line of @comment.
Associates a new double value with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12508,7 +11869,6 @@ If @key cannot be found then it is created.
Associates a list of double values with @key under
@group_name. If @key cannot be found then it is created.
-
@@ -12540,7 +11900,6 @@ If @key cannot be found then it is created.
Associates a new integer value with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12566,7 +11925,6 @@ If @key cannot be found then it is created.
Associates a new integer value with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12592,7 +11950,6 @@ If @key cannot be found then it is created.
Associates a list of integer values with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12625,7 +11982,6 @@ If @key cannot be found then it is created.
Sets the character which is used to separate
values in lists. Typically ';' or ',' are used
as separators. The default list separator is ';'.
-
@@ -12643,7 +11999,6 @@ as separators. The default list separator is ';'.
Associates a string value for @key and @locale under @group_name.
If the translation for @key cannot be found then it is created.
-
@@ -12674,7 +12029,6 @@ If the translation for @key cannot be found then it is created.
Associates a list of string values for @key and @locale under
@group_name. If the translation for @key cannot be found then
it is created.
-
@@ -12713,7 +12067,6 @@ If @key cannot be found then it is created.
If @group_name cannot be found then it is created.
Unlike g_key_file_set_value(), this function handles characters
that need escaping, such as newlines.
-
@@ -12740,7 +12093,6 @@ that need escaping, such as newlines.
Associates a list of string values for @key under @group_name.
If @key cannot be found then it is created.
If @group_name cannot be found then it is created.
-
@@ -12772,7 +12124,6 @@ If @group_name cannot be found then it is created.
Associates a new integer value with @key under @group_name.
If @key cannot be found then it is created.
-
@@ -12802,7 +12153,6 @@ If @key cannot be found then it is created. If @group_name cannot
be found then it is created. To set an UTF-8 string which may contain
characters that need escaping (such as newlines or spaces), use
g_key_file_set_string().
-
@@ -12830,7 +12180,6 @@ g_key_file_set_string().
Note that this function never reports an error,
so it is safe to pass %NULL as @error.
-
a newly allocated string holding
the contents of the #GKeyFile
@@ -12851,7 +12200,6 @@ so it is safe to pass %NULL as @error.
Decreases the reference count of @key_file by 1. If the reference count
reaches zero, frees the key file and all its allocated memory.
-
@@ -12870,7 +12218,6 @@ reaches zero, frees the key file and all its allocated memory.
Error codes returned by key file parsing.
-
the text being parsed was in
an unknown encoding
@@ -12893,7 +12240,6 @@ reaches zero, frees the key file and all its allocated memory.
Flags which influence the parsing.
-
No flags, default behaviour
@@ -12918,7 +12264,6 @@ a true value. The compiler may use this information for optimizations.
if (G_LIKELY (random () != 1))
g_print ("not one");
]|
-
the expression
@@ -12928,23 +12273,19 @@ if (G_LIKELY (random () != 1))
Specifies one of the possible types of byte order.
See #G_BYTE_ORDER.
-
The natural logarithm of 10.
-
The natural logarithm of 2.
-
Works like g_mutex_lock(), but for a lock defined with
#G_LOCK_DEFINE.
-
the name of the lock
@@ -12978,7 +12319,6 @@ Here is an example for using the #G_LOCK convenience macros:
return ret_val;
}
]|
-
the name of the lock
@@ -12987,7 +12327,6 @@ Here is an example for using the #G_LOCK convenience macros:
This works like #G_LOCK_DEFINE, but it creates a static object.
-
the name of the lock
@@ -12997,7 +12336,6 @@ Here is an example for using the #G_LOCK convenience macros:
This declares a lock, that is defined with #G_LOCK_DEFINE in another
module.
-
the name of the lock
@@ -13005,7 +12343,6 @@ module.
-
@@ -13013,7 +12350,6 @@ module.
Multiplying the base 2 exponent by this number yields the base 10 exponent.
-
@@ -13040,7 +12376,6 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Gtk\"
Applications can choose to leave it as the default %NULL (or `""`)
domain. However, defining the domain offers the same advantages as
above.
-
@@ -13048,18 +12383,15 @@ above.
This is not used if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib.
Higher bits can be used for user-defined log levels.
-
The #GList struct is used for each element in a doubly-linked list.
-
holds the element's data, which can be a pointer to any kind
of data, or any integer value using the
@@ -13082,7 +12414,6 @@ Higher bits can be used for user-defined log levels.
Allocates space for one #GList element. It is called by
g_list_append(), g_list_prepend(), g_list_insert() and
g_list_insert_sorted() and so is rarely used on its own.
-
a pointer to the newly-allocated #GList element
@@ -13113,7 +12444,6 @@ string_list = g_list_append (string_list, "second");
number_list = g_list_append (number_list, GINT_TO_POINTER (27));
number_list = g_list_append (number_list, GINT_TO_POINTER (14));
]|
-
either @list or the new start of the #GList if @list was %NULL
@@ -13144,7 +12474,6 @@ The following example moves an element to the top of the list:
list = g_list_remove_link (list, llink);
list = g_list_concat (llink, list);
]|
-
the start of the new #GList, which equals @list1 if not %NULL
@@ -13174,7 +12503,6 @@ Note that this is a "shallow" copy. If the list elements
consist of pointers to data, the pointers are copied but
the actual data is not. See g_list_copy_deep() if you need
to copy the data as well.
-
the start of the new list that holds the same data as @list
@@ -13212,7 +12540,6 @@ And, to entirely free the new list, you could do:
|[<!-- language="C" -->
g_list_free_full (another_list, g_object_unref);
]|
-
the start of the new list that holds a full copy of @list,
use g_list_free_full() to free it
@@ -13241,7 +12568,6 @@ g_list_free_full (another_list, g_object_unref);
Removes the node link_ from the list and frees it.
Compare this to g_list_remove_link() which removes the node
without freeing it.
-
the (possibly changed) start of the #GList
@@ -13265,7 +12591,6 @@ without freeing it.
Finds the element in a #GList which contains the given data.
-
the found #GList element, or %NULL if it is not found
@@ -13292,7 +12617,6 @@ the given function which should return 0 when the desired
element is found. The function takes two #gconstpointer arguments,
the #GList element's data as the first argument and the
given user data.
-
the found #GList element, or %NULL if it is not found
@@ -13319,7 +12643,6 @@ given user data.
Gets the first element in a #GList.
-
the first element in the #GList,
or %NULL if the #GList has no elements
@@ -13341,7 +12664,6 @@ given user data.
It is safe for @func to remove the element from @list, but it must
not modify any part of the list after that element.
-
@@ -13375,13 +12697,12 @@ is not left dangling:
GList *list_of_borrowed_things = …; /<!-- -->* (transfer container) *<!-- -->/
g_list_free (g_steal_pointer (&list_of_borrowed_things));
]|
-
- a #GList
+ the first link of a #GList
@@ -13394,7 +12715,6 @@ previous elements in the list, so you should not call this function on an
element that is currently part of a list.
It is usually used after g_list_remove_link().
-
@@ -13422,13 +12742,12 @@ from @free_func:
GList *list_of_owned_things = …; /<!-- -->* (transfer full) (element-type GObject) *<!-- -->/
g_list_free_full (g_steal_pointer (&list_of_owned_things), g_object_unref);
]|
-
- a pointer to a #GList
+ the first link of a #GList
@@ -13442,7 +12761,6 @@ g_list_free_full (g_steal_pointer (&list_of_owned_things), g_object_unref);
Gets the position of the element containing
the given data (starting from 0).
-
the index of the element containing the data,
or -1 if the data is not found
@@ -13463,7 +12781,6 @@ the given data (starting from 0).
Inserts a new element into the list at the given position.
-
the (possibly changed) start of the #GList
@@ -13491,7 +12808,6 @@ the given data (starting from 0).
Inserts a new element into the list before the given position.
-
the (possibly changed) start of the #GList
@@ -13520,7 +12836,6 @@ the given data (starting from 0).
Inserts @link_ into the list before the given position.
-
the (possibly changed) start of the #GList
@@ -13558,7 +12873,6 @@ If you are adding many new elements to a list, and the number of
new elements is much larger than the length of the list, use
g_list_prepend() to add the new items and sort the list afterwards
with g_list_sort().
-
the (possibly changed) start of the #GList
@@ -13593,7 +12907,6 @@ If you are adding many new elements to a list, and the number of
new elements is much larger than the length of the list, use
g_list_prepend() to add the new items and sort the list afterwards
with g_list_sort().
-
the (possibly changed) start of the #GList
@@ -13626,7 +12939,6 @@ with g_list_sort().
Gets the last element in a #GList.
-
the last element in the #GList,
or %NULL if the #GList has no elements
@@ -13650,7 +12962,6 @@ This function iterates over the whole list to count its elements.
Use a #GQueue instead of a GList if you regularly need the number
of items. To check whether the list is non-empty, it is faster to check
@list against %NULL.
-
the number of elements in the #GList
@@ -13670,7 +12981,6 @@ of items. To check whether the list is non-empty, it is faster to check
This iterates over the list until it reaches the @n-th position. If you
intend to iterate over every element, it is better to use a for-loop as
described in the #GList introduction.
-
the element, or %NULL if the position is off
the end of the #GList
@@ -13697,7 +13007,6 @@ described in the #GList introduction.
This iterates over the list until it reaches the @n-th position. If you
intend to iterate over every element, it is better to use a for-loop as
described in the #GList introduction.
-
the element's data, or %NULL if the position
is off the end of the #GList
@@ -13718,7 +13027,6 @@ described in the #GList introduction.
Gets the element @n places before @list.
-
the element, or %NULL if the position is
off the end of the #GList
@@ -13742,7 +13050,6 @@ described in the #GList introduction.
Gets the position of the given element
in the #GList (starting from 0).
-
the position of the element in the #GList,
or -1 if the element is not found
@@ -13779,7 +13086,6 @@ list = g_list_prepend (list, "first");
Do not use this function to prepend a new element to a different
element than the start of the list. Use g_list_insert_before() instead.
-
a pointer to the newly prepended element, which is the new
start of the #GList
@@ -13804,7 +13110,6 @@ element than the start of the list. Use g_list_insert_before() instead.
Removes an element from a #GList.
If two elements contain the same data, only the first is removed.
If none of the elements contain the data, the #GList is unchanged.
-
the (possibly changed) start of the #GList
@@ -13829,7 +13134,6 @@ If none of the elements contain the data, the #GList is unchanged.
Returns the new head of the list. Contrast with
g_list_remove() which removes only the first node
matching the given data.
-
the (possibly changed) start of the #GList
@@ -13862,7 +13166,6 @@ list = g_list_remove_link (list, llink);
free_some_data_that_may_access_the_list_again (llink->data);
g_list_free (llink);
]|
-
the (possibly changed) start of the #GList
@@ -13887,7 +13190,6 @@ g_list_free (llink);
Reverses a #GList.
It simply switches the next and prev pointers of each element.
-
the start of the reversed #GList
@@ -13906,7 +13208,6 @@ It simply switches the next and prev pointers of each element.
Sorts a #GList using the given comparison function. The algorithm
used is a stable sort.
-
the (possibly changed) start of the #GList
@@ -13933,7 +13234,6 @@ used is a stable sort.
Like g_list_sort(), but the comparison function accepts
a user data argument.
-
the (possibly changed) start of the #GList
@@ -13966,7 +13266,6 @@ Log fields may contain arbitrary values, including binary with embedded nul
bytes. If the field contains a string, the string must be UTF-8 encoded and
have a trailing nul byte. Otherwise, @length must be set to a non-negative
value.
-
field name (UTF-8 string)
@@ -13991,7 +13290,6 @@ log handler is changed.
This is not used if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
@@ -14020,7 +13318,6 @@ This is not used if structured logging is enabled; see
It is possible to change how GLib treats messages of the various
levels using g_log_set_handler() and g_log_set_fatal_mask().
-
internal flag
@@ -14072,7 +13369,6 @@ error handling the message (for example, if the writer function is meant to
send messages to a remote logging server and there is a network error), it
should return %G_LOG_WRITER_UNHANDLED. This allows writer functions to be
chained and fall back to simpler handlers in case of failure.
-
%G_LOG_WRITER_HANDLED if the log entry was handled successfully;
%G_LOG_WRITER_UNHANDLED otherwise
@@ -14106,7 +13402,6 @@ handling it (and hence a fallback writer should be used).
If a #GLogWriterFunc ignores a log entry, it should return
%G_LOG_WRITER_HANDLED.
-
Log writer has handled the log entry.
@@ -14120,76 +13415,62 @@ If a #GLogWriterFunc ignores a log entry, it should return
Like #glib_major_version, but from the headers used at
application compile time, rather than from the library
linked against at application run time.
-
The maximum value which can be held in a #gint16.
-
The maximum value which can be held in a #gint32.
-
The maximum value which can be held in a #gint64.
-
The maximum value which can be held in a #gint8.
-
The maximum value which can be held in a #guint16.
-
The maximum value which can be held in a #guint32.
-
The maximum value which can be held in a #guint64.
-
The maximum value which can be held in a #guint8.
-
-
+
The micro version number of the GLib library.
Like #gtk_micro_version, but from the headers used at
application compile time, rather than from the library
linked against at application run time.
-
The minimum value which can be held in a #gint16.
-
The minimum value which can be held in a #gint32.
-
The minimum value which can be held in a #gint64.
-
The minimum value which can be held in a #gint8.
-
@@ -14198,20 +13479,16 @@ linked against at application run time.
Like #gtk_minor_version, but from the headers used at
application compile time, rather than from the library
linked against at application run time.
-
-
The `GMainContext` struct is an opaque data
type representing a set of sources to be handled in a main loop.
-
Creates a new #GMainContext structure.
-
the new #GMainContext
@@ -14228,7 +13505,6 @@ is called as many times as g_main_context_acquire().
You must be the owner of a context before you
can call g_main_context_prepare(), g_main_context_query(),
g_main_context_check(), g_main_context_dispatch().
-
%TRUE if the operation succeeded, and
this thread is now the owner of @context.
@@ -14245,7 +13521,6 @@ g_main_context_check(), g_main_context_dispatch().
Adds a file descriptor to the set of file descriptors polled for
this context. This will very seldom be used directly. Instead
a typical event source will use g_source_add_unix_fd() instead.
-
@@ -14268,11 +13543,13 @@ a typical event source will use g_source_add_unix_fd() instead.
- Passes the results of polling back to the main loop.
+ Passes the results of polling back to the main loop. You should be
+careful to pass @fds and its length @n_fds as received from
+g_main_context_query(), as this functions relies on assumptions
+on how @fds is filled.
You must have successfully acquired the context with
g_main_context_acquire() before you may call this function.
-
%TRUE if some sources are ready to be dispatched.
@@ -14304,7 +13581,6 @@ g_main_context_acquire() before you may call this function.
You must have successfully acquired the context with
g_main_context_acquire() before you may call this function.
-
@@ -14319,7 +13595,6 @@ g_main_context_acquire() before you may call this function.
Finds a source with the given source functions and user data. If
multiple sources exist with the same source function and user data,
the first one found will be returned.
-
the source, if one was found, otherwise %NULL
@@ -14352,7 +13627,6 @@ idle may already have run and been removed by the time this function
is called on its (now invalid) source ID. This source ID may have
been reissued, leading to the operation being performed against the
wrong source.
-
the #GSource
@@ -14372,7 +13646,6 @@ wrong source.
Finds a source with the given user data for the callback. If
multiple sources exist with the same user data, the first
one found will be returned.
-
the source, if one was found, otherwise %NULL
@@ -14390,7 +13663,6 @@ one found will be returned.
Gets the poll function set by g_main_context_set_poll_func().
-
the poll function
@@ -14424,7 +13696,6 @@ g_main_context_invoke_full().
Note that, as with normal idle functions, @function should probably
return %FALSE. If it returns %TRUE, it will be continuously run in a
loop (and may prevent this call from returning).
-
@@ -14453,7 +13724,6 @@ scheduled as an idle and also lets you give a #GDestroyNotify for @data.
@notify should not assume that it is called from any particular
thread or with any particular context acquired.
-
@@ -14485,7 +13755,6 @@ thread or with any particular context acquired.
ownership of this #GMainContext. This is useful to
know before waiting on another thread that may be
blocking to get ownership of @context.
-
%TRUE if current thread is owner of @context.
@@ -14510,7 +13779,6 @@ given moment without further waiting.
Note that even when @may_block is %TRUE, it is still possible for
g_main_context_iteration() to return %FALSE, since the wait may
be interrupted for other reasons than an event source becoming ready.
-
%TRUE if events were dispatched.
@@ -14528,7 +13796,6 @@ be interrupted for other reasons than an event source becoming ready.
Checks if any sources have pending events for the given context.
-
%TRUE if events are pending.
@@ -14543,7 +13810,6 @@ be interrupted for other reasons than an event source becoming ready.
Pops @context off the thread-default context stack (verifying that
it was on the top of the stack).
-
@@ -14560,7 +13826,6 @@ for polling is determined by calling g_main_context_query ().
You must have successfully acquired the context with
g_main_context_acquire() before you may call this function.
-
%TRUE if some source is ready to be dispatched
prior to polling.
@@ -14617,7 +13882,6 @@ started while the non-default context is active.
Beware that libraries that predate this function may not correctly
handle being used from a thread with a thread-default context. Eg,
see g_file_supports_thread_contexts().
-
@@ -14629,11 +13893,13 @@ see g_file_supports_thread_contexts().
- Determines information necessary to poll this main loop.
+ Determines information necessary to poll this main loop. You should
+be careful to pass the resulting @fds array and its length @n_fds
+as is when calling g_main_context_check(), as this function relies
+on assumptions made when the array is filled.
You must have successfully acquired the context with
g_main_context_acquire() before you may call this function.
-
the number of records actually stored in @fds,
or, if more than @n_fds records need to be stored, the number
@@ -14668,7 +13934,6 @@ g_main_context_acquire() before you may call this function.
Increases the reference count on a #GMainContext object by one.
-
the @context that was passed in (since 2.6)
@@ -14685,7 +13950,6 @@ g_main_context_acquire() before you may call this function.
with g_main_context_acquire(). If the context was acquired multiple
times, the ownership will be released only when g_main_context_release()
is called as many times as it was acquired.
-
@@ -14699,7 +13963,6 @@ is called as many times as it was acquired.
Removes file descriptor from the set of file descriptors to be
polled for a particular context.
-
@@ -14722,7 +13985,6 @@ poll() isn't available).
This function could possibly be used to integrate the GLib event
loop with an external event loop.
-
@@ -14740,7 +14002,6 @@ loop with an external event loop.
Decreases the reference count on a #GMainContext object by one. If
the result is zero, free the context and free all associated memory.
-
@@ -14758,7 +14019,6 @@ is the owner, atomically drop @mutex and wait on @cond until
that owner releases ownership or until @cond is signaled, then
try again (once) to become the owner.
Use g_main_context_is_owner() and separate locking instead.
-
%TRUE if the operation succeeded, and
this thread is now the owner of @context.
@@ -14794,7 +14054,7 @@ loop with a termination condition, computed from multiple threads:
|[<!-- language="C" -->
#define NUM_TASKS 10
- static volatile gint tasks_remaining = NUM_TASKS;
+ static gint tasks_remaining = NUM_TASKS; // (atomic)
...
while (g_atomic_int_get (&tasks_remaining) != 0)
@@ -14808,7 +14068,6 @@ Then in a thread:
if (g_atomic_int_dec_and_test (&tasks_remaining))
g_main_context_wakeup (NULL);
]|
-
@@ -14824,7 +14083,6 @@ Then in a thread:
used for main loop functions when a main loop is not explicitly
specified, and corresponds to the "main" main loop. See also
g_main_context_get_thread_default().
-
the global default main context.
@@ -14842,8 +14100,7 @@ always return %NULL if you are running in the default thread.)
If you need to hold a reference on the context, use
g_main_context_ref_thread_default() instead.
-
-
+
the thread-default #GMainContext, or
%NULL if the thread-default context is the global default context.
@@ -14856,7 +14113,6 @@ it with g_main_context_ref(). In addition, unlike
g_main_context_get_thread_default(), if the thread-default context
is the global default context, this will return that #GMainContext
(with a ref added to it) rather than returning %NULL.
-
the thread-default #GMainContext. Unref
with g_main_context_unref() when you are done with it.
@@ -14867,10 +14123,8 @@ is the global default context, this will return that #GMainContext
The `GMainLoop` struct is an opaque data type
representing the main event loop of a GLib or GTK+ application.
-
Creates a new #GMainLoop structure.
-
a new #GMainLoop.
@@ -14890,7 +14144,6 @@ is not very important since calling g_main_loop_run() will set this to
Returns the #GMainContext of @loop.
-
the #GMainContext of @loop
@@ -14904,7 +14157,6 @@ is not very important since calling g_main_loop_run() will set this to
Checks to see if the main loop is currently being run via g_main_loop_run().
-
%TRUE if the mainloop is currently being run.
@@ -14922,7 +14174,6 @@ for the loop will return.
Note that sources that have already been dispatched when
g_main_loop_quit() is called will still be executed.
-
@@ -14935,7 +14186,6 @@ g_main_loop_quit() is called will still be executed.
Increases the reference count on a #GMainLoop object by one.
-
@loop
@@ -14952,7 +14202,6 @@ g_main_loop_quit() is called will still be executed.
If this is called for the thread of the loop's #GMainContext,
it will process events from the loop, otherwise it will
simply wait.
-
@@ -14966,7 +14215,6 @@ simply wait.
Decreases the reference count on a #GMainLoop object by one. If
the result is zero, free the loop and free all associated memory.
-
@@ -14982,7 +14230,6 @@ the result is zero, free the loop and free all associated memory.
The #GMappedFile represents a file mapping created with
g_mapped_file_new(). It has only private members and should
not be accessed directly.
-
Maps a file into memory. On UNIX, this is using the mmap() function.
@@ -15000,7 +14247,6 @@ If @filename is the name of an empty, regular file, the function
will successfully return an empty #GMappedFile. In other cases of
size 0 (e.g. device files such as /dev/null), @error will be set
to the #GFileError value #G_FILE_ERROR_INVAL.
-
a newly allocated #GMappedFile which must be unref'd
with g_mapped_file_unref(), or %NULL if the mapping failed.
@@ -15030,7 +14276,6 @@ Note that modifications of the underlying file might affect the contents
of the #GMappedFile. Therefore, mapping should only be used if the file
will not be modified, or if all modifications of the file are done
atomically (e.g. using g_file_set_contents()).
-
a newly allocated #GMappedFile which must be unref'd
with g_mapped_file_unref(), or %NULL if the mapping failed.
@@ -15051,7 +14296,6 @@ atomically (e.g. using g_file_set_contents()).
This call existed before #GMappedFile had refcounting and is currently
exactly the same as g_mapped_file_unref().
Use g_mapped_file_unref() instead.
-
@@ -15066,7 +14310,6 @@ exactly the same as g_mapped_file_unref().
Creates a new #GBytes which references the data mapped from @file.
The mapped contents of the file must not be modified after creating this
bytes object, because a #GBytes should be immutable.
-
A newly allocated #GBytes referencing data
from @file
@@ -15086,7 +14329,6 @@ Note that the contents may not be zero-terminated,
even if the #GMappedFile is backed by a text file.
If the file is empty then %NULL is returned.
-
the contents of @file, or %NULL.
@@ -15100,7 +14342,6 @@ If the file is empty then %NULL is returned.
Returns the length of the contents of a #GMappedFile.
-
the length of the contents of @file.
@@ -15115,7 +14356,6 @@ If the file is empty then %NULL is returned.
Increments the reference count of @file by one. It is safe to call
this function from any thread.
-
the passed in #GMappedFile.
@@ -15134,7 +14374,6 @@ drops to 0, unmaps the buffer of @file and frees it.
It is safe to call this function from any thread.
Since 2.22
-
@@ -15153,7 +14392,6 @@ bitwise OR the type with the flag %G_MARKUP_COLLECT_OPTIONAL.
It is likely that this enum will be extended in the future to
support other types.
-
used to terminate the list of attributes
to collect
@@ -15190,7 +14428,6 @@ support other types.
Error codes returned by markup parsing.
-
text being parsed was not valid UTF-8
@@ -15223,14 +14460,12 @@ you expect to contain marked-up text.
See g_markup_parse_context_new(), #GMarkupParser, and so
on for more details.
-
Creates a new parse context. A parse context is used to parse
marked-up documents. You can feed any number of documents into
a context, as long as no errors occur; once an error occurs,
the parse context can't continue to parse text (you have to
free it and create a new parse context).
-
a new #GMarkupParseContext
@@ -15261,7 +14496,6 @@ fed into the parse context with g_markup_parse_context_parse().
This function reports an error if the document isn't complete,
for example if elements are still open.
-
%TRUE on success, %FALSE if an error was set
@@ -15278,7 +14512,6 @@ for example if elements are still open.
This function can't be called from inside one of the
#GMarkupParser functions or while a subparser is pushed.
-
@@ -15295,7 +14528,6 @@ This function can't be called from inside one of the
If called from the start_element or end_element handlers this will
give the element_name as passed to those functions. For the parent
elements, see g_markup_parse_context_get_element_stack().
-
the name of the currently open element, or %NULL
@@ -15319,7 +14551,6 @@ This function is intended to be used in the start_element and
end_element handlers where g_markup_parse_context_get_element()
would merely return the name of the element that is being
processed.
-
the element stack, which must not be modified
@@ -15338,7 +14569,6 @@ processed.
that line. Intended for use in error messages; there are no strict
semantics for what constitutes the "current" line number other than
"the best number we could come up with for error messages."
-
@@ -15363,7 +14593,6 @@ semantics for what constitutes the "current" line number other than
This will either be the user_data that was provided to
g_markup_parse_context_new() or to the most recent call
of g_markup_parse_context_push().
-
the provided user_data. The returned data belongs to
the markup context and will be freed when
@@ -15388,7 +14617,6 @@ connection or file, you feed each received chunk of data into this
function, aborting the process if an error occurs. Once an error
is reported, no further data may be fed to the #GMarkupParseContext;
all errors are fatal.
-
%FALSE if an error occurred, %TRUE on success
@@ -15422,7 +14650,6 @@ This function is not intended to be directly called by users
interested in invoking subparsers. Instead, it is intended to
be used by the subparsers themselves to implement a higher-level
interface.
-
the user data passed to g_markup_parse_context_push()
@@ -15549,7 +14776,6 @@ static void end_element (context, element_name, ...)
// else, handle other tags...
}
]|
-
@@ -15570,7 +14796,6 @@ static void end_element (context, element_name, ...)
Increases the reference count of @context.
-
the same @context
@@ -15585,7 +14810,6 @@ static void end_element (context, element_name, ...)
Decreases the reference count of @context. When its reference count
drops to 0, it is freed.
-
@@ -15599,7 +14823,6 @@ drops to 0, it is freed.
Flags that affect the behaviour of the parser.
-
flag you should not use
@@ -15632,10 +14855,8 @@ can set an error; in particular the %G_MARKUP_ERROR_UNKNOWN_ELEMENT,
errors are intended to be set from these callbacks. If you set an error
from a callback, g_markup_parse_context_parse() will report that error
back to its caller.
-
-
@@ -15660,7 +14881,6 @@ back to its caller.
-
@@ -15679,7 +14899,6 @@ back to its caller.
-
@@ -15701,7 +14920,6 @@ back to its caller.
-
@@ -15723,7 +14941,6 @@ back to its caller.
-
@@ -15744,7 +14961,6 @@ back to its caller.
A GMatchInfo is an opaque struct used to return information about
matches.
-
Returns a new string containing the text in @string_to_expand with
references and escape sequences expanded. References refer to the last
@@ -15763,7 +14979,6 @@ pattern and '\n' merely will be replaced with \n character,
while to expand "\0" (whole match) one needs the result of a match.
Use g_regex_check_replacement() to find out whether @string_to_expand
contains references.
-
the expanded string, or %NULL if an error occurred
@@ -15796,7 +15011,6 @@ substring. Substrings are matched in reverse order of length, so
The string is fetched from the string passed to the match function,
so you cannot call this function after freeing the string.
-
The matched substring, or %NULL if an error
occurred. You have to free the string yourself
@@ -15830,7 +15044,6 @@ so the first one is the longest match.
The strings are fetched from the string passed to the match function,
so you cannot call this function after freeing the string.
-
a %NULL-terminated array of gchar *
pointers. It must be freed using g_strfreev(). If the previous
@@ -15855,7 +15068,6 @@ then an empty string is returned.
The string is fetched from the string passed to the match function,
so you cannot call this function after freeing the string.
-
The matched substring, or %NULL if an error
occurred. You have to free the string yourself
@@ -15878,7 +15090,6 @@ so you cannot call this function after freeing the string.
If @name is a valid sub pattern name but it didn't match anything
(e.g. sub pattern "X", matching "b" against "(?P<X>a)?b")
then @start_pos and @end_pos are set to -1 and %TRUE is returned.
-
%TRUE if the position was fetched, %FALSE otherwise.
If the position cannot be fetched, @start_pos and @end_pos
@@ -15920,7 +15131,6 @@ g_regex_match_all() or g_regex_match_all_full(), the retrieved
position is not that of a set of parentheses but that of a matched
substring. Substrings are matched in reverse order of length, so
0 is the longest match.
-
%TRUE if the position was fetched, %FALSE otherwise. If
the position cannot be fetched, @start_pos and @end_pos are left
@@ -15951,7 +15161,6 @@ substring. Substrings are matched in reverse order of length, so
If @match_info is not %NULL, calls g_match_info_unref(); otherwise does
nothing.
-
@@ -15971,7 +15180,6 @@ If the last match was obtained using the DFA algorithm, that is
using g_regex_match_all() or g_regex_match_all_full(), the retrieved
count is not that of the number of capturing parentheses but that of
the number of matched substrings.
-
Number of matched substrings, or -1 if an error occurred
@@ -15987,7 +15195,6 @@ the number of matched substrings.
Returns #GRegex object used in @match_info. It belongs to Glib
and must not be freed. Use g_regex_ref() if you need to keep it
after you free @match_info object.
-
#GRegex object used in @match_info
@@ -16003,7 +15210,6 @@ after you free @match_info object.
Returns the string searched with @match_info. This is the
string passed to g_regex_match() or g_regex_replace() so
you may not free it before calling this function.
-
the string searched with @match_info
@@ -16049,7 +15255,6 @@ There were formerly some restrictions on the pattern for partial matching.
The restrictions no longer apply.
See pcrepartial(3) for more information on partial matching.
-
%TRUE if the match was partial, %FALSE otherwise
@@ -16063,7 +15268,6 @@ See pcrepartial(3) for more information on partial matching.
Returns whether the previous match operation succeeded.
-
%TRUE if the previous match operation succeeded,
%FALSE otherwise
@@ -16083,7 +15287,6 @@ call to g_regex_match_full() or g_regex_match() that returned
The match is done on the string passed to the match function, so you
cannot free it before calling this function.
-
%TRUE is the string matched, %FALSE otherwise
@@ -16097,7 +15300,6 @@ cannot free it before calling this function.
Increases reference count of @match_info by 1.
-
@match_info
@@ -16112,7 +15314,6 @@ cannot free it before calling this function.
Decreases reference count of @match_info by 1. When reference count drops
to zero, it frees all the memory associated with the match_info structure.
-
@@ -16130,10 +15331,8 @@ be used for all allocations in the same program; a call to g_mem_set_vtable(),
if it exists, should be prior to any use of GLib.
This functions related to this has been deprecated in 2.46, and no longer work.
-
-
@@ -16146,7 +15345,6 @@ This functions related to this has been deprecated in 2.46, and no longer work.<
-
@@ -16162,7 +15360,6 @@ This functions related to this has been deprecated in 2.46, and no longer work.<
-
@@ -16175,7 +15372,6 @@ This functions related to this has been deprecated in 2.46, and no longer work.<
-
@@ -16191,7 +15387,6 @@ This functions related to this has been deprecated in 2.46, and no longer work.<
-
@@ -16204,7 +15399,6 @@ This functions related to this has been deprecated in 2.46, and no longer work.<
-
@@ -16264,7 +15458,6 @@ If a #GMutex is placed in other contexts (eg: embedded in a struct)
then it must be explicitly initialised using g_mutex_init().
A #GMutex should only be accessed via g_mutex_ functions.
-
@@ -16283,7 +15476,6 @@ Calling g_mutex_clear() on a locked mutex leads to undefined
behaviour.
Sine: 2.32
-
@@ -16319,7 +15511,6 @@ needed, use g_mutex_clear().
Calling g_mutex_init() on an already initialized #GMutex leads
to undefined behaviour.
-
@@ -16339,7 +15530,6 @@ thread.
non-recursive. As such, calling g_mutex_lock() on a #GMutex that has
already been locked by the same thread results in undefined behaviour
(including but not limited to deadlocks).
-
@@ -16359,7 +15549,6 @@ it immediately returns %FALSE. Otherwise it locks @mutex and returns
non-recursive. As such, calling g_mutex_lock() on a #GMutex that has
already been locked by the same thread results in undefined behaviour
(including but not limited to deadlocks or arbitrary return values).
-
%TRUE if @mutex could be locked
@@ -16377,7 +15566,6 @@ call for @mutex, it will become unblocked and can lock @mutex itself.
Calling g_mutex_unlock() on a mutex that is not locked by the
current thread leads to undefined behaviour.
-
@@ -16391,7 +15579,6 @@ current thread leads to undefined behaviour.
Returns %TRUE if a #GNode is a leaf node.
-
a #GNode
@@ -16400,7 +15587,6 @@ current thread leads to undefined behaviour.
Returns %TRUE if a #GNode is the root of a tree.
-
a #GNode
@@ -16412,7 +15598,6 @@ current thread leads to undefined behaviour.
declared so the compiler knows its size at compile-time; this
macro will not work on an array allocated on the heap, only static
arrays or arrays on the stack.
-
the array
@@ -16421,7 +15606,6 @@ arrays or arrays on the stack.
The #GNode struct represents one node in a [n-ary tree][glib-N-ary-Trees].
-
contains the actual data of the node.
@@ -16449,7 +15633,6 @@ arrays or arrays on the stack.
Gets the position of the first child of a #GNode
which contains the given data.
-
the index of the child of @node which contains
@data, or -1 if the data is not found
@@ -16470,7 +15653,6 @@ which contains the given data.
Gets the position of a #GNode with respect to its siblings.
@child must be a child of @node. The first child is numbered 0,
the second 1, and so on.
-
the position of @child with respect to its siblings
@@ -16490,7 +15672,6 @@ the second 1, and so on.
Calls a function for each of the children of a #GNode. Note that it
doesn't descend beneath the child nodes. @func must not do anything
that would modify the structure of the tree.
-
@@ -16517,7 +15698,6 @@ that would modify the structure of the tree.
Recursively copies a #GNode (but does not deep-copy the data inside the
nodes, see g_node_copy_deep() if you need that).
-
a new #GNode containing the same data pointers
@@ -16531,7 +15711,6 @@ nodes, see g_node_copy_deep() if you need that).
Recursively copies a #GNode and its data.
-
a new #GNode containing copies of the data in @node.
@@ -16557,7 +15736,6 @@ nodes, see g_node_copy_deep() if you need that).
If @node is %NULL the depth is 0. The root node has a depth of 1.
For the children of the root node the depth is 2. And so on.
-
the depth of the #GNode
@@ -16572,7 +15750,6 @@ For the children of the root node the depth is 2. And so on.
Removes @root and its children from the tree, freeing any memory
allocated.
-
@@ -16585,7 +15762,6 @@ allocated.
Finds a #GNode in a tree.
-
the found #GNode, or %NULL if the data is not found
@@ -16613,7 +15789,6 @@ allocated.
Finds the first child of a #GNode with the given data.
-
the found child #GNode, or %NULL if the data is not found
@@ -16637,7 +15812,6 @@ allocated.
Gets the first sibling of a #GNode.
This could possibly be the node itself.
-
the first sibling of @node
@@ -16651,7 +15825,6 @@ This could possibly be the node itself.
Gets the root of a tree.
-
the root of the tree
@@ -16665,7 +15838,6 @@ This could possibly be the node itself.
Inserts a #GNode beneath the parent at the given position.
-
the inserted #GNode
@@ -16688,7 +15860,6 @@ This could possibly be the node itself.
Inserts a #GNode beneath the parent after the given sibling.
-
the inserted #GNode
@@ -16711,7 +15882,6 @@ This could possibly be the node itself.
Inserts a #GNode beneath the parent before the given sibling.
-
the inserted #GNode
@@ -16736,7 +15906,6 @@ This could possibly be the node itself.
Returns %TRUE if @node is an ancestor of @descendant.
This is true if node is the parent of @descendant,
or if node is the grandparent of @descendant etc.
-
%TRUE if @node is an ancestor of @descendant
@@ -16754,7 +15923,6 @@ or if node is the grandparent of @descendant etc.
Gets the last child of a #GNode.
-
the last child of @node, or %NULL if @node has no children
@@ -16769,7 +15937,6 @@ or if node is the grandparent of @descendant etc.
Gets the last sibling of a #GNode.
This could possibly be the node itself.
-
the last sibling of @node
@@ -16787,7 +15954,6 @@ This is the maximum distance from the #GNode to all leaf nodes.
If @root is %NULL, 0 is returned. If @root has no children,
1 is returned. If @root has children, 2 is returned. And so on.
-
the maximum height of the tree beneath @root
@@ -16801,7 +15967,6 @@ If @root is %NULL, 0 is returned. If @root has no children,
Gets the number of children of a #GNode.
-
the number of children of @node
@@ -16815,7 +15980,6 @@ If @root is %NULL, 0 is returned. If @root has no children,
Gets the number of nodes in a tree.
-
the number of nodes in the tree
@@ -16836,7 +16000,6 @@ If @root is %NULL, 0 is returned. If @root has no children,
Gets a child of a #GNode, using the given index.
The first child is at index 0. If the index is
too big, %NULL is returned.
-
the child of @node at index @n
@@ -16854,7 +16017,6 @@ too big, %NULL is returned.
Inserts a #GNode as the first child of the given parent.
-
the inserted #GNode
@@ -16873,7 +16035,6 @@ too big, %NULL is returned.
Reverses the order of the children of a #GNode.
(It doesn't change the order of the grandchildren.)
-
@@ -16889,7 +16050,6 @@ too big, %NULL is returned.
It calls the given function for each node visited.
The traversal can be halted at any point by returning %TRUE from @func.
@func must not do anything that would modify the structure of the tree.
-
@@ -16927,7 +16087,6 @@ The traversal can be halted at any point by returning %TRUE from @func.
Unlinks a #GNode from a tree, resulting in two separate trees.
-
@@ -16941,7 +16100,6 @@ The traversal can be halted at any point by returning %TRUE from @func.
Creates a new #GNode containing the given data.
Used to create the first node in a tree.
-
a new #GNode
@@ -16958,7 +16116,6 @@ Used to create the first node in a tree.
Specifies the type of function passed to g_node_children_foreach().
The function is called with each child node, together with the user
data passed to g_node_children_foreach().
-
@@ -16978,7 +16135,6 @@ data passed to g_node_children_foreach().
function is called with each of the nodes visited, together with the
user data passed to g_node_traverse(). If the function returns
%TRUE, then the traversal is stopped.
-
%TRUE to stop the traversal.
@@ -17000,7 +16156,6 @@ form, standardizing such issues as whether a character with
an accent is represented as a base character and combining
accent or as a single precomposed character. Unicode strings
should generally be normalized before comparing them.
-
standardize differences that do not affect the
text content, such as the above-mentioned accent representation
@@ -17035,7 +16190,6 @@ should generally be normalized before comparing them.
Error codes returned by functions converting a string to a number.
-
String was not a valid number.
@@ -17054,14 +16208,12 @@ or %G_OPTION_ARG_FILENAME_ARRAY.
Using #G_OPTION_REMAINING instead of simply scanning `argv`
for leftover arguments has the advantage that GOption takes care of
necessary encoding conversions for strings or filenames.
-
A #GOnce struct controls a one-time initialization function. Any
one-time initialization function must have its own unique #GOnce
struct.
-
the status of the #GOnce
@@ -17072,7 +16224,6 @@ struct.
-
@@ -17110,8 +16261,10 @@ like this:
}
// use initialization_value here
-]|
-
+]|
+
+While @location has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
%TRUE if the initialization section should be entered,
%FALSE and blocks otherwise
@@ -17130,8 +16283,10 @@ like this:
0-initialized initialization variable, and an initialization value
other than 0. Sets the variable to the initialization value, and
releases concurrent threads blocking in g_once_init_enter() on this
-initialization variable.
-
+initialization variable.
+
+While @location has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
@@ -17151,7 +16306,6 @@ initialization variable.
The possible statuses of a one-time initialization function
controlled by a #GOnce struct.
-
the function has not been called yet.
@@ -17167,7 +16321,6 @@ controlled by a #GOnce struct.
options expect to find. If an option expects an extra argument, it can
be specified in several ways; with a short option: `-x arg`, with a long
option: `--name arg` or combined in a single argument: `--name=arg`.
-
No extra argument. This is useful for simple flags.
@@ -17208,7 +16361,6 @@ option: `--name arg` or combined in a single argument: `--name=arg`.
The type of function to be passed as callback for %G_OPTION_ARG_CALLBACK
options.
-
%TRUE if the option was successfully parsed, %FALSE if an error
occurred, in which case @error should be set with g_set_error()
@@ -17236,12 +16388,10 @@ options.
A `GOptionContext` struct defines which options
are accepted by the commandline option parser. The struct has only private
fields and should not be directly accessed.
-
Adds a #GOptionGroup to the @context, so that parsing with @context
will recognize the options in the group. Note that this will take
ownership of the @group and thus the @group should not be freed.
-
@@ -17259,7 +16409,6 @@ ownership of the @group and thus the @group should not be freed.
A convenience function which creates a main group if it doesn't
exist, adds the @entries to it and sets the translation domain.
-
@@ -17288,7 +16437,6 @@ added to it.
Please note that parsed arguments need to be freed separately (see
#GOptionEntry).
-
@@ -17301,7 +16449,6 @@ Please note that parsed arguments need to be freed separately (see
Returns the description. See g_option_context_set_description().
-
the description
@@ -17321,7 +16468,6 @@ To obtain the text produced by `--help-all`, call
`g_option_context_get_help (context, FALSE, NULL)`.
To obtain the help text for an option group, call
`g_option_context_get_help (context, FALSE, group)`.
-
A newly allocated string containing the help text
@@ -17344,7 +16490,6 @@ To obtain the help text for an option group, call
Returns whether automatic `--help` generation
is turned on for @context. See g_option_context_set_help_enabled().
-
%TRUE if automatic help generation is turned on.
@@ -17359,7 +16504,6 @@ is turned on for @context. See g_option_context_set_help_enabled().
Returns whether unknown options are ignored or not. See
g_option_context_set_ignore_unknown_options().
-
%TRUE if unknown options are ignored.
@@ -17373,7 +16517,6 @@ g_option_context_set_ignore_unknown_options().
Returns a pointer to the main group of @context.
-
the main group of @context, or %NULL if
@context doesn't have a main group. Note that group belongs to
@@ -17391,7 +16534,6 @@ g_option_context_set_ignore_unknown_options().
Returns whether strict POSIX code is enabled.
See g_option_context_set_strict_posix() for more information.
-
%TRUE if strict POSIX is enabled, %FALSE otherwise.
@@ -17405,7 +16547,6 @@ See g_option_context_set_strict_posix() for more information.
Returns the summary. See g_option_context_set_summary().
-
the summary
@@ -17439,7 +16580,6 @@ call `exit (0)`.
Note that function depends on the [current locale][setlocale] for
automatic character set conversion of string and filename
arguments.
-
%TRUE if the parsing was successful,
%FALSE if an error occurred
@@ -17479,7 +16619,6 @@ See g_win32_get_command_line() for a solution.
This function is useful if you are trying to use #GOptionContext with
#GApplication.
-
%TRUE if the parsing was successful,
%FALSE if an error occurred
@@ -17507,7 +16646,6 @@ of options. This text often includes a bug reporting address.
Note that the summary is translated (see
g_option_context_set_translate_func()).
-
@@ -17528,7 +16666,6 @@ g_option_context_set_translate_func()).
By default, g_option_context_parse() recognizes `--help`, `-h`,
`-?`, `--help-all` and `--help-groupname` and creates suitable
output to stdout.
-
@@ -17551,7 +16688,6 @@ g_option_context_parse() treats unknown options as error.
This setting does not affect non-option arguments (i.e. arguments
which don't start with a dash). But note that GOption cannot reliably
determine whether a non-option belongs to a preceding unknown option.
-
@@ -17572,7 +16708,6 @@ determine whether a non-option belongs to a preceding unknown option.
This has the same effect as calling g_option_context_add_group(),
the only difference is that the options in the main group are
treated differently when generating `--help` output.
-
@@ -17612,7 +16747,6 @@ options up to the verb name while leaving the remaining options to be
parsed by the relevant subcommand (which can be determined by
examining the verb name, which should be present in argv[1] after
parsing).
-
@@ -17634,7 +16768,6 @@ of options. This is typically a summary of the program functionality.
Note that the summary is translated (see
g_option_context_set_translate_func() and
g_option_context_set_translation_domain()).
-
@@ -17662,7 +16795,6 @@ the summary (see g_option_context_set_summary()) and the description
If you are using gettext(), you only need to set the translation
domain, see g_option_context_set_translation_domain().
-
@@ -17688,7 +16820,6 @@ domain, see g_option_context_set_translation_domain().
A convenience function to use gettext() for translating
user-visible strings.
-
@@ -17723,7 +16854,6 @@ below the usage line, use g_option_context_set_summary().
Note that the @parameter_string is translated using the
function set with g_option_context_set_translate_func(), so
it should normally be passed untranslated.
-
a newly created #GOptionContext, which must be
freed with g_option_context_free() after use.
@@ -17743,7 +16873,6 @@ it should normally be passed untranslated.
A GOptionEntry struct defines a single option. To have an effect, they
must be added to a #GOptionGroup with g_option_context_add_main_entries()
or g_option_group_add_entries().
-
The long name of an option can be used to specify it
in a commandline as `--long_name`. Every option must have a
@@ -17803,7 +16932,6 @@ or g_option_group_add_entries().
Error codes returned by option parsing.
-
An option was not known to the parser.
This error will only be reported, if the parser hasn't been instructed
@@ -17818,7 +16946,6 @@ or g_option_group_add_entries().
The type of function to be used as callback when a parse error occurs.
-
@@ -17840,7 +16967,6 @@ or g_option_group_add_entries().
Flags which modify individual options.
-
No flags. Since: 2.42.
@@ -17888,10 +17014,8 @@ All options in a group share the same translation function. Libraries which
need to parse commandline options are expected to provide a function for
getting a `GOptionGroup` holding their options, which
the application can then add to its #GOptionContext.
-
Creates a new #GOptionGroup.
-
a newly created option group. It should be added
to a #GOptionContext or freed with g_option_group_unref().
@@ -17928,7 +17052,6 @@ the application can then add to its #GOptionContext.
Adds the options specified in @entries to @group.
-
@@ -17949,7 +17072,6 @@ the application can then add to its #GOptionContext.
Frees a #GOptionGroup. Note that you must not free groups
which have been added to a #GOptionContext.
Use g_option_group_unref() instead.
-
@@ -17962,7 +17084,6 @@ which have been added to a #GOptionContext.
Increments the reference count of @group by one.
-
a #GOptionGroup
@@ -17980,7 +17101,6 @@ from g_option_context_parse() when an error occurs.
Note that the user data to be passed to @error_func can be
specified when constructing the group with g_option_group_new().
-
@@ -18003,7 +17123,6 @@ and after the last option has been parsed, respectively.
Note that the user data to be passed to @pre_parse_func and
@post_parse_func can be specified when constructing the group
with g_option_group_new().
-
@@ -18029,7 +17148,6 @@ for `--help` output. Different groups can use different
If you are using gettext(), you only need to set the translation
domain, see g_option_group_set_translation_domain().
-
@@ -18055,7 +17173,6 @@ domain, see g_option_group_set_translation_domain().
A convenience function to use gettext() for translating
user-visible strings.
-
@@ -18074,7 +17191,6 @@ user-visible strings.
Decrements the reference count of @group by one.
If the reference count drops to 0, the @group will be freed.
and all memory allocated by the @group is released.
-
@@ -18088,7 +17204,6 @@ and all memory allocated by the @group is released.
The type of function that can be called before and after parsing.
-
%TRUE if the function completed successfully, %FALSE if an error
occurred, in which case @error should be set with g_set_error()
@@ -18113,34 +17228,28 @@ and all memory allocated by the @group is released.
Specifies one of the possible types of byte order
(currently unused). See #G_BYTE_ORDER.
-
The value of pi (ratio of circle's circumference to its diameter).
-
A format specifier that can be used in printf()-style format strings
when printing a #GPid.
-
Pi divided by 2.
-
Pi divided by 4.
-
A format specifier that can be used in printf()-style format strings
when printing the @fd member of a #GPollFD.
-
@@ -18149,7 +17258,6 @@ when printing the @fd member of a #GPollFD.
In GLib this priority is used when adding timeout functions
with g_timeout_add(). In GDK this priority is used for events
from the X server.
-
@@ -18157,14 +17265,12 @@ from the X server.
In GLib this priority is used when adding idle functions with
g_idle_add().
-
Use this for high priority event sources.
It is not used within GLib or GTK+.
-
@@ -18174,14 +17280,12 @@ GTK+ uses #G_PRIORITY_HIGH_IDLE + 10 for resizing operations,
and #G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is
done to ensure that any pending resizes are processed before any
pending redraws, so that widgets are not redrawn twice unnecessarily.)
-
Use this for very low priority background tasks.
It is not used within GLib or GTK+.
-
@@ -18231,7 +17335,6 @@ set_local_count (gint count)
g_private_set (&count_key, GINT_TO_POINTER (count));
}
]|
-
a #GDestroyNotify
@@ -18241,11 +17344,9 @@ set_local_count (gint count)
A GPatternSpec struct is the 'compiled' form of a pattern. This
structure is opaque and its fields cannot be accessed directly.
-
Compares two compiled pattern specs and returns whether they will
match the same set of strings.
-
Whether the compiled patterns are equal
@@ -18263,7 +17364,6 @@ match the same set of strings.
Frees the memory allocated for the #GPatternSpec.
-
@@ -18276,7 +17376,6 @@ match the same set of strings.
Compiles a pattern to a #GPatternSpec.
-
a newly-allocated #GPatternSpec
@@ -18292,7 +17391,6 @@ match the same set of strings.
Represents a file descriptor, which events to poll for, and which events
occurred.
-
the file descriptor to poll (or a HANDLE on Win32)
@@ -18313,7 +17411,6 @@ occurred.
Specifies the type of function passed to g_main_context_set_poll_func().
The semantics of the function should match those of the poll() system call.
-
the number of #GPollFD elements which have events or errors
reported, or -1 if an error occurred.
@@ -18338,7 +17435,6 @@ The semantics of the function should match those of the poll() system call.
Specifies the type of the print handler functions.
These are called with the complete formatted string to output.
-
@@ -18367,7 +17463,6 @@ See G_PRIVATE_INIT() for a couple of examples.
The #GPrivate structure should be considered opaque. It should only
be accessed via the g_private_ functions.
-
@@ -18385,7 +17480,6 @@ be accessed via the g_private_ functions.
If the value has not yet been set in this thread, %NULL is returned.
Values are never copied between threads (when a new thread is
created, for example).
-
the thread-local value
@@ -18404,7 +17498,6 @@ current thread.
This function differs from g_private_set() in the following way: if
the previous value was non-%NULL then the #GDestroyNotify handler for
@key is run on it.
-
@@ -18425,7 +17518,6 @@ current thread.
This function differs from g_private_replace() in the following way:
the #GDestroyNotify for @key is not called on the old value.
-
@@ -18443,7 +17535,6 @@ the #GDestroyNotify for @key is not called on the old value.
Contains the public fields of a pointer array.
-
points to the array of pointers, which may be moved when the
array grows
@@ -18456,7 +17547,6 @@ the #GDestroyNotify for @key is not called on the old value.
Adds a pointer to the end of the pointer array. The array will grow
in size automatically if necessary.
-
@@ -18487,7 +17577,6 @@ pointing to) are copied to the new #GPtrArray.
The copy of @array will have the same #GDestroyNotify for its elements as
@array.
-
a deep copy of the initial #GPtrArray.
@@ -18524,7 +17613,6 @@ 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.
-
@@ -18559,7 +17647,6 @@ ownership of each element from @array to @array_to_extend and modifying
As with g_ptr_array_free(), @array will be destroyed if its reference count
is 1. If its reference count is higher, it will be decremented and the
length of @array set to zero.
-
@@ -18587,7 +17674,6 @@ multiple times in @haystack, the index of the first instance is returned.
This does pointer comparisons only. If you want to use more complex equality
checks, such as string comparisons, use g_ptr_array_find_with_equal_func().
-
%TRUE if @needle is one of the elements of @haystack
@@ -18620,7 +17706,6 @@ the first instance is returned.
@equal_func is called with the element from the array as its first parameter,
and @needle as its second parameter. If @equal_func is %NULL, pointer
equality is used.
-
%TRUE if @needle is one of the elements of @haystack
@@ -18652,7 +17737,6 @@ equality is used.
Calls a function for each element of a #GPtrArray. @func must not
add elements to or remove elements from the array.
-
@@ -18688,10 +17772,9 @@ function has been set for @array.
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.
-
-
- the pointer array if @free_seg is %FALSE, otherwise %NULL.
- The pointer array should be freed using g_free().
+
+ the pointer array if @free_seg is
+ %FALSE, otherwise %NULL. The pointer array should be freed using g_free().
@@ -18710,7 +17793,6 @@ functions.
Inserts an element into the pointer array at the given index. The
array will grow in size automatically if necessary.
-
@@ -18733,7 +17815,6 @@ array will grow in size automatically if necessary.
Creates a new #GPtrArray with a reference count of 1.
-
the new #GPtrArray
@@ -18749,7 +17830,6 @@ the size of the array is still 0. It also set @element_free_func
for freeing each element when the array is destroyed either via
g_ptr_array_unref(), when g_ptr_array_free() is called with
@free_segment set to %TRUE or when removing elements.
-
A new #GPtrArray
@@ -18773,7 +17853,6 @@ g_ptr_array_unref(), when g_ptr_array_free() is called with
@element_free_func for freeing each element when the array is destroyed
either via g_ptr_array_unref(), when g_ptr_array_free() is called with
@free_segment set to %TRUE or when removing elements.
-
A new #GPtrArray
@@ -18791,7 +17870,6 @@ either via g_ptr_array_unref(), when g_ptr_array_free() is called with
Atomically increments the reference count of @array by one.
This function is thread-safe and may be called from any thread.
-
The passed in #GPtrArray
@@ -18815,7 +17893,6 @@ removed element.
It returns %TRUE if the pointer was removed, or %FALSE if the
pointer was not found.
-
%TRUE if the pointer is removed, %FALSE if the pointer
is not found in the array
@@ -18843,7 +17920,6 @@ is faster than g_ptr_array_remove(). If @array has a non-%NULL
It returns %TRUE if the pointer was removed, or %FALSE if the
pointer was not found.
-
%TRUE if the pointer was found in the array
@@ -18867,7 +17943,6 @@ The following elements are moved down one place. If @array has
a non-%NULL #GDestroyNotify function it is called for the removed
element. If so, the return value from this function will potentially point
to freed memory (depending on the #GDestroyNotify implementation).
-
the pointer which was removed
@@ -18893,7 +17968,6 @@ is faster than g_ptr_array_remove_index(). If @array has a non-%NULL
#GDestroyNotify function it is called for the removed element. If so, the
return value from this function will potentially point to freed memory
(depending on the #GDestroyNotify implementation).
-
the pointer which was removed
@@ -18916,7 +17990,6 @@ return value from this function will potentially point to freed memory
from a #GPtrArray. The following elements are moved to close the
gap. If @array has a non-%NULL #GDestroyNotify function it is
called for the removed elements.
-
the @array
@@ -18944,7 +18017,6 @@ called for the removed elements.
Sets a function for freeing each element when @array is destroyed
either via g_ptr_array_unref(), when g_ptr_array_free() is called
with @free_segment set to %TRUE or when removing elements.
-
@@ -18967,7 +18039,6 @@ with @free_segment set to %TRUE or when removing elements.
newly-added elements will be set to %NULL. When making it smaller,
if @array has a non-%NULL #GDestroyNotify function then it will be
called for the removed elements.
-
@@ -18989,7 +18060,6 @@ called for the removed elements.
and a reference count of 1. This avoids frequent reallocation, if
you are going to add many pointers to the array. Note however that
the size of the array is still 0.
-
the new #GPtrArray
@@ -19039,7 +18109,6 @@ g_ptr_array_sort (file_list, sort_filelist);
]|
This is guaranteed to be a stable sort since version 2.32.
-
@@ -19110,7 +18179,6 @@ g_ptr_array_sort_with_data (file_list,
]|
This is guaranteed to be a stable sort since version 2.32.
-
@@ -19172,7 +18240,6 @@ g_free (chunks);
// next set of chunks.
g_assert (chunk_buffer->len == 0);
]|
-
the element data, which should be
freed using g_free().
@@ -19197,7 +18264,6 @@ g_assert (chunk_buffer->len == 0);
The following elements are moved down one place. The #GDestroyNotify for
@array is *not* called on the removed element; ownership is transferred to
the caller of this function.
-
the pointer which was removed
@@ -19222,7 +18288,6 @@ this function does not preserve the order of the array. But it
is faster than g_ptr_array_steal_index(). The #GDestroyNotify for @array is
*not* called on the removed element; ownership is transferred to the caller
of this function.
-
the pointer which was removed
@@ -19245,7 +18310,6 @@ of this function.
reference count drops to 0, the effect is the same as calling
g_ptr_array_free() with @free_segment set to %TRUE. This function
is thread-safe and may be called from any thread.
-
@@ -19262,7 +18326,6 @@ is thread-safe and may be called from any thread.
Contains the public fields of a
[Queue][glib-Double-ended-Queues].
-
a pointer to the first element of the queue
@@ -19282,7 +18345,6 @@ is thread-safe and may be called from any thread.
Removes all the elements in @queue. If queue elements contain
dynamically-allocated memory, they should be freed first.
-
@@ -19296,7 +18358,6 @@ dynamically-allocated memory, they should be freed first.
Convenience method, which frees all the memory used by a #GQueue,
and calls the provided @free_func on each item in the #GQueue.
-
@@ -19315,7 +18376,6 @@ and calls the provided @free_func on each item in the #GQueue.
Copies a @queue. Note that is a shallow copy. If the elements in the
queue consist of pointers to data, the pointers are copied, but the
actual data is not.
-
a copy of @queue
@@ -19331,7 +18391,6 @@ actual data is not.
Removes @link_ from @queue and frees it.
@link_ must be part of @queue.
-
@@ -19350,7 +18409,6 @@ actual data is not.
Finds the first link in @queue which contains @data.
-
the first link in @queue which contains @data
@@ -19374,7 +18432,6 @@ desired element. It iterates over the queue, calling the given function
which should return 0 when the desired element is found. The function
takes two gconstpointer arguments, the #GQueue element's data as the
first argument and the given user data as the second argument.
-
the found link, or %NULL if it wasn't found
@@ -19403,7 +18460,6 @@ function.
It is safe for @func to remove the element from @queue, but it must
not modify any part of the queue after that element.
-
@@ -19429,7 +18485,6 @@ dynamically-allocated memory, they should be freed first.
If queue elements contain dynamically-allocated memory, you should
either use g_queue_free_full() or free them manually first.
-
@@ -19446,7 +18501,6 @@ and calls the specified destroy function on every element's data.
@free_func should not modify the queue (eg, by removing the freed
element from it).
-
@@ -19463,7 +18517,6 @@ element from it).
Returns the number of items in @queue.
-
the number of items in @queue
@@ -19477,7 +18530,6 @@ element from it).
Returns the position of the first element in @queue which contains @data.
-
the position of the first element in @queue which
contains @data, or -1 if no element in @queue contains @data
@@ -19499,7 +18551,6 @@ element from it).
before it can be used. Alternatively you can initialize it with
#G_QUEUE_INIT. It is not necessary to initialize queues created with
g_queue_new().
-
@@ -19515,7 +18566,6 @@ g_queue_new().
@sibling must be part of @queue. Since GLib 2.44 a %NULL sibling pushes the
data at the head of the queue.
-
@@ -19541,7 +18591,6 @@ data at the head of the queue.
Inserts @link_ into @queue after @sibling.
@sibling must be part of @queue.
-
@@ -19570,7 +18619,6 @@ data at the head of the queue.
@sibling must be part of @queue. Since GLib 2.44 a %NULL sibling pushes the
data at the tail of the queue.
-
@@ -19596,7 +18644,6 @@ data at the tail of the queue.
Inserts @link_ into @queue before @sibling.
@sibling must be part of @queue.
-
@@ -19622,7 +18669,6 @@ data at the tail of the queue.
Inserts @data into @queue using @func to determine the new position.
-
@@ -19651,7 +18697,6 @@ data at the tail of the queue.
Returns %TRUE if the queue is empty.
-
%TRUE if the queue is empty
@@ -19665,7 +18710,6 @@ data at the tail of the queue.
Returns the position of @link_ in @queue.
-
the position of @link_, or -1 if the link is
not part of @queue
@@ -19686,7 +18730,6 @@ data at the tail of the queue.
Returns the first element of the queue.
-
the data of the first element in the queue, or %NULL
if the queue is empty
@@ -19701,7 +18744,6 @@ data at the tail of the queue.
Returns the first link in @queue.
-
the first link in @queue, or %NULL if @queue is empty
@@ -19717,7 +18759,6 @@ data at the tail of the queue.
Returns the @n'th element of @queue.
-
the data for the @n'th element of @queue,
or %NULL if @n is off the end of @queue
@@ -19736,7 +18777,6 @@ data at the tail of the queue.
Returns the link at the given position
-
the link at the @n'th position, or %NULL
if @n is off the end of the list
@@ -19757,7 +18797,6 @@ data at the tail of the queue.
Returns the last element of the queue.
-
the data of the last element in the queue, or %NULL
if the queue is empty
@@ -19772,7 +18811,6 @@ data at the tail of the queue.
Returns the last link in @queue.
-
the last link in @queue, or %NULL if @queue is empty
@@ -19788,7 +18826,6 @@ data at the tail of the queue.
Removes the first element of the queue and returns its data.
-
the data of the first element in the queue, or %NULL
if the queue is empty
@@ -19803,7 +18840,6 @@ data at the tail of the queue.
Removes and returns the first element of the queue.
-
the #GList element at the head of the queue, or %NULL
if the queue is empty
@@ -19820,7 +18856,6 @@ data at the tail of the queue.
Removes the @n'th element of @queue and returns its data.
-
the element's data, or %NULL if @n is off the end of @queue
@@ -19838,7 +18873,6 @@ data at the tail of the queue.
Removes and returns the link at the given position.
-
the @n'th link, or %NULL if @n is off the end of @queue
@@ -19858,7 +18892,6 @@ data at the tail of the queue.
Removes the last element of the queue and returns its data.
-
the data of the last element in the queue, or %NULL
if the queue is empty
@@ -19873,7 +18906,6 @@ data at the tail of the queue.
Removes and returns the last element of the queue.
-
the #GList element at the tail of the queue, or %NULL
if the queue is empty
@@ -19890,7 +18922,6 @@ data at the tail of the queue.
Adds a new element at the head of the queue.
-
@@ -19907,7 +18938,6 @@ data at the tail of the queue.
Adds a new element at the head of the queue.
-
@@ -19926,7 +18956,6 @@ data at the tail of the queue.
Inserts a new element into @queue at the given position.
-
@@ -19949,7 +18978,6 @@ data at the tail of the queue.
Inserts @link into @queue at the given position.
-
@@ -19974,7 +19002,6 @@ data at the tail of the queue.
Adds a new element at the tail of the queue.
-
@@ -19991,7 +19018,6 @@ data at the tail of the queue.
Adds a new element at the tail of the queue.
-
@@ -20010,7 +19036,6 @@ data at the tail of the queue.
Removes the first element in @queue that contains @data.
-
%TRUE if @data was found and removed from @queue
@@ -20028,7 +19053,6 @@ data at the tail of the queue.
Remove all elements whose data equals @data from @queue.
-
the number of elements removed from @queue
@@ -20046,7 +19070,6 @@ data at the tail of the queue.
Reverses the order of the items in @queue.
-
@@ -20059,7 +19082,6 @@ data at the tail of the queue.
Sorts @queue using @compare_func.
-
@@ -20086,7 +19108,6 @@ data at the tail of the queue.
The link is not freed.
@link_ must be part of @queue.
-
@@ -20105,7 +19126,6 @@ The link is not freed.
Creates a new #GQueue.
-
a newly allocated #GQueue
@@ -20176,7 +19196,6 @@ without initialisation. Otherwise, you should call
g_rw_lock_init() on it and g_rw_lock_clear() when done.
A GRWLock should only be accessed with the g_rw_lock_ functions.
-
@@ -20195,7 +19214,6 @@ Calling g_rw_lock_clear() when any thread holds the lock
leads to undefined behaviour.
Sine: 2.32
-
@@ -20231,7 +19249,6 @@ needed, use g_rw_lock_clear().
Calling g_rw_lock_init() on an already initialized #GRWLock leads
to undefined behaviour.
-
@@ -20244,15 +19261,20 @@ to undefined behaviour.
Obtain a read lock on @rw_lock. If another thread currently holds
-the write lock on @rw_lock, the current thread will block. If another thread
-does not hold the write lock, but is waiting for it, it is implementation
-defined whether the reader or writer will block. Read locks can be taken
+the write lock on @rw_lock, the current thread will block until the
+write lock was (held and) released. If another thread does not hold
+the write lock, but is waiting for it, it is implementation defined
+whether the reader or writer will block. Read locks can be taken
recursively.
-It is implementation-defined how many threads are allowed to
-hold read locks on the same lock simultaneously. If the limit is hit,
+Calling g_rw_lock_reader_lock() while the current thread already
+owns a write lock leads to undefined behaviour. Read locks however
+can be taken recursively, in which case you need to make sure to
+call g_rw_lock_reader_unlock() the same amount of times.
+
+It is implementation-defined how many read locks are allowed to be
+held on the same lock simultaneously. If the limit is hit,
or if a deadlock is detected, a critical warning will be emitted.
-
@@ -20267,7 +19289,6 @@ or if a deadlock is detected, a critical warning will be emitted.
Tries to obtain a read lock on @rw_lock and returns %TRUE if
the read lock was successfully obtained. Otherwise it
returns %FALSE.
-
%TRUE if @rw_lock could be locked
@@ -20284,7 +19305,6 @@ returns %FALSE.
Calling g_rw_lock_reader_unlock() on a lock that is not held
by the current thread leads to undefined behaviour.
-
@@ -20296,10 +19316,12 @@ by the current thread leads to undefined behaviour.
- Obtain a write lock on @rw_lock. If any thread already holds
+ Obtain a write lock on @rw_lock. If another thread currently holds
a read or write lock on @rw_lock, the current thread will block
-until all other threads have dropped their locks on @rw_lock.
-
+until all other threads have dropped their locks on @rw_lock.
+
+Calling g_rw_lock_writer_lock() while the current thread already
+owns a read or write lock on @rw_lock leads to undefined behaviour.
@@ -20311,10 +19333,10 @@ until all other threads have dropped their locks on @rw_lock.
- Tries to obtain a write lock on @rw_lock. If any other thread holds
-a read or write lock on @rw_lock, it immediately returns %FALSE.
+ Tries to obtain a write lock on @rw_lock. If another thread
+currently holds a read or write lock on @rw_lock, it immediately
+returns %FALSE.
Otherwise it locks @rw_lock and returns %TRUE.
-
%TRUE if @rw_lock could be locked
@@ -20331,7 +19353,6 @@ Otherwise it locks @rw_lock and returns %TRUE.
Calling g_rw_lock_writer_unlock() on a lock that is not held
by the current thread leads to undefined behaviour.
-
@@ -20346,12 +19367,10 @@ by the current thread leads to undefined behaviour.
The GRand struct is an opaque data structure. It should only be
accessed through the g_rand_* functions.
-
Copies a #GRand into a new one with the same exact state as before.
This way you can take a snapshot of the random number generator for
replaying later.
-
the new #GRand
@@ -20366,7 +19385,6 @@ replaying later.
Returns the next random #gdouble from @rand_ equally distributed over
the range [0..1).
-
a random number
@@ -20381,7 +19399,6 @@ the range [0..1).
Returns the next random #gdouble from @rand_ equally distributed over
the range [@begin..@end).
-
a random number
@@ -20403,7 +19420,6 @@ the range [@begin..@end).
Frees the memory allocated for the #GRand.
-
@@ -20417,7 +19433,6 @@ the range [@begin..@end).
Returns the next random #guint32 from @rand_ equally distributed over
the range [0..2^32-1].
-
a random number
@@ -20432,7 +19447,6 @@ the range [0..2^32-1].
Returns the next random #gint32 from @rand_ equally distributed over
the range [@begin..@end-1].
-
a random number
@@ -20454,7 +19468,6 @@ the range [@begin..@end-1].
Sets the seed for the random number generator #GRand to @seed.
-
@@ -20475,7 +19488,6 @@ Array can be of arbitrary size, though only the first 624 values
are taken. This function is useful if you have many low entropy
seeds, or if you require more then 32 bits of actual entropy for
your application.
-
@@ -20500,7 +19512,6 @@ either from `/dev/urandom` (if existing) or from the current time
(as a fallback).
On Windows, the seed is taken from rand_s().
-
the new #GRand
@@ -20508,7 +19519,6 @@ On Windows, the seed is taken from rand_s().
Creates a new random number generator initialized with @seed.
-
the new #GRand
@@ -20522,7 +19532,6 @@ On Windows, the seed is taken from rand_s().
Creates a new random number generator initialized with @seed.
-
the new #GRand
@@ -20553,7 +19562,6 @@ g_rec_mutex_init() on it and g_rec_mutex_clear() when done.
A GRecMutex should only be accessed with the
g_rec_mutex_ functions.
-
@@ -20573,7 +19581,6 @@ Calling g_rec_mutex_clear() on a locked recursive mutex leads
to undefined behaviour.
Sine: 2.32
-
@@ -20611,7 +19618,6 @@ leads to undefined behaviour.
To undo the effect of g_rec_mutex_init() when a recursive mutex
is no longer needed, use g_rec_mutex_clear().
-
@@ -20629,7 +19635,6 @@ unlocked by the other thread. If @rec_mutex is already locked
by the current thread, the 'lock count' of @rec_mutex is increased.
The mutex will only become available again when it is unlocked
as many times as it has been locked.
-
@@ -20644,7 +19649,6 @@ as many times as it has been locked.
Tries to lock @rec_mutex. If @rec_mutex is already locked
by another thread, it immediately returns %FALSE. Otherwise
it locks @rec_mutex and returns %TRUE.
-
%TRUE if @rec_mutex could be locked
@@ -20663,7 +19667,6 @@ and can lock @rec_mutex itself.
Calling g_rec_mutex_unlock() on a recursive mutex that is not
locked by the current thread leads to undefined behaviour.
-
@@ -20741,11 +19744,9 @@ The regular expressions low-level functionalities are obtained through
the excellent
[PCRE](http://www.pcre.org/)
library written by Philip Hazel.
-
Compiles the regular expression to an internal form, and does
the initial setup of the #GRegex structure.
-
a #GRegex structure or %NULL if an error occurred. Call
g_regex_unref() when you are done with it
@@ -20768,7 +19769,6 @@ the initial setup of the #GRegex structure.
Returns the number of capturing subpatterns in the pattern.
-
the number of capturing subpatterns
@@ -20786,7 +19786,6 @@ the initial setup of the #GRegex structure.
Depending on the version of PCRE that is used, this may or may not
include flags set by option expressions such as `(?i)` found at the
top-level within the compiled pattern.
-
flags from #GRegexCompileFlags
@@ -20800,7 +19799,6 @@ top-level within the compiled pattern.
Checks whether the pattern contains explicit CR or LF references.
-
%TRUE if the pattern contains explicit CR or LF references
@@ -20814,7 +19812,6 @@ top-level within the compiled pattern.
Returns the match options that @regex was created with.
-
flags from #GRegexMatchFlags
@@ -20830,7 +19827,6 @@ top-level within the compiled pattern.
Returns the number of the highest back reference
in the pattern, or 0 if the pattern does not contain
back references.
-
the number of the highest back reference
@@ -20846,7 +19842,6 @@ back references.
Gets the number of characters in the longest lookbehind assertion in the
pattern. This information is useful when doing multi-segment matching using
the partial matching facilities.
-
the number of characters in the longest lookbehind assertion.
@@ -20861,7 +19856,6 @@ the partial matching facilities.
Gets the pattern string associated with @regex, i.e. a copy of
the string passed to g_regex_new().
-
the pattern of @regex
@@ -20875,7 +19869,6 @@ the string passed to g_regex_new().
Retrieves the number of the subexpression named @name.
-
The number of the subexpression or -1 if @name
does not exists
@@ -20933,7 +19926,6 @@ print_uppercase_words (const gchar *string)
@string is not copied and is used in #GMatchInfo internally. If
you use any #GMatchInfo method (except g_match_info_free()) after
freeing or modifying @string then the behaviour is undefined.
-
%TRUE is the string matched, %FALSE otherwise
@@ -20973,7 +19965,6 @@ matched.
@string is not copied and is used in #GMatchInfo internally. If
you use any #GMatchInfo method (except g_match_info_free()) after
freeing or modifying @string then the behaviour is undefined.
-
%TRUE is the string matched, %FALSE otherwise
@@ -21037,7 +20028,6 @@ matched.
@string is not copied and is used in #GMatchInfo internally. If
you use any #GMatchInfo method (except g_match_info_free()) after
freeing or modifying @string then the behaviour is undefined.
-
%TRUE is the string matched, %FALSE otherwise
@@ -21124,7 +20114,6 @@ print_uppercase_words (const gchar *string)
}
}
]|
-
%TRUE is the string matched, %FALSE otherwise
@@ -21161,7 +20150,6 @@ print_uppercase_words (const gchar *string)
Increases reference count of @regex by 1.
-
@regex
@@ -21200,7 +20188,6 @@ you can use g_regex_replace_literal().
Setting @start_position differs from just passing over a shortened
string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that
begins with any kind of lookbehind assertion, such as "\b".
-
a newly allocated string containing the replacements
@@ -21280,7 +20267,6 @@ g_hash_table_destroy (h);
...
]|
-
a newly allocated string containing the replacements
@@ -21327,7 +20313,6 @@ Setting @start_position differs from just passing over a
shortened string and setting #G_REGEX_MATCH_NOTBOL in the
case of a pattern that begins with any kind of lookbehind
assertion, such as "\b".
-
a newly allocated string containing the replacements
@@ -21379,7 +20364,6 @@ A pattern that can match empty strings splits @string into separate
characters wherever it matches the empty string between characters.
For example splitting "ab c" using as a separator "\s*", you will get
"a", "b" and "c".
-
a %NULL-terminated gchar ** array. Free
it using g_strfreev()
@@ -21424,7 +20408,6 @@ For example splitting "ab c" using as a separator "\s*", you will get
Setting @start_position differs from just passing over a shortened
string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern
that begins with any kind of lookbehind assertion, such as "\b".
-
a %NULL-terminated gchar ** array. Free
it using g_strfreev()
@@ -21465,7 +20448,6 @@ it using g_strfreev()
Decreases reference count of @regex by 1. When reference count drops
to zero, it frees all the memory associated with the regex structure.
-
@@ -21486,7 +20468,6 @@ for pattern references. For instance, replacement text 'foo\n'
does not contain references and may be evaluated without information
about actual match, but '\0\1' (whole match followed by first
subpattern) requires valid #GMatchInfo object.
-
whether @replacement is a valid replacement string
@@ -21514,7 +20495,6 @@ to compile a regex with embedded nul characters.
For completeness, @length can be -1 for a nul-terminated string.
In this case the output string will be of course equal to @string.
-
a newly-allocated escaped string
@@ -21538,7 +20518,6 @@ function is useful to dynamically generate regular expressions.
@string can contain nul characters that are replaced with "\0",
in this case remember to specify the correct length of @string
in @length.
-
a newly-allocated escaped string
@@ -21567,7 +20546,6 @@ substrings, capture counts, and so on.
If this function is to be called on the same @pattern more than
once, it's more efficient to compile the pattern once with
g_regex_new() and then use g_regex_match().
-
%TRUE if the string matched, %FALSE otherwise
@@ -21619,7 +20597,6 @@ A pattern that can match empty strings splits @string into
separate characters wherever it matches the empty string between
characters. For example splitting "ab c" using as a separator
"\s*", you will get "a", "b" and "c".
-
a %NULL-terminated array of strings. Free
it using g_strfreev()
@@ -21649,7 +20626,6 @@ it using g_strfreev()
Flags specifying compile-time options.
-
Letters in the pattern match both upper- and
lowercase letters. This option can be changed within a pattern
@@ -21758,7 +20734,6 @@ it using g_strfreev()
Error codes returned by regular expressions functions.
-
Compilation of the regular expression failed.
@@ -21979,7 +20954,6 @@ it using g_strfreev()
It is called for each occurrence of the pattern in the string passed
to g_regex_replace_eval(), and it should append the replacement to
@result.
-
%FALSE to continue the replacement process, %TRUE to stop it
@@ -22003,7 +20977,6 @@ to g_regex_replace_eval(), and it should append the replacement to
Flags specifying match-time options.
-
The pattern is forced to be "anchored", that is,
it is constrained to match only at the first matching point in the
@@ -22097,23 +21070,19 @@ to g_regex_replace_eval(), and it should append the replacement to
The search path separator character.
This is ':' on UNIX machines and ';' under Windows.
-
The search path separator as a string.
This is ":" on UNIX machines and ";" under Windows.
-
-
Returns the size of @member in the struct definition without having a
declared instance of @struct_type.
-
a structure type, e.g. #GOutputVector
@@ -22124,21 +21093,17 @@ declared instance of @struct_type.
-
-
-
The #GSList struct is used for each element in the singly-linked
list.
-
holds the element's data, which can be a pointer to any kind
of data, or any integer value using the
@@ -22155,7 +21120,6 @@ list.
Allocates space for one #GSList element. It is called by the
g_slist_append(), g_slist_prepend(), g_slist_insert() and
g_slist_insert_sorted() functions and so is rarely used on its own.
-
a pointer to the newly-allocated #GSList element.
@@ -22186,7 +21150,6 @@ list = g_slist_append (list, "second");
number_list = g_slist_append (number_list, GINT_TO_POINTER (27));
number_list = g_slist_append (number_list, GINT_TO_POINTER (14));
]|
-
the new start of the #GSList
@@ -22210,7 +21173,6 @@ number_list = g_slist_append (number_list, GINT_TO_POINTER (14));
Adds the second #GSList onto the end of the first #GSList.
Note that the elements of the second #GSList are not copied.
They are used directly.
-
the start of the new #GSList
@@ -22239,7 +21201,6 @@ Note that this is a "shallow" copy. If the list elements
consist of pointers to data, the pointers are copied but
the actual data isn't. See g_slist_copy_deep() if you need
to copy the data as well.
-
a copy of @list
@@ -22276,7 +21237,6 @@ And, to entirely free the new list, you could do:
|[<!-- language="C" -->
g_slist_free_full (another_list, g_object_unref);
]|
-
a full copy of @list, use g_slist_free_full() to free it
@@ -22310,7 +21270,6 @@ that is proportional to the length of the list (ie. O(n)). If you
find yourself using g_slist_delete_link() frequently, you should
consider a different data structure, such as the doubly-linked
#GList.
-
the new head of @list
@@ -22335,7 +21294,6 @@ consider a different data structure, such as the doubly-linked
Finds the element in a #GSList which
contains the given data.
-
the found #GSList element,
or %NULL if it is not found
@@ -22363,7 +21321,6 @@ the given function which should return 0 when the desired
element is found. The function takes two #gconstpointer arguments,
the #GSList element's data as the first argument and the
given user data.
-
the found #GSList element, or %NULL if it is not found
@@ -22393,7 +21350,6 @@ given user data.
It is safe for @func to remove the element from @list, but it must
not modify any part of the list after that element.
-
@@ -22428,13 +21384,12 @@ is not left dangling:
GSList *list_of_borrowed_things = …; /<!-- -->* (transfer container) *<!-- -->/
g_slist_free (g_steal_pointer (&list_of_borrowed_things));
]|
-
- a #GSList
+ the first link of a #GSList
@@ -22444,7 +21399,6 @@ g_slist_free (g_steal_pointer (&list_of_borrowed_things));
Frees one #GSList element.
It is usually used after g_slist_remove_link().
-
@@ -22472,13 +21426,12 @@ from @free_func:
GSList *list_of_owned_things = …; /<!-- -->* (transfer full) (element-type GObject) *<!-- -->/
g_slist_free_full (g_steal_pointer (&list_of_owned_things), g_object_unref);
]|
-
- a pointer to a #GSList
+ the first link of a #GSList
@@ -22492,7 +21445,6 @@ g_slist_free_full (g_steal_pointer (&list_of_owned_things), g_object_unref);
Gets the position of the element containing
the given data (starting from 0).
-
the index of the element containing the data,
or -1 if the data is not found
@@ -22513,7 +21465,6 @@ the given data (starting from 0).
Inserts a new element into the list at the given position.
-
the new start of the #GSList
@@ -22542,7 +21493,6 @@ the given data (starting from 0).
Inserts a node before @sibling containing @data.
-
the new head of the list.
@@ -22571,7 +21521,6 @@ the given data (starting from 0).
Inserts a new element into the list, using the given
comparison function to determine its position.
-
the new start of the #GSList
@@ -22600,7 +21549,6 @@ comparison function to determine its position.
Inserts a new element into the list, using the given
comparison function to determine its position.
-
the new start of the #GSList
@@ -22634,7 +21582,6 @@ comparison function to determine its position.
Gets the last element in a #GSList.
This function iterates over the whole list.
-
the last element in the #GSList,
or %NULL if the #GSList has no elements
@@ -22657,7 +21604,6 @@ This function iterates over the whole list.
This function iterates over the whole list to
count its elements. To check whether the list is non-empty, it is faster to
check @list against %NULL.
-
the number of elements in the #GSList
@@ -22673,7 +21619,6 @@ check @list against %NULL.
Gets the element at the given position in a #GSList.
-
the element, or %NULL if the position is off
the end of the #GSList
@@ -22696,7 +21641,6 @@ check @list against %NULL.
Gets the data of the element at the given position.
-
the element's data, or %NULL if the position
is off the end of the #GSList
@@ -22718,7 +21662,6 @@ check @list against %NULL.
Gets the position of the given element
in the #GSList (starting from 0).
-
the position of the element in the #GSList,
or -1 if the element is not found
@@ -22751,7 +21694,6 @@ GSList *list = NULL;
list = g_slist_prepend (list, "last");
list = g_slist_prepend (list, "first");
]|
-
the new start of the #GSList
@@ -22775,7 +21717,6 @@ list = g_slist_prepend (list, "first");
Removes an element from a #GSList.
If two elements contain the same data, only the first is removed.
If none of the elements contain the data, the #GSList is unchanged.
-
the new start of the #GSList
@@ -22800,7 +21741,6 @@ If none of the elements contain the data, the #GSList is unchanged.
Returns the new head of the list. Contrast with
g_slist_remove() which removes only the first node
matching the given data.
-
new head of @list
@@ -22831,7 +21771,6 @@ requires time that is proportional to the length of the list
(ie. O(n)). If you find yourself using g_slist_remove_link()
frequently, you should consider a different data structure,
such as the doubly-linked #GList.
-
the new start of the #GSList, without the element
@@ -22855,7 +21794,6 @@ such as the doubly-linked #GList.
Reverses a #GSList.
-
the start of the reversed #GSList
@@ -22874,7 +21812,6 @@ such as the doubly-linked #GList.
Sorts a #GSList using the given comparison function. The algorithm
used is a stable sort.
-
the start of the sorted #GSList
@@ -22900,7 +21837,6 @@ used is a stable sort.
Like g_slist_sort(), but the sort function accepts a user data argument.
-
new head of the list
@@ -22928,7 +21864,6 @@ used is a stable sort.
Use this macro as the return value of a #GSourceFunc to leave
the #GSource in the main loop.
-
@@ -22941,7 +21876,6 @@ g_child_watch_source_new() is #GChildWatchFunc, which accepts more arguments
than #GSourceFunc. Casting the function with `(GSourceFunc)` to call
g_source_set_callback() will trigger a warning, even though it will be cast
back to the correct type before it is called by the source.
-
a function pointer.
@@ -22951,12 +21885,10 @@ back to the correct type before it is called by the source.
Use this macro as the return value of a #GSourceFunc to remove
the #GSource from the main loop.
-
The square root of two.
-
@@ -22973,7 +21905,6 @@ is transformed by the preprocessor into (code equivalent to):
|[<!-- language="C" -->
const gchar *greeting = "27 today!";
]|
-
a macro or a string
@@ -22981,7 +21912,6 @@ const gchar *greeting = "27 today!";
-
@@ -22989,7 +21919,6 @@ const gchar *greeting = "27 today!";
Returns a member of a structure at a given offset, using the given type.
-
the type of the struct field
@@ -23005,7 +21934,6 @@ const gchar *greeting = "27 today!";
Returns an untyped pointer to a given offset of a struct.
-
a pointer to a struct
@@ -23017,7 +21945,6 @@ const gchar *greeting = "27 today!";
Returns the offset, in bytes, of a member of a struct.
-
a structure type, e.g. #GtkWidget
@@ -23029,31 +21956,24 @@ const gchar *greeting = "27 today!";
The standard delimiters, used in g_strdelimit().
-
-
-
-
-
-
-
@@ -23071,7 +21991,6 @@ can place them here.
If you want to use your own message handler you can set the
@msg_handler field. The type of the message handler function
is declared by #GScannerMsgFunc.
-
unused
@@ -23157,7 +22076,6 @@ is declared by #GScannerMsgFunc.
Returns the current line in the input stream (counting
from 1). This is the line of the last token parsed via
g_scanner_get_next_token().
-
the current line
@@ -23173,7 +22091,6 @@ g_scanner_get_next_token().
Returns the current position in the current line (counting
from 0). This is the position of the last token parsed via
g_scanner_get_next_token().
-
the current position on the line
@@ -23188,7 +22105,6 @@ g_scanner_get_next_token().
Gets the current token type. This is simply the @token
field in the #GScanner structure.
-
the current token type
@@ -23203,7 +22119,6 @@ field in the #GScanner structure.
Gets the current token value. This is simply the @value
field in the #GScanner structure.
-
the current token value
@@ -23217,7 +22132,6 @@ field in the #GScanner structure.
Frees all memory used by the #GScanner.
-
@@ -23231,7 +22145,6 @@ field in the #GScanner structure.
Returns %TRUE if the scanner has reached the end of
the file or text buffer.
-
%TRUE if the scanner has reached the end of
the file or text buffer
@@ -23246,7 +22159,6 @@ the file or text buffer.
Outputs an error message, via the #GScanner message handler.
-
@@ -23270,7 +22182,6 @@ the file or text buffer.
and also removes it from the input stream. The token data is
placed in the @token, @value, @line, and @position fields of
the #GScanner structure.
-
the type of the token
@@ -23284,7 +22195,6 @@ the #GScanner structure.
Prepares to scan a file.
-
@@ -23301,7 +22211,6 @@ the #GScanner structure.
Prepares to scan a text buffer.
-
@@ -23324,7 +22233,6 @@ the #GScanner structure.
Looks up a symbol in the current scope and return its value.
If the symbol is not bound in the current scope, %NULL is
returned.
-
the value of @symbol in the current scope, or %NULL
if @symbol is not bound in the current scope
@@ -23353,7 +22261,6 @@ results when changing scope or the scanner configuration after peeking
the next token. Getting the next token after switching the scope or
configuration will return whatever was peeked before, regardless of
any symbols that may have been added or removed in the new scope.
-
the type of the token
@@ -23367,7 +22274,6 @@ any symbols that may have been added or removed in the new scope.
Adds a symbol to the given scope.
-
@@ -23395,7 +22301,6 @@ any symbols that may have been added or removed in the new scope.
in the given scope of the #GScanner. The function is passed
the symbol and value of each pair, and the given @user_data
parameter.
-
@@ -23421,7 +22326,6 @@ parameter.
Looks up a symbol in a scope and return its value. If the
symbol is not bound in the scope, %NULL is returned.
-
the value of @symbol in the given scope, or %NULL
if @symbol is not bound in the given scope.
@@ -23444,7 +22348,6 @@ symbol is not bound in the scope, %NULL is returned.
Removes a symbol from a scope.
-
@@ -23465,7 +22368,6 @@ symbol is not bound in the scope, %NULL is returned.
Sets the current scope.
-
the old scope id
@@ -23486,7 +22388,6 @@ symbol is not bound in the scope, %NULL is returned.
and blows the file read ahead buffer. This is useful for
third party uses of the scanners filedescriptor, which hooks
onto the current scanning position.
-
@@ -23505,7 +22406,6 @@ followed by g_scanner_unexp_token() without an intermediate
call to g_scanner_get_next_token(), as g_scanner_unexp_token()
evaluates the scanner's current token (not the peeked token)
to construct part of the message.
-
@@ -23551,7 +22451,6 @@ to construct part of the message.
Outputs a warning message, via the #GScanner message handler.
-
@@ -23577,7 +22476,6 @@ The @config_templ structure specifies the initial settings
of the scanner, which are copied into the #GScanner
@config field. If you pass %NULL then the default settings
are used.
-
the new #GScanner
@@ -23594,7 +22492,6 @@ are used.
Specifies the #GScanner parser configuration. Most settings can
be changed during the parsing phase and will affect the lexical
parsing of the next unpeeked token.
-
specifies which characters should be skipped
by the scanner (the default is the whitespace characters: space,
@@ -23735,7 +22632,6 @@ parsing of the next unpeeked token.
Specifies the type of the message handler function.
-
@@ -23758,7 +22654,6 @@ parsing of the next unpeeked token.
An enumeration specifying the base position for a
g_io_channel_seek_position() operation.
-
the current position in the file.
@@ -23772,10 +22667,8 @@ g_io_channel_seek_position() operation.
The #GSequence struct is an opaque data type representing a
[sequence][glib-Sequences] data type.
-
Adds a new item to the end of @seq.
-
an iterator pointing to the new item
@@ -23794,7 +22687,6 @@ g_io_channel_seek_position() operation.
Calls @func for each item in the sequence passing @user_data
to the function. @func must not modify the sequence itself.
-
@@ -23817,7 +22709,6 @@ to the function. @func must not modify the sequence itself.
Frees the memory allocated for @seq. If @seq has a data destroy
function associated with it, that function is called on all items
in @seq.
-
@@ -23830,7 +22721,6 @@ in @seq.
Returns the begin iterator for @seq.
-
the begin iterator for @seq.
@@ -23844,7 +22734,6 @@ in @seq.
Returns the end iterator for @seg
-
the end iterator for @seq
@@ -23859,7 +22748,6 @@ in @seq.
Returns the iterator at position @pos. If @pos is negative or larger
than the number of items in @seq, the end iterator is returned.
-
The #GSequenceIter at position @pos
@@ -23876,10 +22764,9 @@ than the number of items in @seq, the end iterator is returned.
- Returns the length of @seq. Note that this method is O(h) where `h' is the
-height of the tree. It is thus more efficient to use g_sequence_is_empty()
-when comparing the length to zero.
-
+ Returns the positive length (>= 0) of @seq. Note that this method is
+O(h) where `h' is the height of the tree. It is thus more efficient
+to use g_sequence_is_empty() when comparing the length to zero.
the length of @seq
@@ -23904,7 +22791,6 @@ if the second item comes before the first.
Note that when adding a large amount of data to a #GSequence,
it is more efficient to do unsorted insertions and then call
g_sequence_sort() or g_sequence_sort_iter().
-
a #GSequenceIter pointing to the new item.
@@ -23941,7 +22827,6 @@ positive value if the second iterator comes before the first.
Note that when adding a large amount of data to a #GSequence,
it is more efficient to do unsorted insertions and then call
g_sequence_sort() or g_sequence_sort_iter().
-
a #GSequenceIter pointing to the new item
@@ -23971,7 +22856,6 @@ g_sequence_sort() or g_sequence_sort_iter().
This function is functionally identical to checking the result of
g_sequence_get_length() being equal to zero. However this function is
implemented in O(1) running time.
-
%TRUE if the sequence is empty, otherwise %FALSE.
@@ -23997,7 +22881,6 @@ the second item comes before the first.
This function will fail if the data contained in the sequence is
unsorted.
-
an #GSequenceIter pointing to the position of the
first item found equal to @data according to @cmp_func and
@@ -24034,7 +22917,6 @@ value if the second iterator comes before the first.
This function will fail if the data contained in the sequence is
unsorted.
-
an #GSequenceIter pointing to the position of
the first item found equal to @data according to @iter_cmp
@@ -24062,7 +22944,6 @@ unsorted.
Adds a new item to the front of @seq
-
an iterator pointing to the new item
@@ -24092,7 +22973,6 @@ consider using g_sequence_lookup().
This function will fail if the data contained in the sequence is
unsorted.
-
an #GSequenceIter pointing to the position where @data
would have been inserted according to @cmp_func and @cmp_data
@@ -24131,7 +23011,6 @@ consider using g_sequence_lookup_iter().
This function will fail if the data contained in the sequence is
unsorted.
-
a #GSequenceIter pointing to the position in @seq
where @data would have been inserted according to @iter_cmp
@@ -24164,7 +23043,6 @@ unsorted.
return 0 if they are equal, a negative value if the
first comes before the second, and a positive value
if the second comes before the first.
-
@@ -24191,7 +23069,6 @@ of a #GCompareDataFunc as the compare function
return 0 if the iterators are equal, a negative value if the first
iterator comes before the second, and a positive value if the second
iterator comes before the first.
-
@@ -24214,7 +23091,6 @@ iterator comes before the first.
Calls @func for each item in the range (@begin, @end) passing
@user_data to the function. @func must not modify the sequence
itself.
-
@@ -24239,7 +23115,6 @@ itself.
Returns the data that @iter points to.
-
the data that @iter points to
@@ -24253,7 +23128,6 @@ itself.
Inserts a new item just before the item pointed to by @iter.
-
an iterator pointing to the new item
@@ -24274,7 +23148,6 @@ itself.
After calling this function @dest will point to the position immediately
after @src. It is allowed for @src and @dest to point into different
sequences.
-
@@ -24299,7 +23172,6 @@ into by @begin and @end.
If @dest is %NULL, the range indicated by @begin and @end is
removed from the sequence. If @dest points to a place within
the (@begin, @end) range, the range does not move.
-
@@ -24322,7 +23194,6 @@ the (@begin, @end) range, the range does not move.
Creates a new GSequence. The @data_destroy function, if non-%NULL will
be called on all items when the sequence is destroyed and on items that
are removed from the sequence.
-
a new #GSequence
@@ -24341,7 +23212,6 @@ guaranteed to be exactly in the middle.
The @begin and @end iterators must both point to the same sequence
and @begin must come before or be equal to @end in the sequence.
-
a #GSequenceIter pointing somewhere in the
(@begin, @end) range
@@ -24364,7 +23234,6 @@ end iterator to this function.
If the sequence has a data destroy function associated with it, this
function is called on the data for the removed item.
-
@@ -24380,7 +23249,6 @@ function is called on the data for the removed item.
If the sequence has a data destroy function associated with it, this
function is called on the data for the removed items.
-
@@ -24399,7 +23267,6 @@ function is called on the data for the removed items.
Changes the data for the item pointed to by @iter to be @data. If
the sequence has a data destroy function associated with it, that
function is called on the existing data that @iter pointed to.
-
@@ -24425,7 +23292,6 @@ may return different values for that item.
It should return 0 if the items are equal, a negative value if
the first item comes before the second, and a positive value if
the second item comes before the first.
-
@@ -24454,7 +23320,6 @@ the compare function.
return 0 if the iterators are equal, a negative value if the first
iterator comes before the second, and a positive value if the second
iterator comes before the first.
-
@@ -24476,7 +23341,6 @@ iterator comes before the first.
Swaps the items pointed to by @a and @b. It is allowed for @a and @b
to point into difference sequences.
-
@@ -24495,13 +23359,11 @@ to point into difference sequences.
The #GSequenceIter struct is an opaque data type representing an
iterator pointing into a #GSequence.
-
Returns a negative number if @a comes before @b, 0 if they are equal,
and a positive number if @a comes after @b.
The @a and @b iterators must point into the same sequence.
-
a negative number if @a comes before @b, 0 if they are
equal, and a positive number if @a comes after @b
@@ -24520,7 +23382,6 @@ The @a and @b iterators must point into the same sequence.
Returns the position of @iter
-
the position of @iter
@@ -24534,7 +23395,6 @@ The @a and @b iterators must point into the same sequence.
Returns the #GSequence that @iter points into.
-
the #GSequence that @iter points into
@@ -24548,7 +23408,6 @@ The @a and @b iterators must point into the same sequence.
Returns whether @iter is the begin iterator
-
whether @iter is the begin iterator
@@ -24562,7 +23421,6 @@ The @a and @b iterators must point into the same sequence.
Returns whether @iter is the end iterator
-
Whether @iter is the end iterator
@@ -24579,7 +23437,6 @@ The @a and @b iterators must point into the same sequence.
If @iter is closer than -@delta positions to the beginning of the sequence,
the begin iterator is returned. If @iter is closer than @delta positions
to the end of the sequence, the end iterator is returned.
-
a #GSequenceIter which is @delta positions away from @iter
@@ -24599,7 +23456,6 @@ to the end of the sequence, the end iterator is returned.
Returns an iterator pointing to the next position after @iter.
If @iter is the end iterator, the end iterator is returned.
-
a #GSequenceIter pointing to the next position after @iter
@@ -24614,7 +23470,6 @@ If @iter is the end iterator, the end iterator is returned.
Returns an iterator pointing to the previous position before @iter.
If @iter is the begin iterator, the begin iterator is returned.
-
a #GSequenceIter pointing to the previous position
before @iter
@@ -24632,7 +23487,6 @@ If @iter is the begin iterator, the begin iterator is returned.
A #GSequenceIterCompareFunc is a function used to compare iterators.
It must return zero if the iterators compare equal, a negative value
if @a comes before @b, and a positive value if @b comes before @a.
-
zero if the iterators are equal, a negative value if @a
comes before @b, and a positive value if @b comes before @a.
@@ -24655,7 +23509,6 @@ if @a comes before @b, and a positive value if @b comes before @a.
Error codes returned by shell functions.
-
Mismatched or otherwise mangled quoting.
@@ -24667,7 +23520,6 @@ if @a comes before @b, and a positive value if @b comes before @a.
-
@@ -24684,7 +23536,6 @@ if @a comes before @b, and a positive value if @b comes before @a.
The `GSource` struct is an opaque data type
representing an event source.
-
@@ -24735,7 +23586,6 @@ additional data. The size passed in must be at least
The source will not initially be associated with any #GMainContext
and must be added to one with g_source_attach() before it will be
executed.
-
the newly-created #GSource.
@@ -24770,7 +23620,6 @@ is attached to it.
This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
-
@@ -24798,7 +23647,6 @@ Do not call this API on a #GSource that you did not create.
Using this API forces the linear scanning of event sources on each
main loop iteration. Newly-written event sources should try to use
g_source_add_unix_fd() instead of this API.
-
@@ -24828,7 +23676,6 @@ This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
As the name suggests, this function is not available on Windows.
-
an opaque tag
@@ -24854,7 +23701,6 @@ that context. Remove it by calling g_source_destroy().
This function is safe to call from any thread, regardless of which thread
the @context is running in.
-
the ID (greater than 0) for the source within the
#GMainContext.
@@ -24882,7 +23728,6 @@ g_source_unref() to drop it.
This function is safe to call from any thread, regardless of which thread
the #GMainContext is running in.
-
@@ -24896,7 +23741,6 @@ the #GMainContext is running in.
Checks whether a source is allowed to be called recursively.
see g_source_set_can_recurse().
-
whether recursion is allowed.
@@ -24917,7 +23761,6 @@ case it will return that #GMainContext). In particular, you can
always call this function on the source returned from
g_main_current_source(). But calling this function on a source
whose #GMainContext has been destroyed is an error.
-
the #GMainContext with which the
source is associated, or %NULL if the context has not
@@ -24935,7 +23778,6 @@ whose #GMainContext has been destroyed is an error.
This function ignores @source and is otherwise the same as
g_get_current_time().
use g_source_get_time() instead
-
@@ -24960,7 +23802,6 @@ You can only call this function while the source is associated to a
#GMainContext instance; calling this function before g_source_attach()
or after g_source_destroy() yields undefined behavior. The ID returned
is unique within the #GMainContext instance passed to g_source_attach().
-
the ID (greater than 0) for the source
@@ -24975,8 +23816,7 @@ is unique within the #GMainContext instance passed to g_source_attach().
Gets a name for the source, used in debugging and profiling. The
name may be #NULL if it has never been set with g_source_set_name().
-
-
+
the name of the source
@@ -24989,7 +23829,6 @@ name may be #NULL if it has never been set with g_source_set_name().
Gets the priority of a source.
-
the priority of the source
@@ -25007,7 +23846,6 @@ g_source_set_ready_time().
Any time before the current monotonic time (including 0) is an
indication that the source will fire immediately.
-
the monotonic ready time, -1 for "never"
@@ -25027,7 +23865,6 @@ instead of having to repeatedly get the system monotonic time.
The time here is the system monotonic time, if available, or some
other reasonable alternative otherwise. See g_get_monotonic_time().
-
the monotonic time in microseconds
@@ -25052,10 +23889,10 @@ idle_callback (gpointer data)
{
SomeWidget *self = data;
- GDK_THREADS_ENTER ();
+ g_mutex_lock (&self->idle_id_mutex);
// do stuff with self
self->idle_id = 0;
- GDK_THREADS_LEAVE ();
+ g_mutex_unlock (&self->idle_id_mutex);
return G_SOURCE_REMOVE;
}
@@ -25063,9 +23900,19 @@ idle_callback (gpointer data)
static void
some_widget_do_stuff_later (SomeWidget *self)
{
+ g_mutex_lock (&self->idle_id_mutex);
self->idle_id = g_idle_add (idle_callback, self);
+ g_mutex_unlock (&self->idle_id_mutex);
}
+static void
+some_widget_init (SomeWidget *self)
+{
+ g_mutex_init (&self->idle_id_mutex);
+
+ // ...
+}
+
static void
some_widget_finalize (GObject *object)
{
@@ -25074,6 +23921,8 @@ some_widget_finalize (GObject *object)
if (self->idle_id)
g_source_remove (self->idle_id);
+ g_mutex_clear (&self->idle_id_mutex);
+
G_OBJECT_CLASS (parent_class)->finalize (object);
}
]|
@@ -25090,12 +23939,12 @@ idle_callback (gpointer data)
{
SomeWidget *self = data;
- GDK_THREADS_ENTER ();
+ g_mutex_lock (&self->idle_id_mutex);
if (!g_source_is_destroyed (g_main_current_source ()))
{
// do stuff with self
}
- GDK_THREADS_LEAVE ();
+ g_mutex_unlock (&self->idle_id_mutex);
return FALSE;
}
@@ -25106,7 +23955,6 @@ Calls to this function from a thread other than the one acquired by the
source could be destroyed immediately after this function returns. However,
once a source is destroyed it cannot be un-destroyed, so this function can be
used for opportunistic checks from any thread.
-
%TRUE if the source has been destroyed
@@ -25130,7 +23978,6 @@ This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
As the name suggests, this function is not available on Windows.
-
@@ -25160,7 +24007,6 @@ This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
As the name suggests, this function is not available on Windows.
-
the conditions reported on the fd
@@ -25178,7 +24024,6 @@ As the name suggests, this function is not available on Windows.
Increases the reference count on a source by one.
-
@source
@@ -25195,7 +24040,6 @@ As the name suggests, this function is not available on Windows.
This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
-
@@ -25217,7 +24061,6 @@ this source.
This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
-
@@ -25243,7 +24086,6 @@ This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
As the name suggests, this function is not available on Windows.
-
@@ -25276,7 +24118,6 @@ to the type of source you are using, such as g_idle_add() or g_timeout_add().
It is safe to call this function multiple times on a source which has already
been attached to a context. The changes will take effect for the next time
the source is dispatched after this call returns.
-
@@ -25310,7 +24151,6 @@ than @callback_funcs->ref.
It is safe to call this function multiple times on a source which has already
been attached to a context. The changes will take effect for the next time
the source is dispatched after this call returns.
-
@@ -25335,7 +24175,6 @@ the source is dispatched after this call returns.
%TRUE, then while the source is being dispatched then this source
will be processed normally. Otherwise, all processing of this
source is blocked until the dispatch function returns.
-
@@ -25367,7 +24206,6 @@ The finalize function can not be used for this purpose as at that point
@source is already partially freed and not valid anymore.
This should only ever be called from #GSource implementations.
-
@@ -25385,7 +24223,6 @@ This should only ever be called from #GSource implementations.
Sets the source functions (can be used to override
default implementations) of an unattached source.
-
@@ -25417,7 +24254,6 @@ Use caution if changing the name while another thread may be
accessing it with g_source_get_name(); that function does not copy
the value, and changing the value will free it while the other thread
may be attempting to use it.
-
@@ -25441,7 +24277,6 @@ dispatched.
A child source always has the same priority as its parent. It is not
permitted to change the priority of a source once it has been added
as a child of another source.
-
@@ -25479,7 +24314,6 @@ destroyed with g_source_destroy().
This API is only intended to be used by implementations of #GSource.
Do not call this API on a #GSource that you did not create.
-
@@ -25499,7 +24333,6 @@ Do not call this API on a #GSource that you did not create.
Decreases the reference count of a source by one. If the
resulting reference count is zero the source and associated
memory will be destroyed.
-
@@ -25530,7 +24363,6 @@ idle may already have run and been removed by the time this function
is called on its (now invalid) source ID. This source ID may have
been reissued, leading to the operation being performed against the
wrong source.
-
For historical reasons, this function always returns %TRUE
@@ -25546,7 +24378,6 @@ wrong source.
Removes a source from the default main loop context given the
source functions and user data. If multiple sources exist with the
same source functions and user data, only one will be destroyed.
-
%TRUE if a source was found and removed.
@@ -25566,7 +24397,6 @@ same source functions and user data, only one will be destroyed.
Removes a source from the default main loop context given the user
data for the callback. If multiple sources exist with the same user
data, only one will be destroyed.
-
%TRUE if a source was found and removed.
@@ -25595,7 +24425,6 @@ idle may already have run and been removed by the time this function
is called on its (now invalid) source ID. This source ID may have
been reissued, leading to the operation being performed against the
wrong source.
-
@@ -25614,10 +24443,8 @@ wrong source.
The `GSourceCallbackFuncs` struct contains
functions for managing callback objects.
-
-
@@ -25630,7 +24457,6 @@ functions for managing callback objects.
-
@@ -25643,7 +24469,6 @@ functions for managing callback objects.
-
@@ -25667,7 +24492,6 @@ functions for managing callback objects.
Dispose function for @source. See g_source_set_dispose_function() for
details.
-
@@ -25681,7 +24505,6 @@ details.
This is just a placeholder for #GClosureMarshal,
which cannot be used here for dependency reasons.
-
@@ -25693,7 +24516,6 @@ g_timeout_add_full(), g_idle_add(), and g_idle_add_full().
When calling g_source_set_callback(), you may need to cast a function of a
different type to this type. Use G_SOURCE_FUNC() to avoid warnings about
incompatible function types.
-
%FALSE if the source should be removed. #G_SOURCE_CONTINUE and
#G_SOURCE_REMOVE are more memorable names for the return value.
@@ -25728,10 +24550,8 @@ any events need to be processed. It sets the returned timeout to -1 to
indicate that it doesn't mind how long the poll() call blocks. In the
check function, it tests the results of the poll() call to see if the
required condition has been met, and returns %TRUE if so.
-
-
@@ -25747,7 +24567,6 @@ required condition has been met, and returns %TRUE if so.
-
@@ -25760,7 +24579,6 @@ required condition has been met, and returns %TRUE if so.
-
@@ -25779,7 +24597,6 @@ required condition has been met, and returns %TRUE if so.
-
@@ -25797,9 +24614,7 @@ required condition has been met, and returns %TRUE if so.
-
-
-
+
Specifies the type of the setup function passed to g_spawn_async(),
g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very
@@ -25831,7 +24646,6 @@ If you need to set up the child environment differently from
the parent, you should use g_get_environ(), g_environ_setenv(),
and g_environ_unsetenv(), and then pass the complete environment
list to the `g_spawn...` function.
-
@@ -25844,7 +24658,6 @@ list to the `g_spawn...` function.
Error codes returned by spawning processes.
-
Fork failed due to lack of memory.
@@ -25912,7 +24725,6 @@ list to the `g_spawn...` function.
Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
-
no flags, default behaviour
@@ -25962,11 +24774,9 @@ list to the `g_spawn...` function.
system call, depending on the platform and/or compiler being used.
See g_stat() for more information.
-
The GString struct contains the public fields of a GString.
-
points to the character data. It may move as text is added.
The @str field is null-terminated and so
@@ -25986,7 +24796,6 @@ See g_stat() for more information.
Adds a string onto the end of a #GString, expanding
it if necessary.
-
@string
@@ -26005,7 +24814,6 @@ it if necessary.
Adds a byte onto the end of a #GString, expanding
it if necessary.
-
@string
@@ -26031,7 +24839,6 @@ ensure that @val has at least @len addressable bytes.
If @len is negative, @val must be nul-terminated and @len
is considered to request the entire string length. This
makes g_string_append_len() equivalent to g_string_append().
-
@string
@@ -26055,7 +24862,6 @@ makes g_string_append_len() equivalent to g_string_append().
Appends a formatted string onto the end of a #GString.
This function is similar to g_string_printf() except
that the text is appended to the #GString.
-
@@ -26077,7 +24883,6 @@ that the text is appended to the #GString.
Converts a Unicode character into UTF-8, and appends it
to the string.
-
@string
@@ -26096,7 +24901,6 @@ to the string.
Appends @unescaped to @string, escaping any characters that
are reserved in URIs using URI-style escape sequences.
-
@string
@@ -26126,7 +24930,6 @@ are reserved in URIs using URI-style escape sequences.
This function is similar to g_string_append_printf()
except that the arguments to the format string are passed
as a va_list.
-
@@ -26147,7 +24950,6 @@ as a va_list.
Converts all uppercase ASCII letters to lowercase ASCII letters.
-
passed-in @string pointer, with all the
uppercase characters converted to lowercase in place,
@@ -26163,7 +24965,6 @@ as a va_list.
Converts all lowercase ASCII letters to uppercase ASCII letters.
-
passed-in @string pointer, with all the
lowercase characters converted to uppercase in place,
@@ -26182,7 +24983,6 @@ as a va_list.
destroying any previous contents. It is rather like
the standard strcpy() function, except that you do not
have to worry about having enough space to copy the string.
-
@string
@@ -26204,7 +25004,6 @@ have to worry about having enough space to copy the string.
This function uses the locale-specific
tolower() function, which is almost never the right thing.
Use g_string_ascii_down() or g_utf8_strdown() instead.
-
the #GString
@@ -26219,7 +25018,6 @@ have to worry about having enough space to copy the string.
Compares two strings for equality, returning %TRUE if they are equal.
For use with #GHashTable.
-
%TRUE if the strings are the same length and contain the
same bytes
@@ -26239,7 +25037,6 @@ For use with #GHashTable.
Removes @len bytes from a #GString, starting at position @pos.
The rest of the #GString is shifted down to fill the gap.
-
@string
@@ -26265,7 +25062,6 @@ The rest of the #GString is shifted down to fill the gap.
If @free_segment is %TRUE it also frees the character data. If
it's %FALSE, the caller gains ownership of the buffer and must
free it after use with g_free().
-
the character data of @string
(i.e. %NULL if @free_segment is %TRUE)
@@ -26291,7 +25087,6 @@ Note that while #GString ensures that its buffer always has a
trailing nul character (not reflected in its "len"), the returned
#GBytes does not include this extra nul; i.e. it has length exactly
equal to the "len" member.
-
A newly allocated #GBytes containing contents of @string; @string itself is freed
@@ -26305,7 +25100,6 @@ equal to the "len" member.
Creates a hash code for @str; for use with #GHashTable.
-
hash code for @str
@@ -26320,7 +25114,6 @@ equal to the "len" member.
Inserts a copy of a string into a #GString,
expanding it if necessary.
-
@string
@@ -26342,7 +25135,6 @@ expanding it if necessary.
Inserts a byte into a #GString, expanding it if necessary.
-
@string
@@ -26373,7 +25165,6 @@ If @len is negative, @val must be nul-terminated and @len
is considered to request the entire string length.
If @pos is -1, bytes are inserted at the end of the string.
-
@string
@@ -26401,7 +25192,6 @@ If @pos is -1, bytes are inserted at the end of the string.
Converts a Unicode character into UTF-8, and insert it
into the string at the given position.
-
@string
@@ -26424,7 +25214,6 @@ into the string at the given position.
Overwrites part of a string, lengthening it if necessary.
-
@string
@@ -26447,7 +25236,6 @@ into the string at the given position.
Overwrites part of a string, lengthening it if necessary.
This function will work with embedded nuls.
-
@string
@@ -26474,7 +25262,6 @@ This function will work with embedded nuls.
Adds a string on to the start of a #GString,
expanding it if necessary.
-
@string
@@ -26493,7 +25280,6 @@ expanding it if necessary.
Adds a byte onto the start of a #GString,
expanding it if necessary.
-
@string
@@ -26519,7 +25305,6 @@ ensure that @val has at least @len addressable bytes.
If @len is negative, @val must be nul-terminated and @len
is considered to request the entire string length. This
makes g_string_prepend_len() equivalent to g_string_prepend().
-
@string
@@ -26542,7 +25327,6 @@ makes g_string_prepend_len() equivalent to g_string_prepend().
Converts a Unicode character into UTF-8, and prepends it
to the string.
-
@string
@@ -26564,7 +25348,6 @@ This is similar to the standard sprintf() function,
except that the #GString buffer automatically expands
to contain the results. The previous contents of the
#GString are destroyed.
-
@@ -26589,7 +25372,6 @@ the current length, the string will be truncated. If the
length is greater than the current length, the contents
of the newly added area are undefined. (However, as
always, string->str[string->len] will be a nul byte.)
-
@string
@@ -26607,7 +25389,6 @@ always, string->str[string->len] will be a nul byte.)
Cuts off the end of the GString, leaving the first @len bytes.
-
@string
@@ -26628,7 +25409,6 @@ always, string->str[string->len] will be a nul byte.)
This function uses the locale-specific
toupper() function, which is almost never the right thing.
Use g_string_ascii_up() or g_utf8_strup() instead.
-
@string
@@ -26644,7 +25424,6 @@ always, string->str[string->len] will be a nul byte.)
Writes a formatted string into a #GString.
This function is similar to g_string_printf() except that
the arguments to the format string are passed as a va_list.
-
@@ -26667,12 +25446,10 @@ the arguments to the format string are passed as a va_list.
An opaque data structure representing String Chunks.
It should only be accessed by using the following functions.
-
Frees all strings contained within the #GStringChunk.
After calling g_string_chunk_clear() it is not safe to
access any of the strings which were contained within it.
-
@@ -26687,7 +25464,6 @@ access any of the strings which were contained within it.
Frees all memory allocated by the #GStringChunk.
After calling g_string_chunk_free() it is not safe to
access any of the strings which were contained within it.
-
@@ -26710,7 +25486,6 @@ does not check for duplicates. Also strings added
with g_string_chunk_insert() will not be searched
by g_string_chunk_insert_const() when looking for
duplicates.
-
a pointer to the copy of @string within
the #GStringChunk
@@ -26741,7 +25516,6 @@ should be done very carefully.
Note that g_string_chunk_insert_const() will not return a
pointer to a string added with g_string_chunk_insert(), even
if they do match.
-
a pointer to the new or existing copy of @string
within the #GStringChunk
@@ -26768,7 +25542,6 @@ bytes.
The characters in the returned string can be changed, if necessary,
though you should not change anything after the end of the string.
-
a pointer to the copy of @string within the #GStringChunk
@@ -26791,7 +25564,6 @@ though you should not change anything after the end of the string.
Creates a new #GStringChunk.
-
a new #GStringChunk
@@ -26830,38 +25602,31 @@ guaranteed to be stable API — always use a getter function to retrieve th
The subdirectories may not be created by the test harness; as with normal
calls to functions like g_get_user_cache_dir(), the caller must be prepared
to create the directory if it doesn’t exist.
-
Evaluates to a time span of one day.
-
Evaluates to a time span of one hour.
-
Evaluates to a time span of one millisecond.
-
Evaluates to a time span of one minute.
-
Evaluates to a time span of one second.
-
Works like g_mutex_trylock(), but for a lock defined with
#G_LOCK_DEFINE.
-
the name of the lock
@@ -26870,10 +25635,8 @@ to create the directory if it doesn’t exist.
An opaque structure representing a test case.
-
-
@@ -26896,7 +25659,6 @@ to create the directory if it doesn’t exist.
The type used for test case functions that take an extra pointer
argument.
-
@@ -26924,7 +25686,6 @@ Note: as a general rule of automake, files that are generated only as
part of the build-from-git process (but then are distributed with the
tarball) always go in srcdir (even if doing a srcdir != builddir
build from git) and are considered as distributed files.
-
a file that was included in the distribution tarball
@@ -26943,7 +25704,6 @@ the test case.
@fixture will be a pointer to the area of memory allocated by the
test framework, of the size requested. If the requested size was
zero then @fixture will be equal to @user_data.
-
@@ -26960,13 +25720,11 @@ zero then @fixture will be equal to @user_data.
The type used for test case functions.
-
-
@@ -26977,7 +25735,6 @@ zero then @fixture will be equal to @user_data.
Internal function for gtester to free test log messages, no ABI guarantees provided.
-
@@ -26989,7 +25746,6 @@ zero then @fixture will be equal to @user_data.
Internal function for gtester to retrieve test log messages, no ABI guarantees provided.
-
@@ -27001,7 +25757,6 @@ zero then @fixture will be equal to @user_data.
Internal function for gtester to decode test log messages, no ABI guarantees provided.
-
@@ -27019,7 +25774,6 @@ zero then @fixture will be equal to @user_data.
Internal function for gtester to decode test log messages, no ABI guarantees provided.
-
@@ -27027,7 +25781,6 @@ zero then @fixture will be equal to @user_data.
Specifies the prototype of fatal log handler functions.
-
%TRUE if the program should abort, %FALSE otherwise
@@ -27052,7 +25805,6 @@ zero then @fixture will be equal to @user_data.
-
@@ -27070,7 +25822,6 @@ zero then @fixture will be equal to @user_data.
Internal function for gtester to free test log messages, no ABI guarantees provided.
-
@@ -27082,7 +25833,6 @@ zero then @fixture will be equal to @user_data.
-
@@ -27109,7 +25859,6 @@ zero then @fixture will be equal to @user_data.
-
@@ -27124,7 +25873,6 @@ zero then @fixture will be equal to @user_data.
Note that in contrast with g_test_trap_fork(), the default is to
not show stdout and stderr.
-
If this flag is given, the child
process will inherit the parent's stdin. Otherwise, the child's
@@ -27145,10 +25893,8 @@ not show stdout and stderr.
An opaque structure representing a test suite.
-
Adds @test_case to @suite.
-
@@ -27165,7 +25911,6 @@ not show stdout and stderr.
Adds @nestedsuite to @suite.
-
@@ -27187,7 +25932,6 @@ These flags determine what traps to set.
#GTestTrapFlags is used only with g_test_trap_fork(),
which is deprecated. g_test_trap_subprocess() uses
#GTestSubprocessFlags.
-
Redirect stdout of the test child to
`/dev/null` so it cannot be observed on the console during test
@@ -27220,7 +25964,6 @@ explicitly.
The structure is opaque -- none of its fields may be directly
accessed.
-
This function creates a new thread. The new thread starts by invoking
@func with the argument data. The thread will run until @func returns
@@ -27249,7 +25992,6 @@ This behaviour changed in GLib 2.64: before threads on Windows were not
inheriting the thread priority but were spawned with the default priority.
Starting with GLib 2.64 the behaviour is now consistent between Windows and
POSIX and all threads inherit their parent thread's priority.
-
the new #GThread
@@ -27275,7 +26017,6 @@ it allows for the possibility of failure.
If a thread can not be created (due to resource limits),
@error is set and %NULL is returned.
-
the new #GThread, or %NULL if an error occurred
@@ -27312,7 +26053,6 @@ g_thread_join() consumes the reference to the passed-in @thread.
This will usually cause the #GThread struct and associated resources
to be freed. Use g_thread_ref() to obtain an extra reference if you
want to keep the GThread alive beyond the g_thread_join() call.
-
the return value of the thread
@@ -27326,7 +26066,6 @@ want to keep the GThread alive beyond the g_thread_join() call.
Increase the reference count on @thread.
-
a new reference to @thread
@@ -27345,7 +26084,6 @@ resources associated with it.
Note that each thread holds a reference to its #GThread while
it is running, so it is safe to drop your own reference to it
if you don't need it anymore.
-
@@ -27375,7 +26113,6 @@ You must only call g_thread_exit() from a thread that you created
yourself with g_thread_new() or related APIs. You must not call
this function from a thread created with another threading library
or or from within a #GThreadPool.
-
@@ -27396,7 +26133,6 @@ were not created by GLib (i.e. those created by other threading
APIs). This may be useful for thread identification purposes
(i.e. comparisons) but you must not use GLib functions (such
as g_thread_join()) on these threads.
-
the #GThread representing the current thread
@@ -27407,7 +26143,6 @@ as g_thread_join()) on these threads.
that other threads can run.
This function is often used as a method to make busy wait less evil.
-
@@ -27415,7 +26150,6 @@ This function is often used as a method to make busy wait less evil.
Possible errors of thread related functions.
-
a thread couldn't be created due to resource
shortage. Try again later.
@@ -27424,7 +26158,6 @@ This function is often used as a method to make busy wait less evil.
Specifies the type of the @func functions passed to g_thread_new()
or g_thread_try_new().
-
the return value of the thread
@@ -27440,7 +26173,6 @@ or g_thread_try_new().
The #GThreadPool struct represents a thread pool. It has three
public read-only members, but the underlying struct is bigger,
so you must not copy this struct.
-
the function to execute in the threads of this pool
@@ -27468,7 +26200,6 @@ or only the currently running) are ready.
Otherwise this function returns immediately.
After calling this function @pool must not be used anymore.
-
@@ -27489,7 +26220,6 @@ After calling this function @pool must not be used anymore.
Returns the maximal number of threads for @pool.
-
the maximal number of threads
@@ -27503,7 +26233,6 @@ After calling this function @pool must not be used anymore.
Returns the number of threads currently running in @pool.
-
the number of threads currently running
@@ -27518,7 +26247,6 @@ After calling this function @pool must not be used anymore.
Moves the item to the front of the queue of unprocessed
items, so that it will be processed next.
-
%TRUE if the item was found and moved
@@ -27549,7 +26277,6 @@ created. In that case @data is simply appended to the queue of
work to do.
Before version 2.32, this function did not return a success status.
-
%TRUE on success, %FALSE if an error occurred
@@ -27586,7 +26313,6 @@ errors. An error can only occur when a new thread couldn't be
created.
Before version 2.32, this function did not return a success status.
-
%TRUE on success, %FALSE if an error occurred
@@ -27613,7 +26339,6 @@ that threads are executed cannot be guaranteed 100%. Threads are
scheduled by the operating system and are executed at random. It
cannot be assumed that threads are executed in the order they are
created.
-
@@ -27639,7 +26364,6 @@ created.
Returns the number of tasks still unprocessed in @pool.
-
the number of unprocessed tasks
@@ -27658,7 +26382,6 @@ being stopped.
If this function returns 0, threads waiting in the thread
pool for new work are not stopped.
-
the maximum @interval (milliseconds) to wait
for new tasks in the thread pool before stopping the
@@ -27668,7 +26391,6 @@ pool for new work are not stopped.
Returns the maximal allowed number of unused threads.
-
the maximal number of unused threads
@@ -27676,7 +26398,6 @@ pool for new work are not stopped.
Returns the number of currently unused threads.
-
the number of currently unused threads
@@ -27714,7 +26435,6 @@ errors. An error can only occur when @exclusive is set to %TRUE
and not all @max_threads threads could be created.
See #GThreadError for possible errors that may occur.
Note, even in case of error a valid #GThreadPool is returned.
-
the new #GThreadPool
@@ -27750,7 +26470,6 @@ except this is done on a per thread basis.
By setting @interval to 0, idle threads will not be stopped.
The default value is 15000 (15 seconds).
-
@@ -27768,7 +26487,6 @@ If @max_threads is -1, no limit is imposed on the number
of unused threads.
The default value is 2.
-
@@ -27783,7 +26501,6 @@ The default value is 2.
Stops all currently unused threads. This does not change the
maximal number of unused threads. This function can be used to
regularly stop all unused threads e.g. from g_timeout_add().
-
@@ -27798,7 +26515,6 @@ Second, if the time is in local time, specifies if it is local
standard time or local daylight time. This is important for the case
where the same local time occurs twice (during daylight savings time
transitions, for example).
-
the time is in local standard time
@@ -27820,7 +26536,6 @@ removed from a future version of GLib. A consequence of using `glong` for
`tv_sec` is that on 32-bit systems `GTimeVal` is subject to the year 2038
problem.
Use #GDateTime or #guint64 instead.
-
seconds
@@ -27834,7 +26549,6 @@ problem.
also be negative to decrease the value of @time_.
#GTimeVal is not year-2038-safe. Use `guint64` for
representing microseconds since the epoch, or use #GDateTime.
-
@@ -27886,7 +26600,6 @@ The return value of g_time_val_to_iso8601() has been nullable since GLib
2.54; before then, GLib would crash under the same conditions.
#GTimeVal is not year-2038-safe. Use
g_date_time_format_iso8601(dt) instead.
-
a newly allocated string containing an ISO 8601 date,
or %NULL if @time_ was too large
@@ -27919,7 +26632,6 @@ g_date_time_unref (dt);
]|
#GTimeVal is not year-2038-safe. Use
g_date_time_new_from_iso8601() instead.
-
%TRUE if the conversion was successful.
@@ -27939,73 +26651,15 @@ g_date_time_unref (dt);
#GTimeZone is an opaque structure whose members cannot be accessed
directly.
-
-
- Creates a #GTimeZone corresponding to @identifier.
+
+ A version of g_time_zone_new_identifier() which returns the UTC time zone
+if @identifier could not be parsed or loaded.
-@identifier can either be an RFC3339/ISO 8601 time offset or
-something that would pass as a valid value for the `TZ` environment
-variable (including %NULL).
-
-In Windows, @identifier can also be the unlocalized name of a time
-zone for standard time, for example "Pacific Standard Time".
-
-Valid RFC3339 time offsets are `"Z"` (for UTC) or
-`"±hh:mm"`. ISO 8601 additionally specifies
-`"±hhmm"` and `"±hh"`. Offsets are
-time values to be added to Coordinated Universal Time (UTC) to get
-the local time.
-
-In UNIX, the `TZ` environment variable typically corresponds
-to the name of a file in the zoneinfo database, an absolute path to a file
-somewhere else, or a string in
-"std offset [dst [offset],start[/time],end[/time]]" (POSIX) format.
-There are no spaces in the specification. The name of standard
-and daylight savings time zone must be three or more alphabetic
-characters. Offsets are time values to be added to local time to
-get Coordinated Universal Time (UTC) and should be
-`"[±]hh[[:]mm[:ss]]"`. Dates are either
-`"Jn"` (Julian day with n between 1 and 365, leap
-years not counted), `"n"` (zero-based Julian day
-with n between 0 and 365) or `"Mm.w.d"` (day d
-(0 <= d <= 6) of week w (1 <= w <= 5) of month m (1 <= m <= 12), day
-0 is a Sunday). Times are in local wall clock time, the default is
-02:00:00.
-
-In Windows, the "tzn[+|–]hh[:mm[:ss]][dzn]" format is used, but also
-accepts POSIX format. The Windows format uses US rules for all time
-zones; daylight savings time is 60 minutes behind the standard time
-with date and time of change taken from Pacific Standard Time.
-Offsets are time values to be added to the local time to get
-Coordinated Universal Time (UTC).
-
-g_time_zone_new_local() calls this function with the value of the
-`TZ` environment variable. This function itself is independent of
-the value of `TZ`, but if @identifier is %NULL then `/etc/localtime`
-will be consulted to discover the correct time zone on UNIX and the
-registry will be consulted or GetTimeZoneInformation() will be used
-to get the local time zone on Windows.
-
-If intervals are not available, only time zone rules from `TZ`
-environment variable or other means, then they will be computed
-from year 1900 to 2037. If the maximum year for the rules is
-available and it is greater than 2037, then it will followed
-instead.
-
-See
-[RFC3339 §5.6](http://tools.ietf.org/html/rfc3339#section-5.6)
-for a precise definition of valid RFC3339 time offsets
-(the `time-offset` expansion) and ISO 8601 for the
-full list of valid time offsets. See
-[The GNU C Library manual](http://www.gnu.org/s/libc/manual/html_node/TZ-Variable.html)
-for an explanation of the possible
-values of the `TZ` environment variable. See
-[Microsoft Time Zone Index Values](http://msdn.microsoft.com/en-us/library/ms912391%28v=winembedded.11%29.aspx)
-for the list of time zones on Windows.
-
-You should release the return value by calling g_time_zone_unref()
-when you are done with it.
-
+If you need to check whether @identifier was loaded successfully, use
+g_time_zone_new_identifier().
+ Use g_time_zone_new_identifier() instead, as it provides
+ error reporting. Change your code to handle a potentially %NULL return
+ value.
the requested timezone
@@ -28027,7 +26681,6 @@ the `TZ` environment variable (including the possibility of %NULL).
You should release the return value by calling g_time_zone_unref()
when you are done with it.
-
the local timezone
@@ -28039,7 +26692,6 @@ in seconds.
This is equivalent to calling g_time_zone_new() with a string in the form
`[+|-]hh[:mm[:ss]]`.
-
a timezone at the given offset from UTC
@@ -28059,7 +26711,6 @@ This is equivalent to calling g_time_zone_new() with a value like
You should release the return value by calling g_time_zone_unref()
when you are done with it.
-
the universal timezone
@@ -28082,7 +26733,6 @@ non-existent times. If the non-existent local @time_ of 02:30 were
requested on March 14th 2010 in Toronto then this function would
adjust @time_ to be 03:00 and return the interval containing the
adjusted time.
-
the interval containing @time_, never -1
@@ -28121,7 +26771,6 @@ It is still possible for this function to fail. In Toronto, for
example, 02:00 on March 14th 2010 does not exist (due to the leap
forward to begin daylight savings time). -1 is returned in that
case.
-
the interval containing @time_, or -1 in case of failure
@@ -28148,7 +26797,6 @@ case.
For example, in Toronto this is currently "EST" during the winter
months and "EDT" during the summer months when daylight savings time
is in effect.
-
the time zone abbreviation, which belongs to @tz
@@ -28173,7 +26821,6 @@ construction time will be returned.
The identifier will be returned in the same format as provided at
construction time: if provided as a time offset, that will be returned by
this function.
-
identifier for this timezone
@@ -28192,7 +26839,6 @@ of time in the time zone @tz.
The offset is the number of seconds that you add to UTC time to
arrive at local time for @tz (ie: negative numbers for time zones
west of GMT, positive numbers for east).
-
the number of seconds that should be added to UTC to get the
local time in @tz
@@ -28212,7 +26858,6 @@ west of GMT, positive numbers for east).
Determines if daylight savings time is in effect during a particular
@interval of time in the time zone @tz.
-
%TRUE if daylight savings time is in effect
@@ -28230,7 +26875,6 @@ west of GMT, positive numbers for east).
Increases the reference count on @tz.
-
a new reference to @tz.
@@ -28244,7 +26888,6 @@ west of GMT, positive numbers for east).
Decreases the reference count on @tz.
-
@@ -28258,12 +26901,10 @@ west of GMT, positive numbers for east).
Opaque datatype that records a start time.
-
Resumes a timer that has previously been stopped with
g_timer_stop(). g_timer_stop() must be called before using this
function.
-
@@ -28276,7 +26917,6 @@ function.
Destroys a timer, freeing associated resources.
-
@@ -28294,7 +26934,6 @@ elapsed time between the time it was started and the time it was
stopped. The return value is the number of seconds elapsed,
including any fractional part. The @microseconds out parameter is
essentially useless.
-
seconds elapsed as a floating point value, including any
fractional part.
@@ -28315,7 +26954,6 @@ essentially useless.
Exposes whether the timer is currently active.
-
%TRUE if the timer is running, %FALSE otherwise
@@ -28331,7 +26969,6 @@ essentially useless.
This function is useless; it's fine to call g_timer_start() on an
already-started timer to reset the start time, so g_timer_reset()
serves no purpose.
-
@@ -28347,7 +26984,6 @@ serves no purpose.
report the time since g_timer_start() was called. g_timer_new()
automatically marks the start time, so no need to call
g_timer_start() immediately after creating the timer.
-
@@ -28361,7 +26997,6 @@ g_timer_start() immediately after creating the timer.
Marks an end time, so calls to g_timer_elapsed() will return the
difference between this end time and the start time.
-
@@ -28375,7 +27010,6 @@ difference between this end time and the start time.
Creates a new timer, and starts timing (i.e. g_timer_start() is
implicitly called for you).
-
a new #GTimer.
@@ -28385,7 +27019,6 @@ implicitly called for you).
The possible types of token returned from each
g_scanner_get_next_token() call.
-
the end of the file
@@ -28458,7 +27091,6 @@ g_scanner_get_next_token() call.
A union holding the value of the token.
-
token symbol value
@@ -28511,7 +27143,6 @@ g_scanner_get_next_token() call.
The type of functions which are used to translate user-visible
strings, for <option>--help</option> output.
-
a translation of the string for the current locale.
The returned string is owned by GLib and must not be freed.
@@ -28533,7 +27164,6 @@ strings, for <option>--help</option> output.
Each piece of memory that is pushed onto the stack
is cast to a GTrashStack*.
#GTrashStack is deprecated without replacement
-
pointer to the previous element of the stack,
gets stored in the first `sizeof (gpointer)`
@@ -28546,7 +27176,6 @@ is cast to a GTrashStack*.
Note that execution of this function is of O(N) complexity
where N denotes the number of items on the stack.
#GTrashStack is deprecated without replacement
-
the height of the stack
@@ -28562,7 +27191,6 @@ where N denotes the number of items on the stack.
Returns the element at the top of a #GTrashStack
which may be %NULL.
#GTrashStack is deprecated without replacement
-
the element at the top of the stack
@@ -28577,7 +27205,6 @@ which may be %NULL.
Pops a piece of memory off a #GTrashStack.
#GTrashStack is deprecated without replacement
-
the element at the top of the stack
@@ -28592,7 +27219,6 @@ which may be %NULL.
Pushes a piece of memory onto a #GTrashStack.
#GTrashStack is deprecated without replacement
-
@@ -28611,7 +27237,6 @@ which may be %NULL.
Specifies which nodes are visited during several of the tree
functions, including g_node_traverse() and g_node_find().
-
only leaf nodes should be visited. This name has
been introduced in 2.6, for older version use
@@ -28640,7 +27265,6 @@ functions, including g_node_traverse() and g_node_find().
passed the key and value of each node, together with the @user_data
parameter passed to g_tree_traverse(). If the function returns
%TRUE, the traversal is stopped.
-
%TRUE to stop the traversal
@@ -28672,7 +27296,6 @@ illustrated here:

- Level order: F, B, G, A, D, I, C, E, H

-
vists a node's left child first, then the node itself,
then its right child. This is the one to use if you
@@ -28698,7 +27321,6 @@ illustrated here:
The GTree struct is an opaque data structure representing a
[balanced binary tree][glib-Balanced-Binary-Trees]. It should be
accessed only by using the following functions.
-
Removes all keys and values from the #GTree and decreases its
reference count by one. If keys and/or values are dynamically
@@ -28706,7 +27328,6 @@ allocated, you should either free them first or create the #GTree
using g_tree_new_full(). In the latter case the destroy functions
you supplied will be called on all keys and values before destroying
the #GTree.
-
@@ -28726,7 +27347,6 @@ The tree may not be modified while iterating over it (you can't
add/remove items). To remove all items matching a predicate, you need
to add each item to a list in your #GTraverseFunc as you walk over
the tree, then walk the list and remove each item.
-
@@ -28752,7 +27372,6 @@ the tree, then walk the list and remove each item.
If the #GTree contains no nodes, the height is 0.
If the #GTree contains only one root node the height is 1.
If the root node has children the height is 2, etc.
-
the height of @tree
@@ -28767,18 +27386,8 @@ If the root node has children the height is 2, etc.
Inserts a key/value pair into a #GTree.
-If the given key already exists in the #GTree its corresponding value
-is set to the new value. If you supplied a @value_destroy_func when
-creating the #GTree, the old value is freed using that function. If
-you supplied a @key_destroy_func when creating the #GTree, the passed
-key is freed using that function.
-
-The tree is automatically 'balanced' as new key/value pairs are added,
-so that the distance from the root to every leaf is as small as possible.
-The cost of maintaining a balanced tree while inserting new key/value
-result in a O(n log(n)) operation where most of the other operations
-are O(log(n)).
-
+Inserts a new key and value into a #GTree as g_tree_insert_node() does,
+only this function does not return the inserted or set node.
@@ -28801,7 +27410,6 @@ are O(log(n)).
Gets the value corresponding to the given key. Since a #GTree is
automatically balanced as key/value pairs are added, key lookup
is O(log n) (where n is the number of key/value pairs in the tree).
-
the value corresponding to the key, or %NULL
if the key was not found
@@ -28823,7 +27431,6 @@ is O(log n) (where n is the number of key/value pairs in the tree).
associated value. This is useful if you need to free the memory
allocated for the original key, for example before calling
g_tree_remove().
-
%TRUE if the key was found in the #GTree
@@ -28849,7 +27456,6 @@ g_tree_remove().
Gets the number of nodes in a #GTree.
-
the number of nodes in @tree
@@ -28865,7 +27471,6 @@ g_tree_remove().
Increments the reference count of @tree by one.
It is safe to call this function from any thread.
-
the passed in #GTree
@@ -28888,7 +27493,6 @@ If the key does not exist in the #GTree, the function does nothing.
The cost of maintaining a balanced tree while removing a key/value
result in a O(n log(n)) operation where most of the other operations
are O(log(n)).
-
%TRUE if the key was found (prior to 2.8, this function
returned nothing)
@@ -28906,16 +27510,8 @@ are O(log(n)).
- Inserts a new key and value into a #GTree similar to g_tree_insert().
-The difference is that if the key already exists in the #GTree, it gets
-replaced by the new key. If you supplied a @value_destroy_func when
-creating the #GTree, the old value is freed using that function. If you
-supplied a @key_destroy_func when creating the #GTree, the old key is
-freed using that function.
-
-The tree is automatically 'balanced' as new key/value pairs are added,
-so that the distance from the root to every leaf is as small as possible.
-
+ Inserts a new key and value into a #GTree as g_tree_replace_node() does,
+only this function does not return the inserted or set node.
@@ -28944,7 +27540,6 @@ the result of g_tree_search(). If @search_func returns -1, searching
will proceed among the key/value pairs that have a smaller key; if
@search_func returns 1, searching will proceed among the key/value
pairs that have a larger key.
-
the value corresponding to the found key, or %NULL
if the key was not found
@@ -28970,7 +27565,6 @@ pairs that have a larger key.
the key and value destroy functions.
If the key does not exist in the #GTree, the function does nothing.
-
%TRUE if the key was found (prior to 2.8, this function
returned nothing)
@@ -28993,7 +27587,6 @@ If the key does not exist in the #GTree, the function does nothing.
If you just want to visit all nodes in sorted order, use
g_tree_foreach() instead. If you really need to visit nodes in
a different order, consider using an [n-ary tree][glib-N-ary-Trees].
-
@@ -29025,7 +27618,6 @@ be destroyed (if destroy functions were specified) and all
memory allocated by @tree will be released.
It is safe to call this function from any thread.
-
@@ -29038,7 +27630,6 @@ It is safe to call this function from any thread.
Creates a new #GTree.
-
a newly allocated #GTree
@@ -29058,7 +27649,6 @@ It is safe to call this function from any thread.
Creates a new #GTree like g_tree_new() and allows to specify functions
to free the memory allocated for the key and value that get called when
removing the entry from the #GTree.
-
a newly allocated #GTree
@@ -29089,7 +27679,6 @@ removing the entry from the #GTree.
Creates a new #GTree with a comparison function that accepts user data.
See g_tree_new() for more details.
-
a newly allocated #GTree
@@ -29110,7 +27699,6 @@ See g_tree_new() for more details.
This macro can be used to mark a function declaration as unavailable.
It must be placed before the function declaration. Use of a function
that has been annotated with this macros will produce a compiler warning.
-
the major version that introduced the symbol
@@ -29121,7 +27709,6 @@ that has been annotated with this macros will produce a compiler warning.
-
@@ -29130,7 +27717,6 @@ that has been annotated with this macros will produce a compiler warning.
-
@@ -29139,7 +27725,6 @@ that has been annotated with this macros will produce a compiler warning.
-
@@ -29148,7 +27733,6 @@ that has been annotated with this macros will produce a compiler warning.
-
@@ -29161,7 +27745,6 @@ that has been annotated with this macros will produce a compiler warning.
decomposition of a single Unicode character.
This is as defined by Unicode 6.1.
-
@@ -29172,7 +27755,6 @@ a true value. The compiler may use this information for optimizations.
if (G_UNLIKELY (random () == 1))
g_print ("a random one");
]|
-
the expression
@@ -29182,7 +27764,6 @@ if (G_UNLIKELY (random () == 1))
Works like g_mutex_unlock(), but for a lock defined with
#G_LOCK_DEFINE.
-
the name of the lock
@@ -29192,19 +27773,16 @@ if (G_UNLIKELY (random () == 1))
Generic delimiters characters as defined in
[RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]@`.
-
Subcomponent delimiter characters as defined in
[RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
-
Number of microseconds in one second (1 million).
This macro is provided for code readability.
-
@@ -29214,7 +27792,6 @@ Since new unicode versions may add new types here, applications should be ready
to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
See [Unicode Line Breaking Algorithm](http://www.unicode.org/unicode/reports/tr14/).
-
Mandatory Break (BK)
@@ -29354,7 +27931,6 @@ and is interchangeable with #PangoScript.
Note that new types may be added in the future. Applications
should be ready to handle unknown values.
See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
-
a value never returned from g_unichar_get_script()
@@ -29835,7 +28411,6 @@ See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr
These are the possible character classifications from the
Unicode specification.
See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
-
General category "Other, Control" (Cc)
@@ -29930,7 +28505,6 @@ See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Ca
The type of functions to be called when a UNIX fd watch source
triggers.
-
%FALSE if the source should be removed
@@ -30053,12 +28627,12 @@ g_filename_to_uri() if you want to properly convert between
Note that there is no `g_uri_equal ()` function, because comparing
URIs usefully requires scheme-specific knowledge that #GUri does
-not have. For example, `http://example.com/` and
-`http://EXAMPLE.COM:80` have exactly the same meaning according
-to the HTTP specification, and `data:,foo` and
-`data:;base64,Zm9v` resolve to the same thing according to the
-`data:` URI specification.
-
+not have. #GUri can help with normalization if you use the various
+encoded #GUriFlags as well as %G_URI_FLAGS_SCHEME_NORMALIZE however
+it is not comprehensive.
+For example, `data:,foo` and `data:;base64,Zm9v` resolve to the same
+thing according to the `data:` URI specification which GLib does not
+handle.
Gets @uri's authentication parameters, which may contain
`%`-encoding, depending on the flags with which @uri was created.
@@ -30067,7 +28641,6 @@ be %NULL.)
Depending on the URI scheme, g_uri_parse_params() may be useful for
further parsing this information.
-
@uri's authentication parameters.
@@ -30081,7 +28654,6 @@ further parsing this information.
Gets @uri's flags set upon construction.
-
@uri's flags.
@@ -30096,7 +28668,6 @@ further parsing this information.
Gets @uri's fragment, which may contain `%`-encoding, depending on
the flags with which @uri was created.
-
@uri's fragment.
@@ -30118,8 +28689,7 @@ that address, without the brackets around it that are necessary in
the string form of the URI. Note that in this case there may also
be a scope ID attached to the address. Eg, `fe80::1234%``em1` (or
`fe80::1234%``25em1` if the string is still encoded).
-
-
+
@uri's host.
@@ -30134,7 +28704,6 @@ be a scope ID attached to the address. Eg, `fe80::1234%``em1` (or
Gets @uri's password, which may contain `%`-encoding, depending on
the flags with which @uri was created. (If @uri was not created
with %G_URI_FLAGS_HAS_PASSWORD then this will be %NULL.)
-
@uri's password.
@@ -30149,7 +28718,6 @@ with %G_URI_FLAGS_HAS_PASSWORD then this will be %NULL.)
Gets @uri's path, which may contain `%`-encoding, depending on the
flags with which @uri was created.
-
@uri's path.
@@ -30163,7 +28731,6 @@ flags with which @uri was created.
Gets @uri's port.
-
@uri's port, or `-1` if no port was specified.
@@ -30181,7 +28748,6 @@ flags with which @uri was created.
For queries consisting of a series of `name=value` parameters,
#GUriParamsIter or g_uri_parse_params() may be useful.
-
@uri's query.
@@ -30196,7 +28762,6 @@ For queries consisting of a series of `name=value` parameters,
Gets @uri's scheme. Note that this will always be all-lowercase,
regardless of the string or strings that @uri was created from.
-
@uri's scheme.
@@ -30213,7 +28778,6 @@ regardless of the string or strings that @uri was created from.
`%`-encoding, depending on the flags with which @uri was created.
If @uri was not created with %G_URI_FLAGS_HAS_PASSWORD or
%G_URI_FLAGS_HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo().
-
@uri's user.
@@ -30228,7 +28792,6 @@ If @uri was not created with %G_URI_FLAGS_HAS_PASSWORD or
Gets @uri's userinfo, which may contain `%`-encoding, depending on
the flags with which @uri was created.
-
@uri's userinfo.
@@ -30245,9 +28808,8 @@ the flags with which @uri was created.
[relative URI][relative-absolute-uris], resolves it relative to @base_uri.
If the result is not a valid absolute URI, it will be discarded, and an error
returned.
-
- a new #GUri.
+ a new #GUri, or NULL on error.
@@ -30267,7 +28829,6 @@ returned.
Increments the reference count of @uri by one.
-
@uri
@@ -30292,10 +28853,9 @@ URI (according to RFC 3986).
If @uri might contain sensitive details, such as authentication parameters,
or private data in its query string, and the returned string is going to be
logged, then consider using g_uri_to_string_partial() to redact parts.
-
- a string representing @uri, which the caller
- must free.
+ a string representing @uri,
+ which the caller must free.
@@ -30308,10 +28868,9 @@ logged, then consider using g_uri_to_string_partial() to redact parts.
Returns a string representing @uri, subject to the options in
@flags. See g_uri_to_string() and #GUriHideFlags for more details.
-
- a string representing @uri, which the caller
- must free.
+ a string representing
+ @uri, which the caller must free.
@@ -30330,7 +28889,6 @@ logged, then consider using g_uri_to_string_partial() to redact parts.
When the reference count reaches zero, the resources allocated by
@uri are freed
-
@@ -30346,7 +28904,6 @@ When the reference count reaches zero, the resources allocated by
See also g_uri_build_with_user(), which allows specifying the
components of the "userinfo" separately.
-
a new #GUri
@@ -30395,7 +28952,6 @@ coherent with the passed values, in particular use `%`-encoded values with
In contrast to g_uri_build(), this allows specifying the components
of the ‘userinfo’ field separately. Note that @user must be non-%NULL
if either @password or @auth_params is non-%NULL.
-
a new #GUri
@@ -30460,10 +29016,9 @@ portions of a URI.
Though technically incorrect, this will also allow escaping nul
bytes as `%``00`.
-
- an escaped version of @unescaped. The returned
- string should be freed when no longer needed.
+ an escaped version of @unescaped.
+ The returned string should be freed when no longer needed.
@@ -30493,10 +29048,9 @@ escaped. But if you specify characters in @reserved_chars_allowed
they are not escaped. This is useful for the "reserved" characters
in the URI specification, since those are allowed unescaped in some
portions of a URI.
-
- an escaped version of @unescaped. The returned string
-should be freed when no longer needed.
+ an escaped version of @unescaped. The
+returned string should be freed when no longer needed.
@@ -30524,7 +29078,6 @@ If it’s not a valid URI, an error is returned explaining how it’s
See g_uri_split(), and the definition of #GUriFlags, for more
information on the effect of @flags.
-
%TRUE if @uri_string is a valid absolute URI, %FALSE on error.
@@ -30555,7 +29108,6 @@ components of the ‘userinfo’ separately.
%G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set
in @flags.
-
an absolute URI string
@@ -30605,7 +29157,6 @@ of the ‘userinfo’ separately. It otherwise behaves the same.
%G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set
in @flags.
-
an absolute URI string
@@ -30659,7 +29210,6 @@ in @flags.
Splits an URI list conforming to the text/uri-list
mime type defined in RFC 2483 into individual URIs,
discarding any comments. The URIs are not validated.
-
a newly allocated %NULL-terminated list
of strings holding the individual URIs. The array should be freed
@@ -30679,9 +29229,8 @@ discarding any comments. The URIs are not validated.
Parses @uri_string according to @flags. If the result is not a
valid [absolute URI][relative-absolute-uris], it will be discarded, and an
error returned.
-
- a new #GUri.
+ a new #GUri, or NULL on error.
@@ -30720,11 +29269,10 @@ the returned attributes.
If @params cannot be parsed (for example, it contains two @separators
characters in a row), then @error is set and %NULL is returned.
-
- A hash table of
- attribute/value pairs, with both names and values fully-decoded; or %NULL
- on error.
+
+ A hash table of attribute/value pairs, with both names and values
+ fully-decoded; or %NULL on error.
@@ -30762,7 +29310,6 @@ as:
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
]|
Common schemes include `file`, `https`, `svn+ssh`, etc.
-
The ‘scheme’ component of the URI, or
%NULL on error. The returned string should be freed when no longer needed.
@@ -30786,7 +29333,6 @@ Common schemes include `file`, `https`, `svn+ssh`, etc.
Unlike g_uri_parse_scheme(), the returned scheme is normalized to
all-lowercase and does not need to be freed.
-
The ‘scheme’ component of the URI, or
%NULL on error. The returned string is normalized to all-lowercase, and
@@ -30808,9 +29354,9 @@ discarded, and an error returned.
(If @base_uri_string is %NULL, this just returns @uri_ref, or
%NULL if @uri_ref is invalid or not absolute.)
-
- the resolved URI string.
+ the resolved URI string,
+or NULL on error.
@@ -30845,7 +29391,6 @@ Note that the %G_URI_FLAGS_HAS_PASSWORD and
%G_URI_FLAGS_HAS_AUTH_PARAMS @flags are ignored by g_uri_split(),
since it always returns only the full userinfo; use
g_uri_split_with_user() if you want it split up.
-
%TRUE if @uri_ref parsed successfully, %FALSE
on error.
@@ -30904,7 +29449,6 @@ See the documentation for g_uri_split() for more details; this is
mostly a wrapper around that function with simpler arguments.
However, it will return an error if @uri_string is a relative URI,
or does not contain a hostname component.
-
%TRUE if @uri_string parsed successfully,
%FALSE on error.
@@ -30948,7 +29492,6 @@ information on the effect of @flags. Note that @password will only
be parsed out if @flags contains %G_URI_FLAGS_HAS_PASSWORD, and
@auth_params will only be parsed out if @flags contains
%G_URI_FLAGS_HAS_AUTH_PARAMS.
-
%TRUE if @uri_ref parsed successfully, %FALSE
on error.
@@ -31021,11 +29564,10 @@ character in @escaped_string, then that is an error and %NULL will be
returned. This is useful if you want to avoid for instance having a slash
being expanded in an escaped path element, which might confuse pathname
handling.
-
- an unescaped version of @escaped_string or %NULL on
- error (if decoding failed, using %G_URI_ERROR_FAILED error code). The
- returned #GBytes should be unreffed when no longer needed.
+ an unescaped version of @escaped_string
+ or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error
+ code). The returned #GBytes should be unreffed when no longer needed.
@@ -31056,12 +29598,11 @@ escaped path element, which might confuse pathname handling.
Note: `NUL` byte is not accepted in the output, in contrast to
g_uri_unescape_bytes().
-
-
- an unescaped version of @escaped_string or %NULL on error.
-The returned string should be freed when no longer needed. As a
-special case if %NULL is given for @escaped_string, this function
-will return %NULL.
+
+ an unescaped version of @escaped_string,
+or %NULL on error. The returned string should be freed when no longer
+needed. As a special case if %NULL is given for @escaped_string, this
+function will return %NULL.
@@ -31089,10 +29630,9 @@ character appears as an escaped character in @escaped_string, then
that is an error and %NULL will be returned. This is useful if you
want to avoid for instance having a slash being expanded in an
escaped path element, which might confuse pathname handling.
-
-
- an unescaped version of @escaped_string. The returned string
-should be freed when no longer needed.
+
+ an unescaped version of @escaped_string.
+The returned string should be freed when no longer needed.
@@ -31108,9 +29648,8 @@ should be freed when no longer needed.
-
+
Error codes returned by #GUri methods.
-
Generic error if no more specific error is available.
See the error message for details.
@@ -31150,7 +29689,6 @@ When parsing a URI, if you need to choose different flags based on
the type of URI, you can use g_uri_peek_scheme() on the URI string
to check the scheme first, and use that to decide what flags to
parse it with.
-
No flags set.
@@ -31200,7 +29738,6 @@ parse it with.
g_uri_to_string_partial(). Note that %G_URI_HIDE_PASSWORD and
%G_URI_HIDE_AUTH_PARAMS will only work if the #GUri was parsed with
the corresponding flags.
-
No flags set.
@@ -31223,7 +29760,6 @@ the corresponding flags.
Flags modifying the way parameters are handled by g_uri_parse_params() and
#GUriParamsIter.
-
No flags set.
@@ -31248,7 +29784,6 @@ iterate over the attribute/value pairs of a URI query string. #GUriParamsIter
structures are typically allocated on the stack and then initialized with
g_uri_params_iter_init(). See the documentation for g_uri_params_iter_init()
for a usage example.
-
@@ -31297,7 +29832,6 @@ while (g_uri_params_iter_next (&iter, &unowned_attr, &unowned_value,
if (error)
// handle parsing error
]|
-
@@ -31339,7 +29873,6 @@ attribute/value pair.
Note that the same @attribute may be returned multiple times, since URIs
allow repeated attributes.
-
%FALSE if the end of the parameters has been reached or an error was
encountered. %TRUE otherwise.
@@ -31371,7 +29904,6 @@ to retrieve the full path associated to the logical id.
The #GUserDirectory enumeration can be extended at later date. Not
every platform has a directory for every logical id in this
enumeration.
-
the user's Desktop directory
@@ -31416,7 +29948,6 @@ make sure that #GVariantBuilder is valid.
|[
g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_BYTESTRING);
]|
-
a const GVariantType*
@@ -31444,7 +29975,6 @@ initialized with G_VARIANT_DICT_INIT().
g_autoptr(GVariant) variant = get_asv_variant ();
g_auto(GVariantDict) dict = G_VARIANT_DICT_INIT (variant);
]|
-
a GVariant*
@@ -31461,7 +29991,6 @@ type string. If in doubt, use g_variant_type_string_is_valid() to
check if the string is valid.
Since 2.24
-
a well-formed #GVariantType type string
@@ -31474,7 +30003,6 @@ Since 2.24
In order to use this function, you must include string.h yourself,
because this macro may use memmove() and GLib does not include
string.h for you.
-
the va_list variable to place a copy of @ap2 in
@@ -31485,7 +30013,6 @@ string.h for you.
-
@@ -31501,7 +30028,6 @@ If the compiler is configured to warn about the use of deprecated
functions, then using functions that were deprecated in version
%GLIB_VERSION_MIN_REQUIRED or earlier will cause warnings (but
using functions deprecated in later releases will not).
-
@@ -31514,7 +30040,7 @@ value pairs. A #GVariant is also immutable: once it's been created neither
its type nor its content can be modified further.
GVariant is useful whenever data needs to be serialized, for example when
-sending method parameters in DBus, or when saving settings using GSettings.
+sending method parameters in D-Bus, or when saving settings using GSettings.
When creating a new #GVariant, you pass the data you want to store in it
along with a string representing the type of data you wish to pass to it.
@@ -31747,7 +30273,6 @@ bytes. If we were to have other dictionaries of the same type, we
would use more memory for the serialised data and buffer
management for those dictionaries, but the type information would
be shared.
-
Creates a new #GVariant instance.
@@ -31777,7 +30302,6 @@ new_variant = g_variant_new ("(t^as)",
(guint64) some_flags,
some_strings);
]|
-
a new floating #GVariant instance
@@ -31809,7 +30333,6 @@ same as @child_type, if given.
If the @children are floating references (see g_variant_ref_sink()), the
new instance takes ownership of them as if via g_variant_ref_sink().
-
a floating reference to a new #GVariant array
@@ -31834,7 +30357,6 @@ new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new boolean #GVariant instance -- either %TRUE or %FALSE.
-
a floating reference to a new boolean #GVariant instance
@@ -31848,7 +30370,6 @@ new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new byte #GVariant instance.
-
a floating reference to a new byte #GVariant instance
@@ -31867,7 +30388,6 @@ string need not be valid UTF-8.
The nul terminator character at the end of the string is stored in
the array.
-
a floating reference to a new bytestring #GVariant instance
@@ -31887,7 +30407,6 @@ the array.
strings.
If @length is -1 then @strv is %NULL-terminated.
-
a new floating #GVariant instance
@@ -31911,7 +30430,6 @@ non-%NULL. @key must be a value of a basic type (ie: not a container).
If the @key or @value are floating references (see g_variant_ref_sink()),
the new instance takes ownership of them as if via g_variant_ref_sink().
-
a floating reference to a new dictionary entry #GVariant
@@ -31929,7 +30447,6 @@ the new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new double #GVariant instance.
-
a floating reference to a new double #GVariant instance
@@ -31955,7 +30472,6 @@ of a double-check that the form of the serialised data matches the caller's
expectation.
@n_elements must be the length of the @elements array.
-
a floating reference to a new array #GVariant instance
@@ -31989,7 +30505,6 @@ A reference is taken on @bytes.
The data in @bytes must be aligned appropriately for the @type being loaded.
Otherwise this function will internally create a copy of the memory (since
GLib 2.60) or (in older versions) fail and exit the process.
-
a new #GVariant with a floating reference
@@ -32039,7 +30554,6 @@ Note: @data must be backed by memory that is aligned appropriately for the
@type being loaded. Otherwise this function will internally create a copy of
the memory (since GLib 2.60) or (in older versions) fail and exit the
process.
-
a new floating #GVariant of type @type
@@ -32079,7 +30593,6 @@ process.
By convention, handles are indexes into an array of file descriptors
that are sent alongside a D-Bus message. If you're not interacting
with D-Bus, you probably don't need them.
-
a floating reference to a new handle #GVariant instance
@@ -32093,7 +30606,6 @@ with D-Bus, you probably don't need them.
Creates a new int16 #GVariant instance.
-
a floating reference to a new int16 #GVariant instance
@@ -32107,7 +30619,6 @@ with D-Bus, you probably don't need them.
Creates a new int32 #GVariant instance.
-
a floating reference to a new int32 #GVariant instance
@@ -32121,7 +30632,6 @@ with D-Bus, you probably don't need them.
Creates a new int64 #GVariant instance.
-
a floating reference to a new int64 #GVariant instance
@@ -32144,7 +30654,6 @@ of @child.
If @child is a floating reference (see g_variant_ref_sink()), the new
instance takes ownership of @child.
-
a floating reference to a new #GVariant maybe instance
@@ -32164,7 +30673,6 @@ instance takes ownership of @child.
Creates a D-Bus object path #GVariant with the contents of @string.
@string must be a valid D-Bus object path. Use
g_variant_is_object_path() if you're not sure.
-
a floating reference to a new object path #GVariant instance
@@ -32184,7 +30692,6 @@ Each string must be a valid #GVariant object path; see
g_variant_is_object_path().
If @length is -1 then @strv is %NULL-terminated.
-
a new floating #GVariant instance
@@ -32235,7 +30742,6 @@ You may not use this function to return, unmodified, a single
#GVariant pointer from the argument list. ie: @format may not solely
be anything along the lines of "%*", "%?", "\%r", or anything starting
with "%@".
-
a new floating #GVariant instance
@@ -32273,7 +30779,6 @@ returning control to the user that originally provided the pointer.
At this point, the caller will have their own full reference to the
result. This can also be done by adding the result to a container,
or by passing it to another g_variant_new() call.
-
a new, usually floating, #GVariant
@@ -32295,7 +30800,6 @@ or by passing it to another g_variant_new() call.
This is similar to calling g_strdup_printf() and then
g_variant_new_string() but it saves a temporary variable and an
unnecessary copy.
-
a floating reference to a new string
#GVariant instance
@@ -32316,7 +30820,6 @@ unnecessary copy.
Creates a D-Bus type signature #GVariant with the contents of
@string. @string must be a valid D-Bus type signature. Use
g_variant_is_signature() if you're not sure.
-
a floating reference to a new signature #GVariant instance
@@ -32334,7 +30837,6 @@ g_variant_is_signature() if you're not sure.
@string must be valid UTF-8, and must not be %NULL. To encode
potentially-%NULL strings, use g_variant_new() with `ms` as the
[format string][gvariant-format-strings-maybe-types].
-
a floating reference to a new string #GVariant instance
@@ -32351,7 +30853,6 @@ potentially-%NULL strings, use g_variant_new() with `ms` as the
strings.
If @length is -1 then @strv is %NULL-terminated.
-
a new floating #GVariant instance
@@ -32381,7 +30882,6 @@ when it is no longer required.
You must not modify or access @string in any other way after passing
it to this function. It is even possible that @string is immediately
freed.
-
a floating reference to a new string
#GVariant instance
@@ -32403,7 +30903,6 @@ If @n_children is 0 then the unit tuple is constructed.
If the @children are floating references (see g_variant_ref_sink()), the
new instance takes ownership of them as if via g_variant_ref_sink().
-
a floating reference to a new #GVariant tuple
@@ -32423,7 +30922,6 @@ new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new uint16 #GVariant instance.
-
a floating reference to a new uint16 #GVariant instance
@@ -32437,7 +30935,6 @@ new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new uint32 #GVariant instance.
-
a floating reference to a new uint32 #GVariant instance
@@ -32451,7 +30948,6 @@ new instance takes ownership of them as if via g_variant_ref_sink().
Creates a new uint64 #GVariant instance.
-
a floating reference to a new uint64 #GVariant instance
@@ -32500,7 +30996,6 @@ returning control to the user that originally provided the pointer.
At this point, the caller will have their own full reference to the
result. This can also be done by adding the result to a container,
or by passing it to another g_variant_new() call.
-
a new, usually floating, #GVariant
@@ -32527,7 +31022,6 @@ variant containing the original value.
If @child is a floating reference (see g_variant_ref_sink()), the new
instance takes ownership of @child.
-
a floating reference to a new variant #GVariant instance
@@ -32551,7 +31045,6 @@ contain multi-byte numeric data. That include strings, booleans,
bytes and containers containing only these things (recursively).
The returned value is always in normal form and is marked as trusted.
-
the byteswapped form of @value
@@ -32578,7 +31071,6 @@ check fails then a g_critical() is printed and %FALSE is returned.
This function is meant to be used by functions that wish to provide
varargs accessors to #GVariant values of uncertain values (eg:
g_variant_lookup() or g_menu_model_get_item_attribute()).
-
%TRUE if @format_string is safe to use
@@ -32600,7 +31092,6 @@ g_variant_lookup() or g_menu_model_get_item_attribute()).
Classifies @value according to its top-level type.
-
the #GVariantClass of @value
@@ -32632,7 +31123,6 @@ the handling of incomparable values (ie: NaN) is undefined.
If you only require an equality comparison, g_variant_equal() is more
general.
-
negative value if a < b;
zero if a = b;
@@ -32655,7 +31145,6 @@ general.
returning a constant string, the string is duplicated.
The return value must be freed using g_free().
-
a newly allocated string
@@ -32686,7 +31175,6 @@ stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of strings
@@ -32715,7 +31203,6 @@ is stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of strings
@@ -32740,7 +31227,6 @@ a constant string, the string is duplicated.
The string will always be UTF-8 encoded.
The return value must be freed using g_free().
-
a newly allocated string, UTF-8 encoded
@@ -32767,7 +31253,6 @@ is stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of strings
@@ -32790,7 +31275,6 @@ For an empty array, @length will be set to 0 and a pointer to a
The types of @one and @two are #gconstpointer only to allow use of
this function with #GHashTable. They must each be a #GVariant.
-
%TRUE if @one and @two are equal
@@ -32823,7 +31307,6 @@ extended in the future.
the values and also determines if the values are copied or borrowed,
see the section on
[GVariant format strings][gvariant-format-strings-pointers].
-
@@ -32847,7 +31330,6 @@ see the section on
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_BOOLEAN.
-
%TRUE or %FALSE
@@ -32864,7 +31346,6 @@ other than %G_VARIANT_TYPE_BOOLEAN.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_BYTE.
-
a #guint8
@@ -32895,7 +31376,6 @@ It is an error to call this function with a @value that is not an
array of bytes.
The return value remains valid as long as @value exists.
-
the constant string
@@ -32921,7 +31401,6 @@ stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of constant strings
@@ -32949,7 +31428,6 @@ g_variant_get().
the values and also determines if the values are copied or borrowed,
see the section on
[GVariant format strings][gvariant-format-strings-pointers].
-
@@ -32996,7 +31474,6 @@ instead of further nested children. #GVariant is guaranteed to handle
nesting up to at least 64 levels.
This function is O(1).
-
the child at the specified index
@@ -33038,7 +31515,6 @@ implicitly (for instance "the file always contains a
%G_VARIANT_TYPE_VARIANT and it is always in little-endian order") or
explicitly (by storing the type and/or endianness in addition to the
serialised data).
-
the serialised form of @value, or %NULL
@@ -33055,7 +31531,6 @@ serialised data).
The semantics of this function are exactly the same as
g_variant_get_data(), except that the returned #GBytes holds
a reference to the variant data.
-
A new #GBytes representing the variant data
@@ -33072,7 +31547,6 @@ a reference to the variant data.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_DOUBLE.
-
a #gdouble
@@ -33111,7 +31585,6 @@ expectation.
@n_elements, which must be non-%NULL, is set equal to the number of
items in the array.
-
a pointer to
the fixed array
@@ -33143,7 +31616,6 @@ than %G_VARIANT_TYPE_HANDLE.
By convention, handles are indexes into an array of file descriptors
that are sent alongside a D-Bus message. If you're not interacting
with D-Bus, you probably don't need them.
-
a #gint32
@@ -33160,7 +31632,6 @@ with D-Bus, you probably don't need them.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_INT16.
-
a #gint16
@@ -33177,7 +31648,6 @@ other than %G_VARIANT_TYPE_INT16.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_INT32.
-
a #gint32
@@ -33194,7 +31664,6 @@ other than %G_VARIANT_TYPE_INT32.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_INT64.
-
a #gint64
@@ -33209,7 +31678,6 @@ other than %G_VARIANT_TYPE_INT64.
Given a maybe-typed #GVariant instance, extract its value. If the
value is Nothing, then this function returns %NULL.
-
the contents of @value, or %NULL
@@ -33245,7 +31713,6 @@ the newly created #GVariant will be returned with a single non-floating
reference. Typically, g_variant_take_ref() should be called on the return
value from this function to guarantee ownership of a single non-floating
reference to it.
-
a trusted #GVariant
@@ -33268,7 +31735,6 @@ is stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of constant strings
@@ -33298,7 +31764,6 @@ already been calculated (ie: this function has been called before)
then this function is O(1). Otherwise, the size is calculated, an
operation which is approximately O(n) in the number of values
involved.
-
the serialised size of @value
@@ -33329,7 +31794,6 @@ It is an error to call this function with a @value of any type
other than those three.
The return value remains valid as long as @value exists.
-
the constant string, UTF-8 encoded
@@ -33357,7 +31821,6 @@ is stored there. In any case, the resulting array will be
For an empty array, @length will be set to 0 and a pointer to a
%NULL pointer will be returned.
-
an array of constant strings
@@ -33380,7 +31843,6 @@ For an empty array, @length will be set to 0 and a pointer to a
The return value is valid for the lifetime of @value and must not
be freed.
-
a #GVariantType
@@ -33396,7 +31858,6 @@ be freed.
Returns the type string of @value. Unlike the result of calling
g_variant_type_peek_string(), this string is nul-terminated. This
string belongs to #GVariant and must not be freed.
-
the type string for the type of @value
@@ -33413,7 +31874,6 @@ string belongs to #GVariant and must not be freed.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_UINT16.
-
a #guint16
@@ -33430,7 +31890,6 @@ other than %G_VARIANT_TYPE_UINT16.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_UINT32.
-
a #guint32
@@ -33447,7 +31906,6 @@ other than %G_VARIANT_TYPE_UINT32.
It is an error to call this function with a @value of any type
other than %G_VARIANT_TYPE_UINT64.
-
a #guint64
@@ -33484,7 +31942,6 @@ varargs call by the user.
the values and also determines if the values are copied or borrowed,
see the section on
[GVariant format strings][gvariant-format-strings-pointers].
-
@@ -33511,7 +31968,6 @@ see the section on
Unboxes @value. The result is the #GVariant instance that was
contained in @value.
-
the item contained in the variant
@@ -33533,7 +31989,6 @@ function as a basis for building protocols or file formats.
The type of @value is #gconstpointer only to allow use of this
function with #GHashTable. @value must be a #GVariant.
-
a hash value corresponding to @value
@@ -33547,7 +32002,6 @@ function with #GHashTable. @value must be a #GVariant.
Checks if @value is a container.
-
%TRUE if @value is a container
@@ -33569,7 +32023,6 @@ or g_variant_take_ref().
See g_variant_ref_sink() for more information about floating reference
counts.
-
whether @value is floating
@@ -33595,7 +32048,6 @@ this function will immediately return %TRUE.
There may be implementation specific restrictions on deeply nested values.
GVariant is guaranteed to handle nesting up to at least 64 levels.
-
%TRUE if @value is in normal form
@@ -33609,7 +32061,6 @@ GVariant is guaranteed to handle nesting up to at least 64 levels.
Checks if a value has a type matching the provided type.
-
%TRUE if the type of @value matches @type
@@ -33634,7 +32085,6 @@ need it.
A reference is taken to @value and will be released only when
g_variant_iter_free() is called.
-
a new heap-allocated #GVariantIter
@@ -33661,7 +32111,6 @@ see the section on
This function is currently implemented with a linear scan. If you
plan to do many lookups then #GVariantDict may be more efficient.
-
%TRUE if a value was unpacked
@@ -33707,7 +32156,6 @@ value will have this type.
This function is currently implemented with a linear scan. If you
plan to do many lookups then #GVariantDict may be more efficient.
-
the value of the dictionary key, or %NULL
@@ -33739,7 +32187,6 @@ array. For tuples it is the number of tuple items (which depends
only on the type). For dictionary entries, it is always 2
This function is O(1).
-
the number of children in the container
@@ -33758,7 +32205,6 @@ The format is described [here][gvariant-text].
If @type_annotate is %TRUE, then type information is included in
the output.
-
a newly-allocated string holding the result.
@@ -33780,7 +32226,6 @@ the output.
If @string is non-%NULL then it is appended to and returned. Else,
a new empty #GString is allocated and it is returned.
-
a #GString containing the string
@@ -33803,7 +32248,6 @@ a new empty #GString is allocated and it is returned.
Increases the reference count of @value.
-
the same @value
@@ -33838,7 +32282,6 @@ at that point and the caller will not need to unreference it. This
makes certain common styles of programming much easier while still
maintaining normal refcounting semantics in situations where values
are not floating.
-
the same @value
@@ -33863,7 +32306,6 @@ serialised variant successfully, its type and (if the destination
machine might be different) its endianness must also be available.
This function is approximately O(n) in the size of @data.
-
@@ -33911,7 +32353,6 @@ reference. If g_variant_take_ref() runs first then the result will
be that the floating reference is converted to a hard reference and
an additional reference on top of that one is added. It is best to
avoid this situation.
-
the same @value
@@ -33926,7 +32367,6 @@ avoid this situation.
Decreases the reference count of @value. When its reference count
drops to 0, the memory used by the variant is freed.
-
@@ -33946,7 +32386,6 @@ A valid object path starts with `/` followed by zero or more
sequences of characters separated by `/` characters. Each sequence
must contain only the characters `[A-Z][a-z][0-9]_`. No sequence
(including the one following the final `/` character) may be empty.
-
%TRUE if @string is a D-Bus object path
@@ -33965,7 +32404,6 @@ passing it to g_variant_new_signature().
D-Bus type signatures consist of zero or more definite #GVariantType
strings in sequence.
-
%TRUE if @string is a D-Bus type signature
@@ -34013,7 +32451,6 @@ produced by g_variant_print()".
There may be implementation specific restrictions on deeply nested values,
which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is
guaranteed to handle nesting up to at least 64 levels.
-
a non-floating reference to a #GVariant, or %NULL
@@ -34067,7 +32504,6 @@ The format of the message may change in a future version.
If @source_str was not nul-terminated when you passed it to
g_variant_parse() then you must add nul termination before using this
function.
-
the printed message
@@ -34104,11 +32540,8 @@ following functions.
#GVariantBuilder is not threadsafe in any way. Do not attempt to
access it from more than one thread.
-
-
-
@@ -34137,7 +32570,6 @@ any other call.
In most cases it is easier to place a #GVariantBuilder directly on
the stack of the calling function and initialise it with
g_variant_builder_init().
-
a #GVariantBuilder
@@ -34180,7 +32612,6 @@ make_pointless_dictionary (void)
return g_variant_builder_end (&builder);
}
]|
-
@@ -34226,7 +32657,6 @@ make_pointless_dictionary (void)
return g_variant_builder_end (&builder);
}
]|
-
@@ -34256,7 +32686,6 @@ a variant, etc.
If @value is a floating reference (see g_variant_ref_sink()),
the @builder instance takes ownership of @value.
-
@@ -34286,7 +32715,6 @@ This function leaves the #GVariantBuilder structure set to all-zeros.
It is valid to call this function on either an initialised
#GVariantBuilder or one that is set to all-zeros but it is not valid
to call this function on uninitialised memory.
-
@@ -34304,7 +32732,6 @@ the most recent call to g_variant_builder_open().
It is an error to call this function in any way that would create an
inconsistent value to be constructed (ie: too few values added to the
subcontainer).
-
@@ -34333,7 +32760,6 @@ required). It is also an error to call this function if the builder
was created with an indefinite array or maybe type and no children
have been added; in this case it is impossible to infer the type of
the empty array.
-
a new, floating, #GVariant
@@ -34375,7 +32801,6 @@ with this function. If you ever pass a reference to a
should assume that the person receiving that reference may try to use
reference counting; you should use g_variant_builder_new() instead of
this function.
-
@@ -34427,7 +32852,6 @@ g_variant_builder_close (&builder);
output = g_variant_builder_end (&builder);
]|
-
@@ -34447,7 +32871,6 @@ output = g_variant_builder_end (&builder);
Don't call this on stack-allocated #GVariantBuilder instances or bad
things will happen.
-
a new reference to @builder
@@ -34467,7 +32890,6 @@ associated with the #GVariantBuilder.
Don't call this on stack-allocated #GVariantBuilder instances or bad
things will happen.
-
@@ -34481,7 +32903,6 @@ things will happen.
The range of possible top-level types of #GVariant instances.
-
The #GVariant is a boolean.
@@ -34629,11 +33050,8 @@ key is not found. Each returns the new dictionary as a floating
return result;
}
]|
-
-
-
@@ -34663,7 +33081,6 @@ In some cases it may be easier to place a #GVariantDict directly on
the stack of the calling function and initialise it with
g_variant_dict_init(). This is particularly useful when you are
using #GVariantDict to construct a #GVariant.
-
a #GVariantDict
@@ -34691,7 +33108,6 @@ It is valid to call this function on either an initialised
#GVariantDict or one that was previously cleared by an earlier call
to g_variant_dict_clear() but it is not valid to call this function
on uninitialised memory.
-
@@ -34704,7 +33120,6 @@ on uninitialised memory.
Checks if @key exists in @dict.
-
%TRUE if @key is in @dict
@@ -34728,7 +33143,6 @@ It is not permissible to use @dict in any way after this call except
for reference counting operations (in the case of a heap-allocated
#GVariantDict) or by reinitialising it with g_variant_dict_init() (in
the case of stack-allocated).
-
a new, floating, #GVariant
@@ -34757,7 +33171,6 @@ pass a reference to a #GVariantDict outside of the control of your
own code then you should assume that the person receiving that
reference may try to use reference counting; you should use
g_variant_dict_new() instead of this function.
-
@@ -34777,7 +33190,6 @@ g_variant_dict_new() instead of this function.
This call is a convenience wrapper that is exactly equivalent to
calling g_variant_new() followed by g_variant_dict_insert_value().
-
@@ -34804,7 +33216,6 @@ calling g_variant_new() followed by g_variant_dict_insert_value().
Inserts (or replaces) a key in a #GVariantDict.
@value is consumed if it is floating.
-
@@ -34834,7 +33245,6 @@ value and returns %TRUE.
@format_string determines the C types that are used for unpacking the
values and also determines if the values are copied or borrowed, see the
section on [GVariant format strings][gvariant-format-strings-pointers].
-
%TRUE if a value was unpacked
@@ -34870,7 +33280,6 @@ returned.
If the key is found and the value has the correct type, it is
returned. If @expected_type was specified then any non-%NULL return
value will have this type.
-
the value of the dictionary key, or %NULL
@@ -34895,7 +33304,6 @@ value will have this type.
Don't call this on stack-allocated #GVariantDict instances or bad
things will happen.
-
a new reference to @dict
@@ -34909,7 +33317,6 @@ things will happen.
Removes a key and its associated value from a #GVariantDict.
-
%TRUE if the key was found and removed
@@ -34933,7 +33340,6 @@ associated with the #GVariantDict.
Don't call this on stack-allocated #GVariantDict instances or bad
things will happen.
-
@@ -34948,7 +33354,6 @@ things will happen.
#GVariantIter is an opaque data structure and can only be accessed
using the following functions.
-
@@ -34965,7 +33370,6 @@ need it.
A reference is taken to the container that @iter is iterating over
and will be related only when g_variant_iter_free() is called.
-
a new heap-allocated #GVariantIter
@@ -34981,7 +33385,6 @@ and will be related only when g_variant_iter_free() is called.
Frees a heap-allocated #GVariantIter. Only call this function on
iterators that were returned by g_variant_iter_new() or
g_variant_iter_copy().
-
@@ -34999,7 +33402,6 @@ ignored.
The iterator remains valid for as long as @value exists, and need not
be freed in any way.
-
the number of items in @value
@@ -35078,7 +33480,6 @@ the values and also determines if the values are copied or borrowed.
See the section on
[GVariant format strings][gvariant-format-strings-pointers].
-
%TRUE if a value was unpacked, or %FALSE if there was no
value
@@ -35105,7 +33506,6 @@ iterating over. This is the total number of items -- not the number
of items remaining.
This function might be useful for preallocation of arrays.
-
the number of children in the container
@@ -35159,7 +33559,6 @@ the values and also determines if the values are copied or borrowed.
See the section on
[GVariant format strings][gvariant-format-strings-pointers].
-
%TRUE if a value was unpacked, or %FALSE if there as no value
@@ -35207,7 +33606,6 @@ Here is an example for iterating with g_variant_iter_next_value():
}
}
]|
-
a #GVariant, or %NULL
@@ -35222,7 +33620,6 @@ Here is an example for iterating with g_variant_iter_next_value():
Error codes returned by parsing text-format GVariants.
-
generic error (unused)
@@ -35309,7 +33706,7 @@ may only appear nested inside of arrays.
Just as in D-Bus, GVariant types are described with strings ("type
strings"). Subject to the differences mentioned above, these strings
-are of the same form as those found in DBus. Note, however: D-Bus
+are of the same form as those found in D-Bus. Note, however: D-Bus
always works in terms of messages and therefore individual type
strings appear nowhere in its interface. Instead, "signatures"
are a concatenation of the strings of the type of each argument in a
@@ -35429,7 +33826,6 @@ the value is any type at all. This is, by definition, a dictionary,
so this type string corresponds to %G_VARIANT_TYPE_DICTIONARY. Note
that, due to the restriction that the key of a dictionary entry must
be a basic type, "{**}" is not a valid type string.
-
Creates a new #GVariantType corresponding to the type string given
by @type_string. It is appropriate to call g_variant_type_free() on
@@ -35437,7 +33833,6 @@ the return value.
It is a programmer error to call this function with an invalid type
string. Use g_variant_type_string_is_valid() if you are unsure.
-
a new #GVariantType
@@ -35454,7 +33849,6 @@ string. Use g_variant_type_string_is_valid() if you are unsure.
type @type.
It is appropriate to call g_variant_type_free() on the return value.
-
a new array #GVariantType
@@ -35473,7 +33867,6 @@ Since 2.24
of type @key and a value of type @value.
It is appropriate to call g_variant_type_free() on the return value.
-
a new dictionary entry #GVariantType
@@ -35496,7 +33889,6 @@ Since 2.24
type @type or Nothing.
It is appropriate to call g_variant_type_free() on the return value.
-
a new maybe #GVariantType
@@ -35517,7 +33909,6 @@ Since 2.24
@items is %NULL-terminated.
It is appropriate to call g_variant_type_free() on the return value.
-
a new tuple #GVariantType
@@ -35540,7 +33931,6 @@ Since 2.24
Makes a copy of a #GVariantType. It is appropriate to call
g_variant_type_free() on the return value. @type may not be %NULL.
-
a new #GVariantType
@@ -35558,7 +33948,6 @@ Since 2.24
Returns a newly-allocated copy of the type string corresponding to
@type. The returned string is nul-terminated. It is appropriate to
call g_free() on the return value.
-
the corresponding type string
@@ -35576,7 +33965,6 @@ Since 2.24
Determines the element type of an array or maybe type.
This function may only be used with array or maybe types.
-
the element type of @type
@@ -35601,7 +33989,6 @@ subtypes, use g_variant_type_is_subtype_of().
The argument types of @type1 and @type2 are only #gconstpointer to
allow use with #GHashTable without function pointer casting. For
both arguments, a valid #GVariantType must be provided.
-
%TRUE if @type1 and @type2 are exactly equal
@@ -35634,7 +34021,6 @@ the key.
This call, together with g_variant_type_next() provides an iterator
interface over tuple and dictionary entry types.
-
the first item type of @type, or %NULL
@@ -35656,7 +34042,6 @@ type constructor functions.
In the case that @type is %NULL, this function does nothing.
Since 2.24
-
@@ -35671,7 +34056,6 @@ Since 2.24
Returns the length of the type string corresponding to the given
@type. This function must be used to determine the valid extent of
the memory region returned by g_variant_type_peek_string().
-
the length of the corresponding type string
@@ -35691,7 +34075,6 @@ Since 2.24
The argument type of @type is only #gconstpointer to allow use with
#GHashTable without function pointer casting. A valid
#GVariantType must be provided.
-
the hash value
@@ -35712,7 +34095,6 @@ type string for @type starts with an 'a'.
This function returns %TRUE for any indefinite type for which every
definite subtype is an array type -- %G_VARIANT_TYPE_ARRAY, for
example.
-
%TRUE if @type is an array type
@@ -35736,7 +34118,6 @@ Only a basic type may be used as the key of a dictionary entry.
This function returns %FALSE for all indefinite types except
%G_VARIANT_TYPE_BASIC.
-
%TRUE if @type is a basic type
@@ -35759,7 +34140,6 @@ entry types plus the variant type.
This function returns %TRUE for any indefinite type for which every
definite subtype is a container -- %G_VARIANT_TYPE_ARRAY, for
example.
-
%TRUE if @type is a container type
@@ -35784,7 +34164,6 @@ this function on the result of g_variant_get_type() will always
result in %TRUE being returned. Calling this function on an
indefinite type like %G_VARIANT_TYPE_ARRAY, however, will result in
%FALSE being returned.
-
%TRUE if @type is definite
@@ -35805,7 +34184,6 @@ true if the type string for @type starts with a '{'.
This function returns %TRUE for any indefinite type for which every
definite subtype is a dictionary entry type --
%G_VARIANT_TYPE_DICT_ENTRY, for example.
-
%TRUE if @type is a dictionary entry type
@@ -35826,7 +34204,6 @@ type string for @type starts with an 'm'.
This function returns %TRUE for any indefinite type for which every
definite subtype is a maybe type -- %G_VARIANT_TYPE_MAYBE, for
example.
-
%TRUE if @type is a maybe type
@@ -35846,7 +34223,6 @@ Since 2.24
This function returns %TRUE if @type is a subtype of @supertype. All
types are considered to be subtypes of themselves. Aside from that,
only indefinite types can have subtypes.
-
%TRUE if @type is a subtype of @supertype
@@ -35872,7 +34248,6 @@ type string for @type starts with a '(' or if @type is
This function returns %TRUE for any indefinite type for which every
definite subtype is a tuple type -- %G_VARIANT_TYPE_TUPLE, for
example.
-
%TRUE if @type is a tuple type
@@ -35888,7 +34263,6 @@ Since 2.24
Determines if the given @type is the variant type.
-
%TRUE if @type is the variant type
@@ -35908,7 +34282,6 @@ Since 2.24
This function may only be used with a dictionary entry type. Other
than the additional restriction, this call is equivalent to
g_variant_type_first().
-
the key type of the dictionary entry
@@ -35932,7 +34305,6 @@ but must not be used with the generic tuple type
In the case of a dictionary entry type, this function will always
return 2.
-
the number of items in @type
@@ -35958,7 +34330,6 @@ returns the value type. If called on the value type of a dictionary
entry then this call returns %NULL.
For tuples, %NULL is returned when @type is the last item in a tuple.
-
the next #GVariantType after @type, or %NULL
@@ -35978,7 +34349,6 @@ result is not nul-terminated; in order to determine its length you
must call g_variant_type_get_string_length().
To get a nul-terminated string, see g_variant_type_dup_string().
-
the corresponding type string (not nul-terminated)
@@ -35996,7 +34366,6 @@ Since 2.24
Determines the value type of a dictionary entry type.
This function may only be used with a dictionary entry type.
-
the value type of the dictionary entry
@@ -36011,7 +34380,6 @@ Since 2.24
-
@@ -36022,7 +34390,6 @@ Since 2.24
-
@@ -36036,7 +34403,6 @@ Since 2.24
Checks if @type_string is a valid GVariant type string. This call is
equivalent to calling g_variant_type_string_scan() and confirming
that the following character is a nul terminator.
-
%TRUE if @type_string is exactly one valid type string
@@ -36064,7 +34430,6 @@ string does not end before @limit then %FALSE is returned.
For the simple case of checking if a string is a valid type string,
see g_variant_type_string_is_valid().
-
%TRUE if a valid type string was found
@@ -36089,7 +34454,6 @@ see g_variant_type_string_is_valid().
Declares a type of function which takes no arguments
and has no return value. It is used to specify the type
function passed to g_atexit().
-
@@ -36099,7 +34463,6 @@ function passed to g_atexit().
the actual DLL name that the code being compiled will be included in.
On non-Windows platforms, expands to nothing.
-
empty or "static"
@@ -36113,7 +34476,6 @@ On non-Windows platforms, expands to nothing.
-
@@ -36129,7 +34491,6 @@ Windows. Software that needs to handle file permissions on Windows
more exactly should use the Win32 API.
See your C library manual for more details about access().
-
zero if the pathname refers to an existing file system
object that has all the tested permissions, or -1 otherwise
@@ -36173,7 +34534,6 @@ Thus it provides the same advantages and pitfalls as alloca():
Stack space allocated with alloca() in the same scope as a variable sized array
will be freed together with the variable sized array upon exit of that scope, and
not upon exit of the enclosing function scope.
-
number of bytes to allocate.
@@ -36305,7 +34665,6 @@ size automatically if necessary.
g_array_append_val() is a macro which uses a reference to the value
parameter @v. This means that you cannot use it with literal values
such as "27". You must use variables.
-
a #GArray
@@ -36341,7 +34700,6 @@ This example reads from and writes to an array of integers:
g_print ("Int at index 1 is %u; decrementing it\n", *my_int);
*my_int = *my_int - 1;
]|
-
a #GArray
@@ -36360,7 +34718,6 @@ This example reads from and writes to an array of integers:
g_array_insert_val() is a macro which uses a reference to the value
parameter @v. This means that you cannot use it with literal values
such as "27". You must use variables.
-
a #GArray
@@ -36384,7 +34741,6 @@ the new element.
g_array_prepend_val() is a macro which uses a reference to the value
parameter @v. This means that you cannot use it with literal values
such as "27". You must use variables.
-
a #GArray
@@ -36515,7 +34871,6 @@ An example using a #GPtrArray:
Determines the numeric value of a character as a decimal digit.
Differs from g_unichar_digit_value() because it takes a char, so
there's no worry about sign extension if characters are signed.
-
If @c is a decimal digit (according to g_ascii_isdigit()),
its numeric value. Otherwise, -1.
@@ -36538,7 +34893,6 @@ the string back using g_ascii_strtod() gives the same machine-number
guaranteed that the size of the resulting string will never
be larger than @G_ASCII_DTOSTR_BUF_SIZE bytes, including the terminating
nul character, which is always added.
-
The pointer to the buffer with the converted string.
@@ -36568,7 +34922,6 @@ The returned buffer is guaranteed to be nul-terminated.
If you just want to want to serialize the value into a
string, use g_ascii_dtostr().
-
The pointer to the buffer with the converted string.
@@ -36602,7 +34955,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36618,7 +34970,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36634,7 +34985,6 @@ locale, returning %FALSE for all non-ASCII characters. Also,
unlike the standard library function, this takes a char, not
an int, so don't call it on %EOF, but no need to cast to #guchar
before passing a possibly non-ASCII character in.
-
any character
@@ -36647,7 +34997,6 @@ before passing a possibly non-ASCII character in.
Unlike the standard C library isdigit() function, this takes
a char, not an int, so don't call it on %EOF, but no need to
cast to #guchar before passing a possibly non-ASCII character in.
-
any character
@@ -36663,7 +35012,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36679,7 +35027,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to worry about casting
to #guchar before passing a possibly non-ASCII character in.
-
any character
@@ -36695,7 +35042,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36711,7 +35057,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36727,7 +35072,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to cast to #guchar before
passing a possibly non-ASCII character in.
-
any character
@@ -36743,7 +35087,6 @@ returning %FALSE for all non-ASCII characters. Also, unlike
the standard library function, this takes a char, not an int,
so don't call it on %EOF, but no need to worry about casting
to #guchar before passing a possibly non-ASCII character in.
-
any character
@@ -36756,7 +35099,6 @@ to #guchar before passing a possibly non-ASCII character in.
Unlike the standard C library isxdigit() function, this takes
a char, not an int, so don't call it on %EOF, but no need to
cast to #guchar before passing a possibly non-ASCII character in.
-
any character
@@ -36779,7 +35121,6 @@ characters include all ASCII letters. If you compare two CP932
strings using this function, you will get false matches.
Both @s1 and @s2 must be non-%NULL.
-
0 if the strings match, a negative value if @s1 < @s2,
or a positive value if @s1 > @s2.
@@ -36798,7 +35139,6 @@ Both @s1 and @s2 must be non-%NULL.
Converts all upper case ASCII letters to lower case ASCII letters.
-
a newly-allocated string, with all the upper case
characters in @str converted to lower case, with semantics that
@@ -36839,7 +35179,6 @@ bounds - %G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS.
See g_ascii_strtoll() if you have more complex needs such as
parsing a string which starts with a number, but then has other
characters.
-
%TRUE if @str was a number, otherwise %FALSE.
@@ -36890,7 +35229,6 @@ bounds - %G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS.
See g_ascii_strtoull() if you have more complex needs such as
parsing a string which starts with a number, but then has other
characters.
-
%TRUE if @str was a number, otherwise %FALSE.
@@ -36929,7 +35267,6 @@ characters as if they are not letters.
The same warning as in g_ascii_strcasecmp() applies: Use this
function only on strings known to be in encodings where bytes
corresponding to ASCII letters always represent themselves.
-
0 if the strings match, a negative value if @s1 < @s2,
or a positive value if @s1 > @s2.
@@ -36974,7 +35311,6 @@ zero is returned and %ERANGE is stored in %errno.
This function resets %errno before calling strtod() so that
you can reliably detect overflow and underflow.
-
the #gdouble value.
@@ -37009,7 +35345,6 @@ If the base is outside the valid range, zero is returned, and
`EINVAL` is stored in `errno`. If the
string conversion fails, zero is returned, and @endptr returns @nptr
(if @endptr is non-%NULL).
-
the #gint64 value or zero on error.
@@ -37053,7 +35388,6 @@ If the base is outside the valid range, zero is returned, and
`EINVAL` is stored in `errno`.
If the string conversion fails, zero is returned, and @endptr returns
@nptr (if @endptr is non-%NULL).
-
the #guint64 value or zero on error.
@@ -37076,7 +35410,6 @@ If the string conversion fails, zero is returned, and @endptr returns
Converts all lower case ASCII letters to upper case ASCII letters.
-
a newly allocated string, with all the lower case
characters in @str converted to upper case, with semantics that
@@ -37105,7 +35438,6 @@ letters in a particular character set. Also unlike the standard
library function, this takes and returns a char, not an int, so
don't call it on %EOF but no need to worry about casting to #guchar
before passing a possibly non-ASCII character in.
-
the result of converting @c to lower case. If @c is
not an ASCII upper case letter, @c is returned unchanged.
@@ -37128,7 +35460,6 @@ letters in a particular character set. Also unlike the standard
library function, this takes and returns a char, not an int, so
don't call it on %EOF but no need to worry about casting to #guchar
before passing a possibly non-ASCII character in.
-
the result of converting @c to upper case. If @c is not
an ASCII lower case letter, @c is returned unchanged.
@@ -37146,7 +35477,6 @@ before passing a possibly non-ASCII character in.
digit. Differs from g_unichar_xdigit_value() because it takes
a char, so there's no worry about sign extension if characters
are signed.
-
If @c is a hex digit (according to g_ascii_isxdigit()),
its numeric value. Otherwise, -1.
@@ -37170,7 +35500,6 @@ not depend on any side effects from @expr. Similarly, it must not be used
in unit tests, otherwise the unit tests will be ineffective if compiled with
`G_DISABLE_ASSERT`. Use g_assert_true() and related macros in unit tests
instead.
-
the expression to check
@@ -37184,7 +35513,6 @@ The effect of `g_assert_cmpfloat (n1, op, n2)` is
the same as `g_assert_true (n1 op n2)`. The advantage
of this macro is that it can produce a message that includes the
actual values of @n1 and @n2.
-
a floating point number
@@ -37205,7 +35533,6 @@ The effect of `g_assert_cmpfloat_with_epsilon (n1, n2, epsilon)` is
the same as `g_assert_true (abs (n1 - n2) < epsilon)`. The advantage
of this macro is that it can produce a message that includes the
actual values of @n1 and @n2.
-
a floating point number
@@ -37224,7 +35551,6 @@ actual values of @n1 and @n2.
This is a variant of g_assert_cmpuint() that displays the numbers
in hexadecimal notation in the message.
-
an unsigned integer
@@ -37245,7 +35571,6 @@ The effect of `g_assert_cmpint (n1, op, n2)` is
the same as `g_assert_true (n1 op n2)`. The advantage
of this macro is that it can produce a message that includes the
actual values of @n1 and @n2.
-
an integer
@@ -37274,7 +35599,6 @@ includes the actual values of @l1 and @l2.
|[<!-- language="C" -->
g_assert_cmpmem (buf->data, buf->len, expected, sizeof (expected));
]|
-
pointer to a buffer
@@ -37304,7 +35628,6 @@ includes the actual values of @s1 and @s2.
|[<!-- language="C" -->
g_assert_cmpstr (mystring, ==, "fubar");
]|
-
a string (may be %NULL)
@@ -37325,7 +35648,6 @@ The effect of `g_assert_cmpuint (n1, op, n2)` is
the same as `g_assert_true (n1 op n2)`. The advantage
of this macro is that it can produce a message that includes the
actual values of @n1 and @n2.
-
an unsigned integer
@@ -37348,7 +35670,6 @@ g_variant_equal().
The effect of `g_assert_cmpvariant (v1, v2)` is the same as
`g_assert_true (g_variant_equal (v1, v2))`. The advantage of this macro is
that it can produce a message that includes the actual values of @v1 and @v2.
-
pointer to a #GVariant
@@ -37371,7 +35692,6 @@ error message and code.
This can only be used to test for a specific error. If you want to
test that @err is set, but don't care what it's set to, just use
`g_assert_nonnull (err)`.
-
a #GError, possibly %NULL
@@ -37396,7 +35716,6 @@ Note that unlike g_assert(), this macro is unaffected by whether
conversely, g_assert() should not be used in tests.
See g_test_set_nonfatal_assertions().
-
the expression to check
@@ -37414,7 +35733,6 @@ will contain the value of `errno` and its human-readable message from
g_strerror().
This macro will clear the value of `errno` before executing @expr.
-
the expression to check
@@ -37428,7 +35746,6 @@ The effect of `g_assert_no_error (err)` is
the same as `g_assert_true (err == NULL)`. The advantage
of this macro is that it can produce a message that includes
the error message and code.
-
a #GError, possibly %NULL
@@ -37447,7 +35764,6 @@ Note that unlike g_assert(), this macro is unaffected by whether
conversely, g_assert() should not be used in tests.
See g_test_set_nonfatal_assertions().
-
the expression to check
@@ -37466,7 +35782,6 @@ Note that unlike g_assert(), this macro is unaffected by whether
conversely, g_assert() should not be used in tests.
See g_test_set_nonfatal_assertions().
-
the expression to check
@@ -37485,7 +35800,6 @@ Note that unlike g_assert(), this macro is unaffected by whether
conversely, g_assert() should not be used in tests.
See g_test_set_nonfatal_assertions().
-
the expression to check
@@ -37493,7 +35807,6 @@ See g_test_set_nonfatal_assertions().
-
@@ -37516,7 +35829,6 @@ See g_test_set_nonfatal_assertions().
-
@@ -37539,7 +35851,6 @@ See g_test_set_nonfatal_assertions().
-
@@ -37574,7 +35885,6 @@ See g_test_set_nonfatal_assertions().
-
@@ -37606,7 +35916,6 @@ See g_test_set_nonfatal_assertions().
-
@@ -37640,7 +35949,6 @@ See g_test_set_nonfatal_assertions().
Internal function used to print messages from the public g_assert() and
g_assert_not_reached() macros.
-
@@ -37742,7 +36050,6 @@ As can be seen from the above, for portability it's best to avoid
calling g_atexit() (or atexit()) except in the main executable of a
program.
It is best to avoid g_atexit().
-
@@ -37762,8 +36069,10 @@ Think of this operation as an atomic version of
This call acts as a full compiler and hardware memory barrier.
Before version 2.30, this function did not return a value
-(but g_atomic_int_exchange_and_add() did, and had the same meaning).
-
+(but g_atomic_int_exchange_and_add() did, and had the same meaning).
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the add, signed
@@ -37786,8 +36095,10 @@ storing the result back in @atomic.
This call acts as a full compiler and hardware memory barrier.
Think of this operation as an atomic version of
-`{ tmp = *atomic; *atomic &= val; return tmp; }`.
-
+`{ tmp = *atomic; *atomic &= val; return tmp; }`.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -37812,8 +36123,10 @@ This compare and exchange is done atomically.
Think of this operation as an atomic version of
`{ if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`.
-This call acts as a full compiler and hardware memory barrier.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
%TRUE if the exchange took place
@@ -37839,8 +36152,10 @@ This call acts as a full compiler and hardware memory barrier.
Think of this operation as an atomic version of
`{ *atomic -= 1; return (*atomic == 0); }`.
-This call acts as a full compiler and hardware memory barrier.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
%TRUE if the resultant value is zero
@@ -37857,7 +36172,6 @@ This call acts as a full compiler and hardware memory barrier.
value of the integer (which it now does). It is retained only for
compatibility reasons. Don't use this function in new code.
Use g_atomic_int_add() instead.
-
the value of @atomic before the add, signed
@@ -37877,8 +36191,10 @@ compatibility reasons. Don't use this function in new code.
Gets the current value of @atomic.
This call acts as a full compiler and hardware
-memory barrier (before the get).
-
+memory barrier (before the get).
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of the integer
@@ -37895,8 +36211,10 @@ memory barrier (before the get).
Think of this operation as an atomic version of `{ *atomic += 1; }`.
-This call acts as a full compiler and hardware memory barrier.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
@@ -37914,8 +36232,10 @@ storing the result back in @atomic.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -37935,8 +36255,10 @@ This call acts as a full compiler and hardware memory barrier.
Sets the value of @atomic to @newval.
This call acts as a full compiler and hardware
-memory barrier (after the set).
-
+memory barrier (after the set).
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
@@ -37958,8 +36280,10 @@ storing the result back in @atomic.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -38018,8 +36342,10 @@ perform the operations normally and then release the lock.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the add, signed
@@ -38042,8 +36368,10 @@ storing the result back in @atomic.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -38068,8 +36396,10 @@ This compare and exchange is done atomically.
Think of this operation as an atomic version of
`{ if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`.
-This call acts as a full compiler and hardware memory barrier.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
%TRUE if the exchange took place
@@ -38093,8 +36423,10 @@ This call acts as a full compiler and hardware memory barrier.
Gets the current value of @atomic.
This call acts as a full compiler and hardware
-memory barrier (before the get).
-
+memory barrier (before the get).
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of the pointer
@@ -38113,8 +36445,10 @@ storing the result back in @atomic.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -38134,8 +36468,10 @@ This call acts as a full compiler and hardware memory barrier.
Sets the value of @atomic to @newval.
This call acts as a full compiler and hardware
-memory barrier (after the set).
-
+memory barrier (after the set).
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
@@ -38157,8 +36493,10 @@ storing the result back in @atomic.
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.
-
+This call acts as a full compiler and hardware memory barrier.
+
+While @atomic has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
the value of @atomic before the operation, unsigned
@@ -38176,7 +36514,6 @@ This call acts as a full compiler and hardware memory barrier.
Atomically acquires a reference on the data pointed by @mem_block.
-
a pointer to the data,
with its reference count increased
@@ -38198,7 +36535,6 @@ zero.
The allocated data is guaranteed to be suitably aligned for any
built-in type.
-
a pointer to the allocated memory
@@ -38221,7 +36557,6 @@ zero.
The allocated data is guaranteed to be suitably aligned for any
built-in type.
-
a pointer to the allocated memory
@@ -38237,7 +36572,6 @@ built-in type.
Allocates a new block of data with atomic reference counting
semantics, and copies @block_size bytes of @mem_block
into it.
-
a pointer to the allocated
memory
@@ -38256,7 +36590,6 @@ into it.
Retrieves the size of the reference counted data pointed by @mem_block.
-
the size of the data, in bytes
@@ -38275,7 +36608,6 @@ data with the size of the given @type.
This macro calls g_atomic_rc_box_alloc() with `sizeof (@type)` and
casts the returned pointer to a pointer of the given @type,
avoiding a type cast in the source code.
-
the type to allocate, typically a structure name
@@ -38290,7 +36622,6 @@ to zero.
This macro calls g_atomic_rc_box_alloc0() with `sizeof (@type)` and
casts the returned pointer to a pointer of the given @type,
avoiding a type cast in the source code.
-
the type to allocate, typically a structure name
@@ -38302,7 +36633,6 @@ avoiding a type cast in the source code.
If the reference was the last one, it will free the
resources allocated for @mem_block.
-
@@ -38319,7 +36649,6 @@ resources allocated for @mem_block.
If the reference was the last one, it will call @clear_func
to clear the contents of @mem_block, and then will free the
resources allocated for @mem_block.
-
@@ -38336,7 +36665,6 @@ resources allocated for @mem_block.
Atomically compares the current value of @arc with @val.
-
%TRUE if the reference count is the same
as the given value
@@ -38355,7 +36683,6 @@ resources allocated for @mem_block.
Atomically decreases the reference count.
-
%TRUE if the reference count reached 0, and %FALSE otherwise
@@ -38369,7 +36696,6 @@ resources allocated for @mem_block.
Atomically increases the reference count.
-
@@ -38382,7 +36708,6 @@ resources allocated for @mem_block.
Initializes a reference count variable.
-
@@ -38415,7 +36740,6 @@ Support for Base64 encoding has been added in GLib 2.12.
Decode a sequence of Base-64 encoded text into binary data. Note
that the returned binary data is not necessarily zero-terminated,
so it should not be used as a character string.
-
newly allocated buffer containing the binary data
@@ -38439,7 +36763,6 @@ so it should not be used as a character string.
Decode a sequence of Base-64 encoded text into binary data
by overwriting the input data.
-
The binary data that @text responds. This pointer
is the same as the input @text.
@@ -38468,7 +36791,6 @@ The output buffer must be large enough to fit all the data that will
be written to it. Since base64 encodes 3 bytes in 4 chars you need
at least: (@len / 4) * 3 + 3 bytes (+ 3 may be needed in case of non-zero
state).
-
The number of bytes of output that was written
@@ -38503,7 +36825,6 @@ state).
Encode a sequence of binary data into its Base-64 stringified
representation.
-
a newly allocated, zero-terminated Base-64
encoded string representing @data. The returned string must
@@ -38531,7 +36852,6 @@ be written to it. It will need up to 4 bytes, or up to 5 bytes if
line-breaking is enabled.
The @out array will not be automatically nul-terminated.
-
The number of bytes of output that was written
@@ -38577,7 +36897,6 @@ the same line. This avoids problems with long lines in the email system.
Note however that it breaks the lines with `LF` characters, not
`CR LF` sequences, so the result cannot be passed directly to SMTP
or certain other protocols.
-
The number of bytes of output that was written
@@ -38621,7 +36940,6 @@ string.
that g_path_get_basename() allocates new memory for the
returned string, unlike this function which returns a pointer
into the argument.
-
the name of the file without any leading
directory components
@@ -38648,7 +36966,6 @@ between 0 and 31 then the result is undefined.
This function accesses @address atomically. All other accesses to
@address must be atomic in order for this function to work
reliably.
-
@@ -38668,7 +36985,6 @@ reliably.
from (but not including) @nth_bit upwards. Bits are numbered
from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63,
usually). To start searching from the 0th bit, set @nth_bit to -1.
-
the index of the first bit set which is higher than @nth_bit, or -1
if no higher bits are set
@@ -38691,7 +37007,6 @@ from (but not including) @nth_bit downwards. Bits are numbered
from 0 (least significant) to sizeof(#gulong) * 8 - 1 (31 or 63,
usually). To start searching from the last bit, set @nth_bit to
-1 or GLIB_SIZEOF_LONG * 8.
-
the index of the first bit set which is lower than @nth_bit, or -1
if no lower bits are set
@@ -38711,7 +37026,6 @@ usually). To start searching from the last bit, set @nth_bit to
Gets the number of bits used to hold @number,
e.g. if @number is 4, 3 bits are needed.
-
the number of bits used to hold @number
@@ -38736,7 +37050,6 @@ between 0 and 31 then the result is undefined.
This function accesses @address atomically. All other accesses to
@address must be atomic in order for this function to work
reliably.
-
%TRUE if the lock was acquired
@@ -38760,7 +37073,6 @@ woken up.
This function accesses @address atomically. All other accesses to
@address must be atomic in order for this function to work
reliably.
-
@@ -38836,7 +37148,6 @@ parameters (reading from left to right) is used.
No attempt is made to force the resulting filename to be an absolute
path. If the first element is a relative path, the result will
be a relative path.
-
a newly-allocated string that must be freed with
g_free().
@@ -38856,7 +37167,6 @@ be a relative path.
Behaves exactly like g_build_filename(), but takes the path elements
as a va_list. This function is mainly meant for language bindings.
-
a newly-allocated string that must be freed
with g_free().
@@ -38877,7 +37187,6 @@ as a va_list. This function is mainly meant for language bindings.
Behaves exactly like g_build_filename(), but takes the path elements
as a string array, instead of varargs. This function is mainly
meant for language bindings.
-
a newly-allocated string that must be freed
with g_free().
@@ -38920,7 +37229,6 @@ of that element.
Other than for determination of the number of leading and trailing
copies of the separator, elements consisting only of copies
of the separator are ignored.
-
a newly-allocated string that must be freed with
g_free().
@@ -38945,7 +37253,6 @@ of the separator are ignored.
Behaves exactly like g_build_path(), but takes the path elements
as a string array, instead of varargs. This function is mainly
meant for language bindings.
-
a newly-allocated string that must be freed
with g_free().
@@ -38970,7 +37277,6 @@ meant for language bindings.
%TRUE it frees the actual byte data. If the reference count of
@array is greater than one, the #GByteArray wrapper is preserved but
the size of @array will be set to zero.
-
the element data if @free_segment is %FALSE, otherwise
%NULL. The element data should be freed using g_free().
@@ -38998,7 +37304,6 @@ will be set to zero.
This is identical to using g_bytes_new_take() and g_byte_array_free()
together.
-
a new immutable #GBytes representing same
byte data that was in the array
@@ -39015,7 +37320,6 @@ together.
Creates a new #GByteArray with a reference count of 1.
-
the new #GByteArray
@@ -39025,8 +37329,11 @@ together.
Create byte array containing the data. The data will be owned by the array
-and will be freed with g_free(), i.e. it could be allocated using g_strdup().
-
+and will be freed with g_free(), i.e. it could be allocated using g_strdup().
+
+Do not use it if @len is greater than %G_MAXUINT. #GByteArray
+stores the length of its data in #guint, which may be shorter than
+#gsize.
a new #GByteArray
@@ -39050,7 +37357,6 @@ and will be freed with g_free(), i.e. it could be allocated using g_strdup().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.
-
the element data, which should be
freed using g_free().
@@ -39075,7 +37381,6 @@ to the caller.
reference count drops to 0, all memory allocated by the array is
released. This function is thread-safe and may be called from any
thread.
-
@@ -39133,7 +37438,6 @@ This function never fails, and will canonicalize file paths even if they don't
exist.
No file system I/O is done.
-
a newly allocated string with the
canonical file path
@@ -39156,7 +37460,6 @@ to use the current working directory
current directory of the process to @path.
See your C library manual for more details about chdir().
-
0 on success, -1 if an error occurred.
@@ -39184,7 +37487,6 @@ of the running library is newer than the version
the running library must be binary compatible with the
version @required_major.required_minor.@required_micro
(same major version.)
-
%NULL if the GLib library is compatible with the
given version, or a string describing the version mismatch.
@@ -39241,7 +37543,6 @@ Support for checksums has been added in GLib 2.16
Gets the length in bytes of digests of type @checksum_type
-
the checksum length, or -1 if @checksum_type is
not supported.
@@ -39275,7 +37576,6 @@ This internally creates a main loop source using
g_child_watch_source_new() and attaches it to the main loop context
using g_source_attach(). You can do these steps manually if you
need greater control.
-
the ID (greater than 0) of the event source.
@@ -39322,7 +37622,6 @@ This internally creates a main loop source using
g_child_watch_source_new() and attaches it to the main loop context
using g_source_attach(). You can do these steps manually if you
need greater control.
-
the ID (greater than 0) of the event source.
@@ -39377,7 +37676,7 @@ due to limitations in POSIX process interfaces:
* the application must not wait for @pid to exit by any other
mechanism, including `waitpid(pid, ...)` or a second child-watch
source for the same @pid
-* the application must not ignore SIGCHILD
+* the application must not ignore `SIGCHLD`
If any of those conditions are not met, this and related APIs will
not work correctly. This can often be diagnosed via a GLib warning
@@ -39385,7 +37684,6 @@ stating that `ECHILD` was received by `waitpid`.
Calling `waitpid` for specific processes other than @pid remains a
valid thing to do.
-
the newly-created child watch source
@@ -39401,7 +37699,6 @@ Windows a handle for a process (which doesn't have to be a child).
If @err or *@err is %NULL, does nothing. Otherwise,
calls g_error_free() on *@err and sets *@err to %NULL.
-
@@ -39417,7 +37714,6 @@ set to zero.
A macro is also included that allows this function to be used without
pointer casts.
-
@@ -39436,7 +37732,6 @@ pointer casts.
Clears a pointer to a #GList, freeing it and, optionally, freeing its elements using @destroy.
@list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing.
-
@@ -39468,7 +37763,6 @@ or calling conventions, so you must ensure that your @destroy function is
compatible with being called as `GDestroyNotify` using the standard calling
convention for the platform that GLib was compiled for; otherwise the program
will experience undefined behaviour.
-
@@ -39488,7 +37782,6 @@ will experience undefined behaviour.
Clears a pointer to a #GSList, freeing it and, optionally, freeing its elements using @destroy.
@slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing.
-
@@ -39513,7 +37806,6 @@ Besides using #GError, there is another major reason to prefer this
function over the call provided by the system; on Unix, it will
attempt to correctly handle %EINTR, which has platform-specific
semantics.
-
%TRUE on success, %FALSE if there was an error.
@@ -39531,10 +37823,11 @@ convenience wrapper for g_checksum_new(), g_checksum_get_string()
and g_checksum_free().
The hexadecimal string returned will be in lower case.
-
-
- the digest of the binary data as a string in hexadecimal.
- The returned string should be freed with g_free() when done using it.
+
+ the digest of the binary data as a
+ string in hexadecimal, or %NULL if g_checksum_new() fails for
+ @checksum_type. The returned string should be freed with g_free() when
+ done using it.
@@ -39554,10 +37847,11 @@ convenience wrapper for g_checksum_new(), g_checksum_get_string()
and g_checksum_free().
The hexadecimal string returned will be in lower case.
-
-
- the digest of the binary data as a string in hexadecimal.
- The returned string should be freed with g_free() when done using it.
+
+ the digest of the binary data as a
+ string in hexadecimal, or %NULL if g_checksum_new() fails for
+ @checksum_type. The returned string should be freed with g_free() when
+ done using it.
@@ -39581,9 +37875,9 @@ The hexadecimal string returned will be in lower case.
Computes the checksum of a string.
The hexadecimal string returned will be in lower case.
-
-
- the checksum as a hexadecimal string. The returned string
+
+ the checksum as a hexadecimal string,
+ or %NULL if g_checksum_new() fails for @checksum_type. The returned string
should be freed with g_free() when done using it.
@@ -39608,7 +37902,6 @@ convenience wrapper for g_hmac_new(), g_hmac_get_string()
and g_hmac_unref().
The hexadecimal string returned will be in lower case.
-
the HMAC of the binary data as a string in hexadecimal.
The returned string should be freed with g_free() when done using it.
@@ -39635,7 +37928,6 @@ convenience wrapper for g_hmac_new(), g_hmac_get_string()
and g_hmac_unref().
The hexadecimal string returned will be in lower case.
-
the HMAC of the binary data as a string in hexadecimal.
The returned string should be freed with g_free() when done using it.
@@ -39672,7 +37964,6 @@ The hexadecimal string returned will be in lower case.
Computes the HMAC for a string.
The hexadecimal string returned will be in lower case.
-
the HMAC as a hexadecimal string.
The returned string should be freed with g_free()
@@ -39813,7 +38104,6 @@ could combine with the base character.)
Using extensions such as "//TRANSLIT" may not work (or may not work
well) on many platforms. Consider using g_str_to_ascii() instead.
-
If the conversion was successful, a newly allocated buffer
@@ -39887,7 +38177,6 @@ g_convert_with_iconv() or g_convert_with_fallback(). (An example of
this is the GNU C converter for CP1255 which does not emit a base
character until it knows that the next character is not a mark that
could combine with the base character.)
-
If the conversion was successful, a newly allocated buffer
@@ -39963,7 +38252,6 @@ specification, which leaves this behaviour implementation defined. Note that
this is the same error code as is returned for an invalid byte sequence in
the input character set. To get defined behaviour for conversion of
unrepresentable characters, use g_convert_with_fallback().
-
If the conversion was successful, a newly allocated buffer
@@ -40042,7 +38330,6 @@ To remove all data elements from a datalist, use g_datalist_clear().
Frees all the data elements of the datalist.
The data elements' destroy functions are called
if they have been set.
-
@@ -40064,7 +38351,6 @@ not be called.
@func can make changes to @datalist, but the iteration will not
reflect changes made during the g_datalist_foreach() call, other
than skipping over elements that are removed.
-
@@ -40086,7 +38372,6 @@ than skipping over elements that are removed.
Gets a data element, using its string identifier. This is slower than
g_datalist_id_get_data() because it compares strings.
-
the data element, or %NULL if it
is not found.
@@ -40106,7 +38391,6 @@ g_datalist_id_get_data() because it compares strings.
Gets flags values packed in together with the datalist.
See g_datalist_set_flags().
-
the flags of the datalist
@@ -40132,7 +38416,6 @@ is not allowed to read or modify the datalist.
This function can be useful to avoid races when multiple
threads are using the same datalist and the same key.
-
the result of calling @dup_func on the value
associated with @key_id in @datalist, or %NULL if not set.
@@ -40160,7 +38443,6 @@ threads are using the same datalist and the same key.
Retrieves the data element corresponding to @key_id.
-
the data element, or %NULL if
it is not found.
@@ -40179,7 +38461,6 @@ threads are using the same datalist and the same key.
Removes an element, using its #GQuark identifier.
-
a datalist.
@@ -40192,7 +38473,6 @@ threads are using the same datalist and the same key.
Removes an element, without calling its destroy notification
function.
-
the data previously stored at @key_id,
or %NULL if none.
@@ -40223,7 +38503,6 @@ the registered destroy notify for it (passed out in @old_destroy).
Its up to the caller to free this as he wishes, which may
or may not include using @old_destroy as sometimes replacement
should not destroy the object in the normal way.
-
%TRUE if the existing value for @key_id was replaced
by @newval, %FALSE otherwise.
@@ -40260,7 +38539,6 @@ should not destroy the object in the normal way.
Sets the data corresponding to the given #GQuark id. Any previous
data with the same key is removed, and its destroy function is
called.
-
a datalist.
@@ -40279,7 +38557,6 @@ called.
function to be called when the element is removed from the datalist.
Any previous data with the same key is removed, and its destroy
function is called.
-
@@ -40310,7 +38587,6 @@ function is called.
Resets the datalist to %NULL. It does not free any memory or call
any destroy functions.
-
@@ -40324,7 +38600,6 @@ any destroy functions.
Removes an element using its string identifier. The data element's
destroy function is called if it has been set.
-
a datalist.
@@ -40336,7 +38611,6 @@ destroy function is called if it has been set.
Removes an element, without calling its destroy notifier.
-
a datalist.
@@ -40348,7 +38622,6 @@ destroy function is called if it has been set.
Sets the data element corresponding to the given string identifier.
-
a datalist.
@@ -40365,7 +38638,6 @@ destroy function is called if it has been set.
Sets the data element corresponding to the given string identifier,
and the function to be called when the data element is removed.
-
a datalist.
@@ -40392,7 +38664,6 @@ a data list without using any additional space. It is
not generally useful except in circumstances where space
is very tight. (It is used in the base #GObject type, for
example.)
-
@@ -40413,7 +38684,6 @@ example.)
Turns off flag values for a data list. See g_datalist_unset_flags()
-
@@ -40435,7 +38705,6 @@ example.)
Destroys the dataset, freeing all memory allocated, and calling any
destroy functions set for data elements.
-
@@ -40455,7 +38724,6 @@ during invocation of this function, it should not be called.
@func can make changes to the dataset, but the iteration will not
reflect changes made during the g_dataset_foreach() call, other
than skipping over elements that are removed.
-
@@ -40476,7 +38744,6 @@ than skipping over elements that are removed.
Gets the data element corresponding to a string.
-
the location identifying the dataset.
@@ -40488,7 +38755,6 @@ than skipping over elements that are removed.
Gets the data element corresponding to a #GQuark.
-
the data element corresponding to
the #GQuark, or %NULL if it is not found.
@@ -40508,7 +38774,6 @@ than skipping over elements that are removed.
Removes a data element from a dataset. The data element's destroy
function is called if it has been set.
-
the location identifying the dataset.
@@ -40521,7 +38786,6 @@ function is called if it has been set.
Removes an element, without calling its destroy notification
function.
-
the data previously stored at @key_id,
or %NULL if none.
@@ -40542,7 +38806,6 @@ function.
Sets the data element associated with the given #GQuark id. Any
previous data with the same key is removed, and its destroy function
is called.
-
the location identifying the dataset.
@@ -40560,7 +38823,6 @@ is called.
the function to call when the data element is destroyed. Any
previous data with the same key is removed, and its destroy function
is called.
-
@@ -40589,7 +38851,6 @@ is called.
Removes a data element corresponding to a string. Its destroy
function is called if it has been set.
-
the location identifying the dataset.
@@ -40601,7 +38862,6 @@ function is called if it has been set.
Removes an element, without calling its destroy notifier.
-
the location identifying the dataset.
@@ -40613,7 +38873,6 @@ function is called if it has been set.
Sets the data corresponding to the given string identifier.
-
the location identifying the dataset.
@@ -40629,7 +38888,6 @@ function is called if it has been set.
Sets the data corresponding to the given string identifier, and the
function to call when the data element is destroyed.
-
the location identifying the dataset.
@@ -40721,277 +38979,7 @@ representation is valid. Sometimes neither is valid. Use the API.
GLib also features #GDateTime which represents a precise time.
-
- Returns the number of days in a month, taking leap
-years into account.
-
-
- number of days in @month during the @year
-
-
-
-
- month
-
-
-
- year
-
-
-
-
-
- Returns the number of weeks in the year, where weeks
-are taken to start on Monday. Will be 52 or 53. The
-date must be valid. (Years always have 52 7-day periods,
-plus 1 or 2 extra days depending on whether it's a leap
-year. This function is basically telling you how many
-Mondays are in the year, i.e. there are 53 Mondays if
-one of the extra days happens to be a Monday.)
-
-
- number of Mondays in the year
-
-
-
-
- a year
-
-
-
-
-
- Returns the number of weeks in the year, where weeks
-are taken to start on Sunday. Will be 52 or 53. The
-date must be valid. (Years always have 52 7-day periods,
-plus 1 or 2 extra days depending on whether it's a leap
-year. This function is basically telling you how many
-Sundays are in the year, i.e. there are 53 Sundays if
-one of the extra days happens to be a Sunday.)
-
-
- the number of weeks in @year
-
-
-
-
- year to count weeks in
-
-
-
-
-
- Returns %TRUE if the year is a leap year.
-
-For the purposes of this function, leap year is every year
-divisible by 4 unless that year is divisible by 100. If it
-is divisible by 100 it would be a leap year only if that year
-is also divisible by 400.
-
-
- %TRUE if the year is a leap year
-
-
-
-
- year to check
-
-
-
-
-
- Generates a printed representation of the date, in a
-[locale][setlocale]-specific way.
-Works just like the platform's C library strftime() function,
-but only accepts date-related formats; time-related formats
-give undefined results. Date must be valid. Unlike strftime()
-(which uses the locale encoding), works on a UTF-8 format
-string and stores a UTF-8 result.
-
-This function does not provide any conversion specifiers in
-addition to those implemented by the platform's C library.
-For example, don't expect that using g_date_strftime() would
-make the \%F provided by the C99 strftime() work on Windows
-where the C library only complies to C89.
-
-
- number of characters written to the buffer, or 0 the buffer was too small
-
-
-
-
- destination buffer
-
-
-
- buffer size
-
-
-
- format string
-
-
-
- valid #GDate
-
-
-
-
-
- A comparison function for #GDateTimes that is suitable
-as a #GCompareFunc. Both #GDateTimes must be non-%NULL.
-
-
- -1, 0 or 1 if @dt1 is less than, equal to or greater
- than @dt2.
-
-
-
-
- first #GDateTime to compare
-
-
-
- second #GDateTime to compare
-
-
-
-
-
- Checks to see if @dt1 and @dt2 are equal.
-
-Equal here means that they represent the same moment after converting
-them to the same time zone.
-
-
- %TRUE if @dt1 and @dt2 are equal
-
-
-
-
- a #GDateTime
-
-
-
- a #GDateTime
-
-
-
-
-
- Hashes @datetime into a #guint, suitable for use within #GHashTable.
-
-
- a #guint containing the hash
-
-
-
-
- a #GDateTime
-
-
-
-
-
- Returns %TRUE if the day of the month is valid (a day is valid if it's
-between 1 and 31 inclusive).
-
-
- %TRUE if the day is valid
-
-
-
-
- day to check
-
-
-
-
-
- Returns %TRUE if the day-month-year triplet forms a valid, existing day
-in the range of days #GDate understands (Year 1 or later, no more than
-a few thousand years in the future).
-
-
- %TRUE if the date is a valid one
-
-
-
-
- day
-
-
-
- month
-
-
-
- year
-
-
-
-
-
- Returns %TRUE if the Julian day is valid. Anything greater than zero
-is basically a valid Julian, though there is a 32-bit limit.
-
-
- %TRUE if the Julian day is valid
-
-
-
-
- Julian day to check
-
-
-
-
-
- Returns %TRUE if the month value is valid. The 12 #GDateMonth
-enumeration values are the only valid months.
-
-
- %TRUE if the month is valid
-
-
-
-
- month
-
-
-
-
-
- Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration
-values are the only valid weekdays.
-
-
- %TRUE if the weekday is valid
-
-
-
-
- weekday
-
-
-
-
-
- Returns %TRUE if the year is valid. Any year greater than 0 is valid,
-though there is a 16-bit limit to what #GDate will understand.
-
-
- %TRUE if the year is valid
-
-
-
-
- year
-
-
-
-
-
+
#GDateTime is a structure that combines a Gregorian date and time
into a single structure. It provides many conversion and methods to
manipulate dates and times. Time precision is provided down to
@@ -41018,12 +39006,215 @@ savings time transitions are either 23 or 25 hours in length).
#GDateTime is available since GLib 2.26.
+
+ Returns the number of days in a month, taking leap
+years into account.
+
+ number of days in @month during the @year
+
+
+
+
+ month
+
+
+
+ year
+
+
+
+
+
+ Returns the number of weeks in the year, where weeks
+are taken to start on Monday. Will be 52 or 53. The
+date must be valid. (Years always have 52 7-day periods,
+plus 1 or 2 extra days depending on whether it's a leap
+year. This function is basically telling you how many
+Mondays are in the year, i.e. there are 53 Mondays if
+one of the extra days happens to be a Monday.)
+
+ number of Mondays in the year
+
+
+
+
+ a year
+
+
+
+
+
+ Returns the number of weeks in the year, where weeks
+are taken to start on Sunday. Will be 52 or 53. The
+date must be valid. (Years always have 52 7-day periods,
+plus 1 or 2 extra days depending on whether it's a leap
+year. This function is basically telling you how many
+Sundays are in the year, i.e. there are 53 Sundays if
+one of the extra days happens to be a Sunday.)
+
+ the number of weeks in @year
+
+
+
+
+ year to count weeks in
+
+
+
+
+
+ Returns %TRUE if the year is a leap year.
+
+For the purposes of this function, leap year is every year
+divisible by 4 unless that year is divisible by 100. If it
+is divisible by 100 it would be a leap year only if that year
+is also divisible by 400.
+
+ %TRUE if the year is a leap year
+
+
+
+
+ year to check
+
+
+
+
+
+ Generates a printed representation of the date, in a
+[locale][setlocale]-specific way.
+Works just like the platform's C library strftime() function,
+but only accepts date-related formats; time-related formats
+give undefined results. Date must be valid. Unlike strftime()
+(which uses the locale encoding), works on a UTF-8 format
+string and stores a UTF-8 result.
+
+This function does not provide any conversion specifiers in
+addition to those implemented by the platform's C library.
+For example, don't expect that using g_date_strftime() would
+make the \%F provided by the C99 strftime() work on Windows
+where the C library only complies to C89.
+
+ number of characters written to the buffer, or 0 the buffer was too small
+
+
+
+
+ destination buffer
+
+
+
+ buffer size
+
+
+
+ format string
+
+
+
+ valid #GDate
+
+
+
+
+
+ Returns %TRUE if the day of the month is valid (a day is valid if it's
+between 1 and 31 inclusive).
+
+ %TRUE if the day is valid
+
+
+
+
+ day to check
+
+
+
+
+
+ Returns %TRUE if the day-month-year triplet forms a valid, existing day
+in the range of days #GDate understands (Year 1 or later, no more than
+a few thousand years in the future).
+
+ %TRUE if the date is a valid one
+
+
+
+
+ day
+
+
+
+ month
+
+
+
+ year
+
+
+
+
+
+ Returns %TRUE if the Julian day is valid. Anything greater than zero
+is basically a valid Julian, though there is a 32-bit limit.
+
+ %TRUE if the Julian day is valid
+
+
+
+
+ Julian day to check
+
+
+
+
+
+ Returns %TRUE if the month value is valid. The 12 #GDateMonth
+enumeration values are the only valid months.
+
+ %TRUE if the month is valid
+
+
+
+
+ month
+
+
+
+
+
+ Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration
+values are the only valid weekdays.
+
+ %TRUE if the weekday is valid
+
+
+
+
+ weekday
+
+
+
+
+
+ Returns %TRUE if the year is valid. Any year greater than 0 is valid,
+though there is a 16-bit limit to what #GDate will understand.
+
+ %TRUE if the year is valid
+
+
+
+
+ year
+
+
+
+
This is a variant of g_dgettext() that allows specifying a locale
category instead of always using `LC_MESSAGES`. See g_dgettext() for
more information about how this functions differs from calling
dcgettext() directly.
-
the translated string for the given locale category
@@ -41077,7 +39268,6 @@ cases the application should call textdomain() after initializing GTK+.
Applications should normally not use this function directly,
but use the _() macro for translations.
-
The translated string
@@ -41106,7 +39296,6 @@ basename, no directory components are allowed. If template is
Note that in contrast to g_mkdtemp() (and mkdtemp()) @tmpl is not
modified, and might thus be a read-only literal string.
-
The actual name used. This string
should be freed with g_free() when not needed any longer and is
@@ -41130,7 +39319,6 @@ keys in a #GHashTable.
This equality function is also appropriate for keys that are integers
stored in pointers, such as `GINT_TO_POINTER (n)`.
-
%TRUE if the two keys match.
@@ -41154,7 +39342,6 @@ when using opaque pointers compared by pointer value as keys in a
This hash function is also appropriate for keys that are integers
stored in pointers, such as `GINT_TO_POINTER (n)`.
-
a hash value corresponding to the key.
@@ -41173,7 +39360,6 @@ translations for the current locale.
See g_dgettext() for details of how this differs from dngettext()
proper.
-
The translated string
@@ -41204,7 +39390,6 @@ proper.
It can be passed to g_hash_table_new() as the @key_equal_func
parameter, when using non-%NULL pointers to doubles as keys in a
#GHashTable.
-
%TRUE if the two keys match.
@@ -41225,7 +39410,6 @@ parameter, when using non-%NULL pointers to doubles as keys in a
It can be passed to g_hash_table_new() as the @hash_func parameter,
It can be passed to g_hash_table_new() as the @hash_func parameter,
when using non-%NULL pointers to doubles as keys in a #GHashTable.
-
a hash value corresponding to the key.
@@ -41251,7 +39435,6 @@ with dgettext() proper.
Applications should normally not use this function directly,
but use the C_() macro for translations with context.
-
The translated string
@@ -41284,7 +39467,6 @@ with dgettext() proper.
This function differs from C_() in that it is not a macro and
thus you may use non-string-literals as context and msgid arguments.
-
The translated string
@@ -41308,7 +39490,6 @@ thus you may use non-string-literals as context and msgid arguments.
Returns the value of the environment variable @variable in the
provided list @envp.
-
the value of the environment variable, or %NULL if
the environment variable is not set in @envp. The returned
@@ -41334,7 +39515,6 @@ provided list @envp.
Sets the environment variable @variable in the provided list
@envp to @value.
-
the updated environment list. Free it using g_strfreev().
@@ -41370,7 +39550,6 @@ provided list @envp.
Removes the environment variable @variable from the provided
environment @envp.
-
the updated environment list. Free it using g_strfreev().
@@ -41684,14 +39863,14 @@ Summary of rules for use of #GError:
- Do not report programming errors via #GError.
- The last argument of a function that returns an error should
- be a location where a #GError can be placed (i.e. "#GError** error").
- If #GError is used with varargs, the #GError** should be the last
- argument before the "...".
+ be a location where a #GError can be placed (i.e. `GError **error`).
+ If #GError is used with varargs, the `GError**` should be the last
+ argument before the `...`.
-- The caller may pass %NULL for the #GError** if they are not interested
+- The caller may pass %NULL for the `GError**` if they are not interested
in details of the exact error that occurred.
-- If %NULL is passed for the #GError** argument, then errors should
+- If %NULL is passed for the `GError**` argument, then errors should
not be returned to the caller, but your function should still
abort and return if an error occurs. That is, control flow should
not be affected by whether the caller wants to get a #GError.
@@ -41705,11 +39884,13 @@ Summary of rules for use of #GError:
- If a #GError is reported, out parameters are not guaranteed to
be set to any defined value.
-- A #GError* must be initialized to %NULL before passing its address
+- A `GError*` must be initialized to %NULL before passing its address
to a function that can report errors.
+- #GError structs must not be stack-allocated.
+
- "Piling up" errors is always a bug. That is, if you assign a
- new #GError to a #GError* that is non-%NULL, thus overwriting
+ new #GError to a `GError*` that is non-%NULL, thus overwriting
the previous error, it indicates that you should have aborted
the operation instead of continuing. If you were able to continue,
you should have cleared the previous error with g_clear_error().
@@ -41717,12 +39898,12 @@ Summary of rules for use of #GError:
- By convention, if you return a boolean value indicating success
then %TRUE means success and %FALSE means failure. Avoid creating
- functions which have a boolean return value and a GError parameter,
+ functions which have a boolean return value and a #GError parameter,
but where the boolean does something other than signal whether the
- GError is set. Among other problems, it requires C callers to allocate
- a temporary error. Instead, provide a "gboolean *" out parameter.
+ #GError is set. Among other problems, it requires C callers to allocate
+ a temporary error. Instead, provide a `gboolean *` out parameter.
There are functions in GLib itself such as g_key_file_has_key() that
- are deprecated because of this. If %FALSE is returned, the error must
+ are hard to use because of this. If %FALSE is returned, the error must
be set to a non-%NULL value. One exception to this is that in situations
that are already considered to be undefined behaviour (such as when a
g_return_val_if_fail() check fails), the error need not be set.
@@ -41739,7 +39920,122 @@ Summary of rules for use of #GError:
- When implementing a function that can report errors, you may want
to add a check at the top of your function that the error return
location is either %NULL or contains a %NULL error (e.g.
- `g_return_if_fail (error == NULL || *error == NULL);`).
+ `g_return_if_fail (error == NULL || *error == NULL);`).
+
+## Extended #GError Domains # {#gerror-extended-domains}
+
+Since GLib 2.68 it is possible to extend the #GError type. This is
+done with the G_DEFINE_EXTENDED_ERROR() macro. To create an
+extended #GError type do something like this in the header file:
+|[<!-- language="C" -->
+typedef enum
+{
+ MY_ERROR_BAD_REQUEST,
+} MyError;
+#define MY_ERROR (my_error_quark ())
+GQuark my_error_quark (void);
+int
+my_error_get_parse_error_id (GError *error);
+const char *
+my_error_get_bad_request_details (GError *error);
+]|
+and in implementation:
+|[<!-- language="C" -->
+typedef struct
+{
+ int parse_error_id;
+ char *bad_request_details;
+} MyErrorPrivate;
+
+static void
+my_error_private_init (MyErrorPrivate *priv)
+{
+ priv->parse_error_id = -1;
+ // No need to set priv->bad_request_details to NULL,
+ // the struct is initialized with zeros.
+}
+
+static void
+my_error_private_copy (const MyErrorPrivate *src_priv, MyErrorPrivate *dest_priv)
+{
+ dest_priv->parse_error_id = src_priv->parse_error_id;
+ dest_priv->bad_request_details = g_strdup (src_priv->bad_request_details);
+}
+
+static void
+my_error_private_clear (MyErrorPrivate *priv)
+{
+ g_free (priv->bad_request_details);
+}
+
+// This defines the my_error_get_private and my_error_quark functions.
+G_DEFINE_EXTENDED_ERROR (MyError, my_error)
+
+int
+my_error_get_parse_error_id (GError *error)
+{
+ MyErrorPrivate *priv = my_error_get_private (error);
+ g_return_val_if_fail (priv != NULL, -1);
+ return priv->parse_error_id;
+}
+
+const char *
+my_error_get_bad_request_details (GError *error)
+{
+ MyErrorPrivate *priv = my_error_get_private (error);
+ g_return_val_if_fail (priv != NULL, NULL);
+ g_return_val_if_fail (error->code != MY_ERROR_BAD_REQUEST, NULL);
+ return priv->bad_request_details;
+}
+
+static void
+my_error_set_bad_request (GError **error,
+ const char *reason,
+ int error_id,
+ const char *details)
+{
+ MyErrorPrivate *priv;
+ g_set_error (error, MY_ERROR, MY_ERROR_BAD_REQUEST, "Invalid request: %s", reason);
+ if (error != NULL && *error != NULL)
+ {
+ priv = my_error_get_private (error);
+ g_return_val_if_fail (priv != NULL, NULL);
+ priv->parse_error_id = error_id;
+ priv->bad_request_details = g_strdup (details);
+ }
+}
+]|
+An example of use of the error could be:
+|[<!-- language="C" -->
+gboolean
+send_request (GBytes *request, GError **error)
+{
+ ParseFailedStatus *failure = validate_request (request);
+ if (failure != NULL)
+ {
+ my_error_set_bad_request (error, failure->reason, failure->error_id, failure->details);
+ parse_failed_status_free (failure);
+ return FALSE;
+ }
+
+ return send_one (request, error);
+}
+]|
+
+Please note that if you are a library author and your library
+exposes an existing error domain, then you can't make this error
+domain an extended one without breaking ABI. This is because
+earlier it was possible to create an error with this error domain
+on the stack and then copy it with g_error_copy(). If the new
+version of your library makes the error domain an extended one,
+then g_error_copy() called by code that allocated the error on the
+stack will try to copy more data than it used to, which will lead
+to undefined behavior. You must not stack-allocate errors with an
+extended error domain, and it is bad practice to stack-allocate any
+other #GErrors.
+
+Extended error domains in unloadable plugins/modules are not
+supported.
Gets a #GFileError constant based on the passed-in @err_no.
@@ -41750,7 +40046,6 @@ assume that all #GFileError values will exist.
Normally a #GFileError value goes into a #GError returned
from a function that manipulates files. So you would use
g_file_error_from_errno() when constructing a #GError.
-
#GFileError corresponding to the given @errno
@@ -41778,7 +40073,6 @@ stored in @contents will be nul-terminated, so for text files you can pass
%FALSE and sets @error. The error domain is #G_FILE_ERROR. Possible error
codes are those in the #GFileError enumeration. In the error case,
@contents is set to %NULL and @length is set to zero.
-
%TRUE on success, %FALSE if an error occurred
@@ -41818,7 +40112,6 @@ Upon success, and if @name_used is non-%NULL, the actual name used
is returned in @name_used. This string should be freed with g_free()
when not needed any longer. The returned name is in the GLib file
name encoding.
-
A file handle (as from open()) to the file opened for
reading and writing. The file is opened in binary mode on platforms
@@ -41843,7 +40136,6 @@ name encoding.
Reads the contents of the symbolic link @filename like the POSIX
readlink() function. The returned string is in the encoding used
for filenames. Use g_filename_to_utf8() to convert it to UTF-8.
-
A newly-allocated string with the contents of
the symbolic link, or %NULL if an error occurred.
@@ -41858,10 +40150,9 @@ for filenames. Use g_filename_to_utf8() to convert it to UTF-8.
Writes all of @contents to a file named @filename. This is a convenience
-wrapper around calling g_file_set_contents() with `flags` set to
+wrapper around calling g_file_set_contents_full() with `flags` set to
`G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING` and
`mode` set to `0666`.
-
%TRUE on success, %FALSE if an error occurred
@@ -41939,7 +40230,6 @@ to 7 characters to @filename.
If the file didn’t exist before and is created, it will be given the
permissions from @mode. Otherwise, the permissions of the existing file may
be changed to @mode depending on @flags, or they may remain unchanged.
-
%TRUE on success, %FALSE if an error occurred
@@ -42012,7 +40302,6 @@ On Windows, there are no symlinks, so testing for
%G_FILE_TEST_IS_EXECUTABLE will just check that the file exists and
its name indicates that it is executable, checking for well-known
extensions and those listed in the `PATHEXT` environment variable.
-
whether a test was %TRUE
@@ -42046,7 +40335,6 @@ translation of well known locations can be done.
This function is preferred over g_filename_display_name() if you know the
whole path, as it allows translation.
-
a newly allocated string containing
a rendition of the basename of the filename in valid UTF-8
@@ -42076,7 +40364,6 @@ encoding.
If you know the whole pathname of the file you should use
g_filename_display_basename(), since that allows location-based
translation of filenames.
-
a newly allocated string containing
a rendition of the filename in valid UTF-8
@@ -42093,7 +40380,6 @@ translation of filenames.
Converts an escaped ASCII-encoded URI to a local filename in the
encoding used for filenames.
-
a newly-allocated string holding
the resulting filename, or %NULL on an error.
@@ -42123,7 +40409,6 @@ argument is positive. A nul character found inside the string will result
in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. If the filename encoding is
not UTF-8 and the conversion output contains a nul character, the error
%G_CONVERT_ERROR_EMBEDDED_NUL is set and the function returns %NULL.
-
The converted string, or %NULL on an error.
@@ -42160,7 +40445,6 @@ not UTF-8 and the conversion output contains a nul character, the error
Converts an absolute filename to an escaped ASCII-encoded URI, with the path
component following Section 3.3. of RFC 2396.
-
a newly-allocated string holding the resulting
URI, or %NULL on an error.
@@ -42192,7 +40476,6 @@ If the source encoding is not UTF-8 and the conversion output contains a
nul character, the error %G_CONVERT_ERROR_EMBEDDED_NUL is set and the
function returns %NULL. Use g_convert() to produce output that
may contain embedded nul characters.
-
The converted string, or %NULL on an error.
@@ -42277,7 +40560,6 @@ Windows 32-bit system directory, then in the Windows directory, and
finally in the directories in the `PATH` environment variable. If
the program is found, the return value contains the full name
including the type suffix.
-
a newly-allocated
string with the absolute path, or %NULL
@@ -42304,7 +40586,6 @@ This string should be freed with g_free() when not needed any longer.
See g_format_size_full() for more options about how the size might be
formatted.
-
a newly-allocated formatted string containing
a human readable file size
@@ -42329,7 +40610,6 @@ The prefix units base is 1024 (i.e. 1 KB is 1024 bytes).
This string should be freed with g_free() when not needed any longer.
This function is broken due to its use of SI
suffixes to denote IEC units. Use g_format_size() instead.
-
a newly-allocated formatted string
containing a human readable file size
@@ -42347,7 +40627,6 @@ This string should be freed with g_free() when not needed any longer.
This function is similar to g_format_size() but allows for flags
that modify the output. See #GFormatSizeFlags.
-
a newly-allocated formatted string
containing a human readable file size
@@ -42369,7 +40648,6 @@ that modify the output. See #GFormatSizeFlags.
positional parameters, as specified in the Single Unix Specification.
`glib/gprintf.h` must be explicitly included in order to use this function.
-
the number of bytes printed.
@@ -42395,7 +40673,6 @@ positional parameters, as specified in the Single Unix Specification.
If @mem is %NULL it simply returns, so there is no need to check @mem
against %NULL before calling this function.
-
@@ -42414,7 +40691,6 @@ g_get_prgname(), which gets a non-localized name. If
g_set_application_name() has not been called, returns the result of
g_get_prgname() (which may be %NULL if g_set_prgname() has also not
been called).
-
human-readable application
name. May return %NULL
@@ -42442,7 +40718,6 @@ case you can perhaps avoid calling g_convert().
The string returned in @charset is not allocated, and should not be
freed.
-
%TRUE if the returned charset is UTF-8
@@ -42457,7 +40732,6 @@ freed.
Gets the character set for the current locale.
-
a newly allocated string containing the name
of the character set. This string must be freed with g_free().
@@ -42482,7 +40756,6 @@ case you can perhaps avoid calling g_convert().
The string returned in @charset is not allocated, and should not be
freed.
-
%TRUE if the returned charset is UTF-8
@@ -42506,7 +40779,6 @@ Since GLib 2.40, this function will return the value of the "PWD"
environment variable if it is set and it happens to be the same as
the current directory. This can make a difference in the case that
the current directory is the target of a symbolic link.
-
the current directory
@@ -42518,7 +40790,6 @@ the current directory is the target of a symbolic link.
You may find g_get_real_time() to be more convenient.
#GTimeVal is not year-2038-safe. Use g_get_real_time()
instead.
-
@@ -42540,7 +40811,6 @@ except portable.
The return value is freshly allocated and it should be freed with
g_strfreev() when it is no longer needed.
-
the list of environment variables
@@ -42574,7 +40844,6 @@ The returned @charsets belong to GLib and must not be freed.
Note that on Unix, regardless of the locale character set or
`G_FILENAME_ENCODING` value, the actual file names present
on a system might be in any random encoding or just gibberish.
-
%TRUE if the filename encoding is UTF-8.
@@ -42610,7 +40879,6 @@ old behaviour (and if you don't wish to increase your GLib
dependency to ensure that the new behaviour is in effect) then you
should either directly check the `HOME` environment variable yourself
or unset it before calling any functions in GLib.
-
the current user's home directory
@@ -42631,7 +40899,6 @@ name can be determined, a default fixed string "localhost" is
returned.
The encoding of the returned string is UTF-8.
-
the host name of the machine.
@@ -42649,7 +40916,6 @@ For example, if LANGUAGE=de:en_US, then the returned list is
This function consults the environment variables `LANGUAGE`, `LC_ALL`,
`LC_MESSAGES` and `LANG` to find the list of locales specified by the
user.
-
a %NULL-terminated array of strings owned by GLib
that must not be modified or freed.
@@ -42669,7 +40935,6 @@ This function consults the environment variables `LANGUAGE`, `LC_ALL`,
user.
g_get_language_names() returns g_get_language_names_with_category("LC_MESSAGES").
-
a %NULL-terminated array of strings owned by
the thread g_get_language_names_with_category was called from.
@@ -42701,7 +40966,6 @@ is `en_GB.UTF-8@euro`, `en_GB.UTF-8`, `en_GB@euro`, `en_GB`, `en.UTF-8@euro`,
If you need the list of variants for the current locale,
use g_get_language_names().
-
a newly
allocated array of newly allocated strings with the locale variants. Free with
@@ -42728,7 +40992,6 @@ suspended.
We try to use the clock that corresponds as closely as possible to
the passage of time as measured by system calls such as poll() but it
may not always be possible to do this.
-
the monotonic time, in microseconds
@@ -42739,7 +41002,6 @@ may not always be possible to do this.
schedule simultaneously for this process. This is intended to be
used as a parameter to g_thread_pool_new() for CPU bound tasks and
similar cases.
-
Number of schedulable threads, always greater than 0
@@ -42754,7 +41016,6 @@ like %G_OS_INFO_KEY_NAME or pass any UTF-8 string key name. For example,
`/etc/os-release` provides a number of other less commonly used values that may
be useful. No key is guaranteed to be provided, so the caller should always
check if the result is %NULL.
-
The associated value for the requested key or %NULL if
this information is not provided.
@@ -42776,7 +41037,6 @@ g_application_run(). In case of GDK or GTK+ it is set in
gdk_init(), which is called by gtk_init() and the
#GtkApplication::startup handler. The program name is found by
taking the last component of @argv[0].
-
the name of the program,
or %NULL if it has not been set yet. The returned string belongs
@@ -42790,7 +41050,6 @@ entry in the `passwd` file. The encoding of the returned string is
system-defined. (On Windows, it is, however, always UTF-8.) If the
real user name cannot be determined, the string "Unknown" is
returned.
-
the user's real name.
@@ -42806,7 +41065,6 @@ that the return value is often more convenient than dealing with a
You should only use this call if you are actually interested in the real
wall-clock time. g_get_monotonic_time() is probably more useful for
measuring intervals.
-
the number of microseconds since January 1, 1970 UTC.
@@ -42829,8 +41087,10 @@ This folder is used for application data
that is not user specific. For example, an application can store
a spell-check dictionary, a database of clip art, or a log file in the
CSIDL_COMMON_APPDATA folder. This information will not roam and is available
-to anyone using the computer.
-
+to anyone using the computer.
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a %NULL-terminated array of strings owned by GLib that must not be
@@ -42871,8 +41131,10 @@ folder's name is "bin", its parent is used, otherwise the folder
itself.
Note that on Windows the returned list can vary depending on where
-this function is called.
-
+this function is called.
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a %NULL-terminated array of strings owned by GLib that must not be
@@ -42897,7 +41159,6 @@ as a default.
The encoding of the returned string is system-defined. On Windows,
it is always UTF-8. The return value is never %NULL or the empty
string.
-
the directory to use for temporary files.
@@ -42916,8 +41177,10 @@ On Windows it follows XDG Base Directory Specification if `XDG_CACHE_HOME` is de
If `XDG_CACHE_HOME` is undefined, the directory that serves as a common
repository for temporary Internet files is used instead. A typical path is
`C:\Documents and Settings\username\Local Settings\Temporary Internet Files`.
-See the [documentation for `CSIDL_INTERNET_CACHE`](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx#csidl_internet_cache).
-
+See the [documentation for `CSIDL_INTERNET_CACHE`](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx#csidl_internet_cache).
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a string owned by GLib that
must not be modified or freed.
@@ -42938,8 +41201,10 @@ If `XDG_CONFIG_HOME` is undefined, the folder to use for local (as opposed
to roaming) application data is used instead. See the
[documentation for `CSIDL_LOCAL_APPDATA`](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx#csidl_local_appdata).
Note that in this case on Windows it will be the same
-as what g_get_user_data_dir() returns.
-
+as what g_get_user_data_dir() returns.
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a string owned by GLib that
must not be modified or freed.
@@ -42960,8 +41225,10 @@ is defined. If `XDG_DATA_HOME` is undefined, the folder to use for local (as
opposed to roaming) application data is used instead. See the
[documentation for `CSIDL_LOCAL_APPDATA`](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494%28v=vs.85%29.aspx#csidl_local_appdata).
Note that in this case on Windows it will be the same
-as what g_get_user_config_dir() returns.
-
+as what g_get_user_config_dir() returns.
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a string owned by GLib that must
not be modified or freed.
@@ -42973,7 +41240,6 @@ as what g_get_user_config_dir() returns.
string is system-defined. On UNIX, it might be the preferred file name
encoding, or something else, and there is no guarantee that it is even
consistent on a machine. On Windows, it is always UTF-8.
-
the user name of the current user.
@@ -42989,8 +41255,10 @@ in the
This is the directory
specified in the `XDG_RUNTIME_DIR` environment variable.
In the case that this variable is not set, we return the value of
-g_get_user_cache_dir(), after verifying that it exists.
-
+g_get_user_cache_dir(), after verifying that it exists.
+
+The return value is cached and modifying it at runtime is not supported, as
+it’s not thread-safe to modify environment variables at runtime.
a string owned by GLib that must not be
modified or freed.
@@ -43008,7 +41276,6 @@ not been set up.
Depending on the platform, the user might be able to change the path
of the special directory without requiring the session to restart; GLib
will not reflect any change once the special directories are loaded.
-
the path to the specified special directory, or
%NULL if the logical id was not found. The returned string is owned by
@@ -43030,7 +41297,6 @@ be in some consistent character set and encoding. On Windows, they are
in UTF-8.
On Windows, in case the environment variable's value contains
references to other environment variables, they are expanded.
-
the value of the environment variable, or %NULL if
the environment variable is not found. The returned string
@@ -43058,6 +41324,19 @@ backward-compatibility with the old ASCII-only DNS, by defining an
ASCII-Compatible Encoding of any given Unicode name, which can be
used with non-IDN-aware applications and protocols. (For example,
"Παν語.org" maps to "xn--4wa8awb4637h.org".)
+
+
+ #GStrvBuilder is a method of easily building dynamically sized
+NULL-terminated string arrays.
+
+The following example shows how to build a two element array:
+
+|[<!-- language="C" -->
+ g_autoptr(GStrvBuilder) builder = g_strv_builder_new ();
+ g_strv_builder_add (builder, "hello");
+ g_strv_builder_add (builder, "world");
+ g_auto(GStrv) array = g_strv_builder_end (builder);
+]|
Most of GLib is intended to be portable; in contrast, this set of
@@ -43084,7 +41363,6 @@ the discussion in the section description.
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -43105,7 +41383,6 @@ or not.
Checks if @key is in @hash_table.
-
%TRUE if @key is in @hash_table, %FALSE otherwise.
@@ -43131,7 +41408,6 @@ you should either free them first or create the #GHashTable with destroy
notifiers using g_hash_table_new_full(). In the latter case the destroy
functions you supplied will be called on all keys and values during the
destruction phase.
-
@@ -43148,7 +41424,6 @@ destruction phase.
This function is deprecated and will be removed in the next major
release of GLib. It does nothing.
-
a #GHashTable
@@ -43168,7 +41443,6 @@ key is freed using that function.
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -43196,7 +41470,6 @@ or not.
distinguish between a key that is not present and one which is present
and has the value %NULL. If you need this distinction, use
g_hash_table_lookup_extended().
-
the associated value, or %NULL if the key is not found
@@ -43224,7 +41497,6 @@ for example before calling g_hash_table_remove().
You can actually pass %NULL for @lookup_key to test
whether the %NULL key exists, provided the hash and equal functions
of @hash_table are %NULL-safe.
-
%TRUE if the key was found in the #GHashTable
@@ -43259,7 +41531,6 @@ If the #GHashTable was created using g_hash_table_new_full(), the
key and value are freed using the supplied destroy functions, otherwise
you have to make sure that any dynamically allocated values are freed
yourself.
-
%TRUE if the key was found and removed from the #GHashTable
@@ -43285,7 +41556,6 @@ If the #GHashTable was created using g_hash_table_new_full(),
the keys and values are freed using the supplied destroy functions,
otherwise you have to make sure that any dynamically allocated
values are freed yourself.
-
@@ -43311,7 +41581,6 @@ If you supplied a @key_destroy_func when creating the
Starting from GLib 2.40, this function returns a boolean value to
indicate whether the newly added value was already in the hash table
or not.
-
%TRUE if the key did not exist yet
@@ -43336,7 +41605,6 @@ or not.
Returns the number of elements contained in the #GHashTable.
-
the number of key/value pairs in the #GHashTable.
@@ -43354,7 +41622,6 @@ or not.
Removes a key and its associated value from a #GHashTable without
calling the key and value destroy functions.
-
%TRUE if the key was found and removed from the #GHashTable
@@ -43376,7 +41643,6 @@ calling the key and value destroy functions.
Removes all keys and their associated values from a #GHashTable
without calling the key and value destroy functions.
-
@@ -43401,7 +41667,6 @@ the caller of this method; as with g_hash_table_steal().
You can pass %NULL for @lookup_key, provided the hash and equal functions
of @hash_table are %NULL-safe.
-
%TRUE if the key was found in the #GHashTable
@@ -43433,7 +41698,6 @@ of @hash_table are %NULL-safe.
This function is deprecated and will be removed in the next major
release of GLib. It does nothing.
-
a #GHashTable
@@ -43445,7 +41709,6 @@ release of GLib. It does nothing.
If the reference count drops to 0, all keys and values will be
destroyed, and all memory allocated by the hash table is released.
This function is MT-safe and may be called from any thread.
-
@@ -43528,7 +41791,6 @@ in GLib 2.42. Support for SHA-384 was added in GLib 2.52.
Appends a #GHook onto the end of a #GHookList.
-
a #GHookList
@@ -43540,7 +41802,6 @@ in GLib 2.42. Support for SHA-384 was added in GLib 2.52.
Destroys a #GHook, given its ID.
-
%TRUE if the #GHook was found in the #GHookList and destroyed
@@ -43559,7 +41820,6 @@ in GLib 2.42. Support for SHA-384 was added in GLib 2.52.
Removes one #GHook from a #GHookList, marking it
inactive and calling g_hook_unref() on it.
-
@@ -43577,7 +41837,6 @@ inactive and calling g_hook_unref() on it.
Calls the #GHookList @finalize_hook function if it exists,
and frees the memory allocated for the #GHook.
-
@@ -43594,7 +41853,6 @@ and frees the memory allocated for the #GHook.
Inserts a #GHook into a #GHookList, before a given #GHook.
-
@@ -43615,7 +41873,6 @@ and frees the memory allocated for the #GHook.
Prepends a #GHook on the start of a #GHookList.
-
@@ -43634,7 +41891,6 @@ and frees the memory allocated for the #GHook.
Decrements the reference count of a #GHook.
If the reference count falls to 0, the #GHook is removed
from the #GHookList and g_hook_free() is called to free it.
-
@@ -43663,7 +41919,6 @@ before displaying it to the user.
Note that a hostname might contain a mix of encoded and unencoded
segments, and so it is possible for g_hostname_is_non_ascii() and
g_hostname_is_ascii_encoded() to both return %TRUE for a name.
-
%TRUE if @hostname contains any ASCII-encoded
segments.
@@ -43681,7 +41936,6 @@ segments.
(Eg, "192.168.0.1".)
Since 2.66, IPv6 addresses with a zone-id are accepted (RFC6874).
-
%TRUE if @hostname is an IP address
@@ -43701,7 +41955,6 @@ before using it in non-IDN-aware contexts.
Note that a hostname might contain a mix of encoded and unencoded
segments, and so it is possible for g_hostname_is_non_ascii() and
g_hostname_is_ascii_encoded() to both return %TRUE for a name.
-
%TRUE if @hostname contains any non-ASCII characters
@@ -43717,10 +41970,9 @@ g_hostname_is_ascii_encoded() to both return %TRUE for a name.
Converts @hostname to its canonical ASCII form; an ASCII-only
string containing no uppercase letters and not ending with a
trailing dot.
-
-
- an ASCII hostname, which must be freed, or %NULL if
-@hostname is in some way invalid.
+
+ an ASCII hostname, which must be freed,
+ or %NULL if @hostname is in some way invalid.
@@ -43738,10 +41990,9 @@ and not ending with a trailing dot.
Of course if @hostname is not an internationalized hostname, then
the canonical presentation form will be entirely ASCII.
-
-
- a UTF-8 hostname, which must be freed, or %NULL if
-@hostname is in some way invalid.
+
+ a UTF-8 hostname, which must be freed,
+ or %NULL if @hostname is in some way invalid.
@@ -43753,7 +42004,6 @@ the canonical presentation form will be entirely ASCII.
Converts a 32-bit integer value from host to network byte order.
-
a 32-bit integer value in host byte order
@@ -43762,7 +42012,6 @@ the canonical presentation form will be entirely ASCII.
Converts a 16-bit integer value from host to network byte order.
-
a 16-bit integer value in host byte order
@@ -43827,7 +42076,6 @@ set, is implementation defined. This function may return success (with a
positive number of non-reversible conversions as replacement characters were
used), or it may return -1 and set an error such as %EILSEQ, in such a
situation.
-
count of non-reversible conversions, or -1 on error
@@ -43862,7 +42110,6 @@ a native implementation.
GLib provides g_convert() and g_locale_to_utf8() which are likely
more convenient than the raw iconv wrappers.
-
a "conversion descriptor", or (GIConv)-1 if
opening the converter failed.
@@ -43894,7 +42141,6 @@ and attaches it to the global #GMainContext using g_source_attach(), so
the callback will be invoked in whichever thread is running that main
context. You can do these steps manually if you need greater control or to
use a custom main context.
-
the ID (greater than 0) of the event source.
@@ -43923,7 +42169,6 @@ and attaches it to the global #GMainContext using g_source_attach(), so
the callback will be invoked in whichever thread is running that main
context. You can do these steps manually if you need greater control or to
use a custom main context.
-
the ID (greater than 0) of the event source.
@@ -43950,7 +42195,6 @@ use a custom main context.
Removes the idle function with the given data.
-
%TRUE if an idle source was found and removed.
@@ -43970,7 +42214,6 @@ and must be added to one with g_source_attach() before it will be
executed. Note that the default priority for idle sources is
%G_PRIORITY_DEFAULT_IDLE, as compared to other sources which
have a default priority of %G_PRIORITY_DEFAULT.
-
the newly-created idle source
@@ -43982,7 +42225,6 @@ have a default priority of %G_PRIORITY_DEFAULT.
It can be passed to g_hash_table_new() as the @key_equal_func
parameter, when using non-%NULL pointers to 64-bit integers as keys in a
#GHashTable.
-
%TRUE if the two keys match.
@@ -44004,7 +42246,6 @@ parameter, when using non-%NULL pointers to 64-bit integers as keys in a
It can be passed to g_hash_table_new() as the @hash_func parameter,
when using non-%NULL pointers to 64-bit integer values as keys in a
#GHashTable.
-
a hash value corresponding to the key.
@@ -44026,7 +42267,6 @@ parameter, when using non-%NULL pointers to integers as keys in a
Note that this function acts on pointers to #gint, not on #gint
directly: if your hash table's keys are of the form
`GINT_TO_POINTER (n)`, use g_direct_equal() instead.
-
%TRUE if the two keys match.
@@ -44050,7 +42290,6 @@ when using non-%NULL pointers to integer values as keys in a #GHashTable.
Note that this function acts on pointers to #gint, not on #gint
directly: if your hash table's keys are of the form
`GINT_TO_POINTER (n)`, use g_direct_hash() instead.
-
a hash value corresponding to the key.
@@ -44071,7 +42310,6 @@ therefore @string must not be freed or modified.
This function must not be used before library constructors have finished
running. In particular, this means it cannot be used to initialize global
variables in C++.
-
a canonical representation for the string
@@ -44091,7 +42329,6 @@ using strcmp().
This function must not be used before library constructors have finished
running. In particular, this means it cannot be used to initialize global
variables in C++.
-
a canonical representation for the string
@@ -44106,7 +42343,6 @@ variables in C++.
Adds the #GIOChannel into the default main loop context
with the default priority.
-
the event source id
@@ -44137,7 +42373,6 @@ with the given priority.
This internally creates a main loop source using g_io_create_watch()
and attaches it to the main loop context with g_source_attach().
You can do these steps manually if you need greater control.
-
the event source id
@@ -44171,7 +42406,6 @@ You can do these steps manually if you need greater control.
Converts an `errno` error number to a #GIOChannelError.
-
a #GIOChannelError error number, e.g.
%G_IO_CHANNEL_ERROR_INVAL.
@@ -44204,7 +42438,6 @@ at the default priority.
On Windows, polling a #GSource created to watch a channel for a socket
puts the socket in non-blocking mode. This is a side-effect of the
implementation and unavoidable.
-
a new #GSource
@@ -44525,7 +42758,6 @@ To free the entire list, use g_slist_free().
A convenience macro to get the next element in a #GList.
Note that it is considered perfectly acceptable to access
@list->next directly.
-
an element in a #GList
@@ -44536,7 +42768,6 @@ Note that it is considered perfectly acceptable to access
A convenience macro to get the previous element in a #GList.
Note that it is considered perfectly acceptable to access
@list->prev directly.
-
an element in a #GList
@@ -44552,7 +42783,6 @@ from the C library directly. On Windows, the strings in the environ
array are in system codepage encoding, while in most of the typical
use cases for environment variables in GLib-using programs you want
the UTF-8 encoding that this function and g_getenv() provide.
-
a %NULL-terminated list of strings which must be freed with
@@ -44572,7 +42802,6 @@ The input string shall not contain nul characters even if the @len
argument is positive. A nul character found inside the string will result
in error %G_CONVERT_ERROR_ILLEGAL_SEQUENCE. Use g_convert() to convert
input that may contain embedded nul characters.
-
A newly-allocated buffer containing the converted string,
@@ -44621,7 +42850,6 @@ If the source encoding is UTF-8, an embedded nul character is treated with
the %G_CONVERT_ERROR_ILLEGAL_SEQUENCE error for backward compatibility with
earlier versions of this library. Use g_convert() to produce output that
may contain embedded nul characters.
-
The converted string, or %NULL on an error.
@@ -44673,7 +42901,6 @@ manually.
If [structured logging is enabled][using-structured-logging] this will
output via the structured log writer function (see g_log_set_writer_func()).
-
@@ -44720,11 +42947,11 @@ environment variables:
stderr is used for levels %G_LOG_LEVEL_ERROR, %G_LOG_LEVEL_CRITICAL,
%G_LOG_LEVEL_WARNING and %G_LOG_LEVEL_MESSAGE. stdout is used for
-the rest.
+the rest, unless stderr was requested by
+g_log_writer_default_set_use_stderr().
This has no effect if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
@@ -44753,7 +42980,6 @@ default "" application domain
This has no effect if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
@@ -44786,7 +43012,6 @@ Structured log messages (using g_log_structured() and
g_log_structured_array()) are fatal only if the default log writer is used;
otherwise it is up to the writer function to determine which log messages
are fatal. See [Using Structured Logging][using-structured-logging].
-
the old fatal mask
@@ -44807,7 +43032,6 @@ g_log_default_handler() as default log handler.
This has no effect if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
the previous default log handler
@@ -44837,7 +43061,6 @@ This function is mostly intended to be used with
%G_LOG_LEVEL_CRITICAL. You should typically not set
%G_LOG_LEVEL_WARNING, %G_LOG_LEVEL_MESSAGE, %G_LOG_LEVEL_INFO or
%G_LOG_LEVEL_DEBUG as fatal except inside of test programs.
-
the old fatal mask for the log domain
@@ -44884,7 +43107,6 @@ This example adds a log handler for all messages from GLib:
g_log_set_handler ("GLib", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL
| G_LOG_FLAG_RECURSION, my_log_handler, NULL);
]|
-
the id of the new handler
@@ -44917,7 +43139,6 @@ g_log_set_handler ("GLib", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL
This has no effect if structured logging is enabled; see
[Using Structured Logging][using-structured-logging].
-
the id of the new handler
@@ -44959,7 +43180,6 @@ install a writer function, as there must be a single, central point where
log messages are formatted and outputted.
There can only be one writer function. It is an error to set more than one.
-
@@ -45058,7 +43278,6 @@ field for which printf()-style formatting is supported.
The default writer function for `stdout` and `stderr` will automatically
append a new-line character after the message, so you should not add one
manually to the format string.
-
@@ -45090,7 +43309,6 @@ See g_log_structured() for more documentation.
This assumes that @log_level is already present in @fields (typically as the
`PRIORITY` field).
-
@@ -45114,7 +43332,6 @@ This assumes that @log_level is already present in @fields (typically as the
-
@@ -45157,7 +43374,6 @@ to the log writer as such. The size of the array should not be higher than
g_variant_print() will be used to convert the value into a string.
For more details on its usage and about the parameters, see g_log_structured().
-
@@ -45193,8 +43409,11 @@ if no other is set using g_log_set_writer_func().
As with g_log_default_handler(), this function drops debug and informational
messages unless their log domain (or `all`) is listed in the space-separated
-`G_MESSAGES_DEBUG` environment variable.
-
+`G_MESSAGES_DEBUG` environment variable.
+
+g_log_writer_default() uses the mask set by g_log_set_always_fatal() to
+determine which messages are fatal. When using a custom writer func instead it is
+up to the writer function to determine which log messages are fatal.
%G_LOG_WRITER_HANDLED on success, %G_LOG_WRITER_UNHANDLED otherwise
@@ -45232,7 +43451,6 @@ unknown fields.
The returned string does **not** have a trailing new-line character. It is
encoded in the character set of the current locale, which is not necessarily
UTF-8.
-
string containing the formatted log message, in
the character set of the current locale
@@ -45272,7 +43490,6 @@ the following construct without needing any additional error handling:
|[<!-- language="C" -->
is_journald = g_log_writer_is_journald (fileno (stderr));
]|
-
%TRUE if @output_fd points to the journal, %FALSE otherwise
@@ -45294,7 +43511,6 @@ This is suitable for use as a #GLogWriterFunc.
If GLib has been compiled without systemd support, this function is still
defined, but will always return %G_LOG_WRITER_UNHANDLED.
-
%G_LOG_WRITER_HANDLED on success, %G_LOG_WRITER_UNHANDLED otherwise
@@ -45325,7 +43541,9 @@ defined, but will always return %G_LOG_WRITER_UNHANDLED.
Format a structured log message and print it to either `stdout` or `stderr`,
depending on its log level. %G_LOG_LEVEL_INFO and %G_LOG_LEVEL_DEBUG messages
-are sent to `stdout`; all other log levels are sent to `stderr`. Only fields
+are sent to `stdout`, or to `stderr` if requested by
+g_log_writer_default_set_use_stderr();
+all other log levels are sent to `stderr`. Only fields
which are understood by this function are included in the formatted string
which is printed.
@@ -45335,7 +43553,6 @@ in the output.
A trailing new-line character is added to the log message when it is printed.
This is suitable for use as a #GLogWriterFunc.
-
%G_LOG_WRITER_HANDLED on success, %G_LOG_WRITER_UNHANDLED otherwise
@@ -45367,7 +43584,6 @@ This is suitable for use as a #GLogWriterFunc.
Check whether the given @output_fd file descriptor supports ANSI color
escape sequences. If so, they can safely be used when formatting log
messages.
-
%TRUE if ANSI color escapes are supported, %FALSE otherwise
@@ -45392,7 +43608,6 @@ manually.
If [structured logging is enabled][using-structured-logging] this will
output via the structured log writer function (see g_log_set_writer_func()).
-
@@ -45417,21 +43632,18 @@ application domain
-
-
-
@@ -45559,7 +43771,6 @@ invoked, which may be undesirable.
used for main loop functions when a main loop is not explicitly
specified, and corresponds to the "main" main loop. See also
g_main_context_get_thread_default().
-
the global default main context.
@@ -45577,8 +43788,7 @@ always return %NULL if you are running in the default thread.)
If you need to hold a reference on the context, use
g_main_context_ref_thread_default() instead.
-
-
+
the thread-default #GMainContext, or
%NULL if the thread-default context is the global default context.
@@ -45591,7 +43801,6 @@ it with g_main_context_ref(). In addition, unlike
g_main_context_get_thread_default(), if the thread-default context
is the global default context, this will return that #GMainContext
(with a ref added to it) rather than returning %NULL.
-
the thread-default #GMainContext. Unref
with g_main_context_unref() when you are done with it.
@@ -45600,8 +43809,7 @@ is the global default context, this will return that #GMainContext
Returns the currently firing source for this thread.
-
-
+
The currently firing source or %NULL.
@@ -45708,7 +43916,6 @@ following techniques:
arbitrary callbacks. Instead, structure your code so that you
simply return to the main loop and then get called again when
there is more work to do.
-
The main loop recursion level in the current thread
@@ -45717,7 +43924,6 @@ following techniques:
Allocates @n_bytes bytes of memory.
If @n_bytes is 0 it returns %NULL.
-
a pointer to the allocated memory
@@ -45732,7 +43938,6 @@ If @n_bytes is 0 it returns %NULL.
Allocates @n_bytes bytes of memory, initialized to 0's.
If @n_bytes is 0 it returns %NULL.
-
a pointer to the allocated memory
@@ -45747,7 +43952,6 @@ If @n_bytes is 0 it returns %NULL.
This function is similar to g_malloc0(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
a pointer to the allocated memory
@@ -45766,7 +43970,6 @@ but care is taken to detect possible overflow during multiplication.
This function is similar to g_malloc(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
a pointer to the allocated memory
@@ -45858,7 +44061,6 @@ attributes (of type %G_MARKUP_ERROR_INVALID_CONTENT) as well
as parse errors for boolean-valued attributes (again of type
%G_MARKUP_ERROR_INVALID_CONTENT). In all of these cases %FALSE
will be returned and @error will be set as appropriate.
-
%TRUE if successful
@@ -45916,7 +44118,6 @@ the range of  ...  for all control sequences
except for tabstop, newline and carriage return. The character
references in this range are not valid XML 1.0, but they are
valid XML 1.1 and will be accepted by the GMarkup parser.
-
a newly allocated string with the escaped text
@@ -45951,7 +44152,6 @@ output = g_markup_printf_escaped ("<purchase>"
"</purchase>",
store, item);
]|
-
newly allocated result from formatting
operation. Free with g_free().
@@ -45972,7 +44172,6 @@ output = g_markup_printf_escaped ("<purchase>"
Formats the data in @args according to @format, escaping
all string and character arguments in the fashion
of g_markup_escape_text(). See g_markup_printf_escaped().
-
newly allocated result from formatting
operation. Free with g_free().
@@ -45997,7 +44196,6 @@ This function is useful for avoiding an extra copy of allocated memory returned
by a non-GLib-based API.
GLib always uses the system malloc, so this function always
returns %TRUE.
-
if %TRUE, malloc() and g_malloc() can be mixed.
@@ -46008,7 +44206,6 @@ returns %TRUE.
no longer works. There are many other useful tools for memory
profiling these days which can be used instead.
Use other memory profiling tools instead
-
@@ -46020,7 +44217,6 @@ in GLib and GIO, because those use the GLib allocators before main is
reached. Therefore this function is now deprecated and is just a stub.
This function now does nothing. Use other memory
profiling tools instead
-
@@ -46031,10 +44227,12 @@ profiling tools instead
-
+
Allocates @byte_size bytes of memory, and copies @byte_size bytes into it
from @mem. If @mem is %NULL it returns %NULL.
-
+ Use g_memdup2() instead, as it accepts a #gsize argument
+ for @byte_size, avoiding the possibility of overflow in a #gsize → #guint
+ conversion
a pointer to the newly-allocated copy of the memory, or %NULL if @mem
is %NULL.
@@ -46055,7 +44253,6 @@ from @mem. If @mem is %NULL it returns %NULL.
Copies a block of memory @len bytes long, from @src to @dest.
The source and destination areas may overlap.
Just use memmove().
-
the destination address to copy the bytes to.
@@ -46263,7 +44460,8 @@ are listed in the `G_MESSAGES_DEBUG` environment variable (or it is set to
It is recommended that custom log writer functions re-use the
`G_MESSAGES_DEBUG` environment variable, rather than inventing a custom one,
so that developers can re-use the same debugging techniques and tools across
-projects.
+projects. Since GLib 2.68, this can be implemented by dropping messages
+for which g_log_writer_default_would_drop() returns %TRUE.
## Testing for Messages ## {#testing-for-messages}
@@ -46306,7 +44504,6 @@ than the one under test).
Create a directory if it doesn't already exist. Create intermediate
parent directories as needed, too.
-
0 if the directory already exists, or was successfully
created. Returns -1 if an error occurred, with errno set.
@@ -46339,7 +44536,6 @@ on Windows it should be in UTF-8.
If you are going to be creating a temporary directory inside the
directory returned by g_get_tmp_dir(), you might want to use
g_dir_make_tmp() instead.
-
A pointer to @tmpl, which has been
modified to hold the directory name. In case of errors, %NULL is
@@ -46369,7 +44565,6 @@ should be in UTF-8.
If you are going to be creating a temporary directory inside the
directory returned by g_get_tmp_dir(), you might want to use
g_dir_make_tmp() instead.
-
A pointer to @tmpl, which has been
modified to hold the directory name. In case of errors, %NULL is
@@ -46398,7 +44593,6 @@ sequence does not have to occur at the very end of the template.
The X string will be modified to form the name of a file that
didn't exist. The string should be in the GLib file name encoding.
Most importantly, on Windows it should be in UTF-8.
-
A file handle (as from open()) to the file
opened for reading and writing. The file is opened in binary
@@ -46426,7 +44620,6 @@ template and you can pass a @mode and additional @flags. The X
string will be modified to form the name of a file that didn't exist.
The string should be in the GLib file name encoding. Most importantly,
on Windows it should be in UTF-8.
-
A file handle (as from open()) to the file
opened for reading and writing. The file handle should be
@@ -46459,7 +44652,6 @@ Care is taken to avoid overflow when calculating the size of the allocated block
Since the returned pointer is already casted to the right type,
it is normally unnecessary to cast it explicitly, and doing
so might hide memory allocation errors.
-
the type of the elements to allocate
@@ -46478,7 +44670,6 @@ Care is taken to avoid overflow when calculating the size of the allocated block
Since the returned pointer is already casted to the right type,
it is normally unnecessary to cast it explicitly, and doing
so might hide memory allocation errors.
-
the type of the elements to allocate.
@@ -46490,7 +44681,6 @@ so might hide memory allocation errors.
Wraps g_alloca() in a more typesafe manner.
-
Type of memory chunks to be allocated
@@ -46502,7 +44692,6 @@ so might hide memory allocation errors.
Inserts a #GNode as the last child of the given parent.
-
the #GNode to place the new #GNode under
@@ -46514,7 +44703,6 @@ so might hide memory allocation errors.
Inserts a new #GNode as the last child of the given parent.
-
the #GNode to place the new #GNode under
@@ -46526,7 +44714,6 @@ so might hide memory allocation errors.
Gets the first child of a #GNode.
-
a #GNode
@@ -46535,7 +44722,6 @@ so might hide memory allocation errors.
Inserts a new #GNode at the given position.
-
the #GNode to place the new #GNode under
@@ -46551,7 +44737,6 @@ so might hide memory allocation errors.
Inserts a new #GNode after the given sibling.
-
the #GNode to place the new #GNode under
@@ -46566,7 +44751,6 @@ so might hide memory allocation errors.
Inserts a new #GNode before the given sibling.
-
the #GNode to place the new #GNode under
@@ -46581,7 +44765,6 @@ so might hide memory allocation errors.
Gets the next sibling of a #GNode.
-
a #GNode
@@ -46590,7 +44773,6 @@ so might hide memory allocation errors.
Inserts a new #GNode as the first child of the given parent.
-
the #GNode to place the new #GNode under
@@ -46602,7 +44784,6 @@ so might hide memory allocation errors.
Gets the previous sibling of a #GNode.
-
a #GNode
@@ -46611,7 +44792,6 @@ so might hide memory allocation errors.
Converts a 32-bit integer value from network to host byte order.
-
a 32-bit integer value in network byte order
@@ -46620,7 +44800,6 @@ so might hide memory allocation errors.
Converts a 16-bit integer value from network to host byte order.
-
a 16-bit integer value in network byte order
@@ -46629,7 +44808,6 @@ so might hide memory allocation errors.
Set the pointer at the specified location to %NULL.
-
@@ -46704,7 +44882,6 @@ This function may cause different actions on non-UNIX platforms.
On Windows consider using the `G_DEBUGGER` environment
variable (see [Running GLib Applications](glib-running.html)) and
calling g_on_error_stack_trace() instead.
-
@@ -46732,7 +44909,6 @@ g_on_error_query(). If called directly, it will raise an
exception, which will crash the program. If the `G_DEBUGGER` environment
variable is set, a debugger will be invoked to attach and
handle that exception (see [Running GLib Applications](glib-running.html)).
-
@@ -46769,7 +44945,6 @@ Calling g_once() recursively on the same #GOnce struct in
return my_once.retval;
}
]|
-
a #GOnce structure
@@ -46806,8 +44981,10 @@ like this:
}
// use initialization_value here
-]|
-
+]|
+
+While @location has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
%TRUE if the initialization section should be entered,
%FALSE and blocks otherwise
@@ -46826,8 +45003,10 @@ like this:
0-initialized initialization variable, and an initialization value
other than 0. Sets the variable to the initialization value, and
releases concurrent threads blocking in g_once_init_enter() on this
-initialization variable.
-
+initialization variable.
+
+While @location has a `volatile` qualifier, this is a historical artifact and
+the pointer passed to it should not be `volatile`.
@@ -47016,7 +45195,6 @@ corresponding to "foo" and "bar".
If @string is equal to "help", all the available keys in @keys
are printed out to standard error.
-
the combined set of bit flags.
@@ -47047,7 +45225,6 @@ If @file_name ends with a directory separator it gets the component
before the last slash. If @file_name consists only of directory
separators (and on Windows, possibly a drive letter), a single
separator is returned. If @file_name is empty, it gets ".".
-
a newly allocated string containing the last
component of the filename
@@ -47067,7 +45244,6 @@ is `/`.
If the file name has no directory components "." is returned.
The returned string should be freed when no longer needed.
-
the directory components of the file
@@ -47104,7 +45280,6 @@ function, but they obviously are not relative to the normal current
directory as returned by getcwd() or g_get_current_dir()
either. Such paths should be avoided, or need to be handled using
Windows-specific code.
-
%TRUE if @file_name is absolute
@@ -47120,7 +45295,6 @@ Windows-specific code.
Returns a pointer into @file_name after the root component,
i.e. after the "/" in UNIX or "C:\" under Windows. If @file_name
is not an absolute path it returns %NULL.
-
a pointer into @file_name after the
root component
@@ -47151,7 +45325,6 @@ Note also that the reverse of a UTF-8 encoded string can in general
not be obtained by g_strreverse(). This works only if the string
does not contain any multibyte characters. GLib offers the
g_utf8_strreverse() function to reverse UTF-8 encoded strings.
-
%TRUE if @string matches @pspec
@@ -47181,7 +45354,6 @@ g_utf8_strreverse() function to reverse UTF-8 encoded strings.
function is to be called in a loop, it's more efficient to compile
the pattern once with g_pattern_spec_new() and call
g_pattern_match_string() repeatedly.
-
%TRUE if @string matches @pspec
@@ -47201,7 +45373,6 @@ g_pattern_match_string() repeatedly.
Matches a string against a compiled pattern. If the string is to be
matched against more than one pattern, consider using
g_pattern_match() instead while supplying the reversed string.
-
%TRUE if @string matches @pspec
@@ -47239,7 +45410,6 @@ pointer-sized values).
For portability reasons, you may only lock on the bottom 32 bits of
the pointer.
-
@@ -47260,7 +45430,6 @@ other pointer-sized values).
For portability reasons, you may only lock on the bottom 32 bits of
the pointer.
-
%TRUE if the lock was acquired
@@ -47282,7 +45451,6 @@ pointer-sized values).
For portability reasons, you may only lock on the bottom 32 bits of
the pointer.
-
@@ -47315,7 +45483,6 @@ file descriptor, but the situation is much more complicated on
Windows. If you need to use g_poll() in code that has to run on
Windows, the easiest solution is to construct all of your
#GPollFDs with g_io_channel_win32_make_pollfd().
-
the number of entries in @fds whose @revents fields
were filled in, or 0 if the operation timed out, or -1 on error or
@@ -47344,7 +45511,6 @@ nothing.
If *@err is %NULL (ie: an error variable is present but there is no
error condition) then also do nothing.
-
@@ -47374,7 +45540,6 @@ messages, since it may be redirected by applications to special
purpose message windows or even files. Instead, libraries should
use g_log(), g_log_structured(), or the convenience macros g_message(),
g_warning() and g_error().
-
@@ -47398,7 +45563,6 @@ new-line character.
g_printerr() should not be used from within libraries.
Instead g_log() or g_log_structured() should be used, or the convenience
macros g_message(), g_warning() and g_error().
-
@@ -47422,7 +45586,6 @@ new-line character to the message, so typically @format should end with its
own new-line character.
`glib/gprintf.h` must be explicitly included in order to use this function.
-
the number of bytes printed.
@@ -47442,7 +45605,6 @@ own new-line character.
Calculates the maximum space needed to store the output
of the sprintf() function.
-
the maximum space needed to store the formatted string
@@ -47467,7 +45629,6 @@ The error variable @dest points to must be %NULL.
Note that @src is no longer valid after this call. If you want
to keep using the same GError*, you need to set it to %NULL
after calling this function on it.
-
@@ -47486,7 +45647,6 @@ after calling this function on it.
If @dest is %NULL, free @src; otherwise, moves @src into *@dest.
*@dest must be %NULL. After the move, add a prefix as with
g_prefix_error().
-
@@ -47517,7 +45677,6 @@ multiple times in @haystack, the index of the first instance is returned.
This does pointer comparisons only. If you want to use more complex equality
checks, such as string comparisons, use g_ptr_array_find_with_equal_func().
-
%TRUE if @needle is one of the elements of @haystack
@@ -47550,7 +45709,6 @@ the first instance is returned.
@equal_func is called with the element from the array as its first parameter,
and @needle as its second parameter. If @equal_func is %NULL, pointer
equality is used.
-
%TRUE if @needle is one of the elements of @haystack
@@ -47584,7 +45742,6 @@ equality is used.
This does not perform bounds checking on the given @index_,
so you are responsible for checking it against the array length.
-
a #GPtrArray
@@ -47599,7 +45756,6 @@ so you are responsible for checking it against the array length.
the comparison routine accepts a user data argument.
This is guaranteed to be a stable sort since version 2.32.
-
@@ -47643,7 +45799,6 @@ function in GTK+ theme engines).
This function must not be used before library constructors have finished
running. In particular, this means it cannot be used to initialize global
variables in C++.
-
the #GQuark identifying the string, or 0 if @string is %NULL
@@ -47663,7 +45818,6 @@ using a copy of the string.
This function must not be used before library constructors have finished
running. In particular, this means it cannot be used to initialize global
variables in C++.
-
the #GQuark identifying the string, or 0 if @string is %NULL
@@ -47677,7 +45831,6 @@ variables in C++.
Gets the string associated with the given #GQuark.
-
the string associated with the #GQuark
@@ -47698,7 +45851,6 @@ use g_quark_from_string() or g_quark_from_static_string().
This function must not be used before library constructors have finished
running.
-
the #GQuark associated with the string, or 0 if @string is
%NULL or there is no #GQuark associated with it
@@ -47763,7 +45915,6 @@ To free the entire queue, use g_queue_free().
Returns a random #gboolean from @rand_.
This corresponds to an unbiased coin toss.
-
a #GRand
@@ -47772,7 +45923,6 @@ This corresponds to an unbiased coin toss.
Returns a random #gdouble equally distributed over the range [0..1).
-
a random number
@@ -47781,7 +45931,6 @@ This corresponds to an unbiased coin toss.
Returns a random #gdouble equally distributed over the range
[@begin..@end).
-
a random number
@@ -47800,7 +45949,6 @@ This corresponds to an unbiased coin toss.
Return a random #guint32 equally distributed over the range
[0..2^32-1].
-
a random number
@@ -47809,7 +45957,6 @@ This corresponds to an unbiased coin toss.
Returns a random #gint32 equally distributed over the range
[@begin..@end-1].
-
a random number
@@ -47874,7 +46021,6 @@ generated with Glib-2.0 that you need to reproduce exactly.
Sets the seed for the global random number generator, which is used
by the g_random_* functions, to @seed.
-
@@ -47887,7 +46033,6 @@ by the g_random_* functions, to @seed.
Acquires a reference on the data pointed by @mem_block.
-
a pointer to the data,
with its reference count increased
@@ -47909,7 +46054,6 @@ zero.
The allocated data is guaranteed to be suitably aligned for any
built-in type.
-
a pointer to the allocated memory
@@ -47932,7 +46076,6 @@ zero.
The allocated data is guaranteed to be suitably aligned for any
built-in type.
-
a pointer to the allocated memory
@@ -47948,7 +46091,6 @@ built-in type.
Allocates a new block of data with reference counting
semantics, and copies @block_size bytes of @mem_block
into it.
-
a pointer to the allocated
memory
@@ -47967,7 +46109,6 @@ into it.
Retrieves the size of the reference counted data pointed by @mem_block.
-
the size of the data, in bytes
@@ -47986,7 +46127,6 @@ the size of the given @type.
This macro calls g_rc_box_alloc() with `sizeof (@type)` and
casts the returned pointer to a pointer of the given @type,
avoiding a type cast in the source code.
-
the type to allocate, typically a structure name
@@ -48000,7 +46140,6 @@ the size of the given @type, and set its contents to zero.
This macro calls g_rc_box_alloc0() with `sizeof (@type)` and
casts the returned pointer to a pointer of the given @type,
avoiding a type cast in the source code.
-
the type to allocate, typically a structure name
@@ -48012,7 +46151,6 @@ avoiding a type cast in the source code.
If the reference was the last one, it will free the
resources allocated for @mem_block.
-
@@ -48029,7 +46167,6 @@ resources allocated for @mem_block.
If the reference was the last one, it will call @clear_func
to clear the contents of @mem_block, and then will free the
resources allocated for @mem_block.
-
@@ -48173,7 +46310,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (MyDataStruct, my_data_struct_release)
have been moved. @mem may be %NULL, in which case it's considered to
have zero-length. @n_bytes may be 0, in which case %NULL will be returned
and @mem will be freed unless it is %NULL.
-
the new address of the allocated memory
@@ -48192,7 +46328,6 @@ and @mem will be freed unless it is %NULL.
This function is similar to g_realloc(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
the new address of the allocated memory
@@ -48214,7 +46349,6 @@ but care is taken to detect possible overflow during multiplication.
Compares the current value of @rc with @val.
-
%TRUE if the reference count is the same
as the given value
@@ -48233,7 +46367,6 @@ but care is taken to detect possible overflow during multiplication.
Decreases the reference count.
-
%TRUE if the reference count reached 0, and %FALSE otherwise
@@ -48247,7 +46380,6 @@ but care is taken to detect possible overflow during multiplication.
Increases the reference count.
-
@@ -48260,7 +46392,6 @@ but care is taken to detect possible overflow during multiplication.
Initializes a reference count variable.
-
@@ -48273,7 +46404,6 @@ but care is taken to detect possible overflow during multiplication.
Acquires a reference on a string.
-
the given string, with its reference count increased
@@ -48287,7 +46417,6 @@ but care is taken to detect possible overflow during multiplication.
Retrieves the length of @str.
-
the length of the given string, in bytes
@@ -48302,7 +46431,6 @@ but care is taken to detect possible overflow during multiplication.
Creates a new reference counted string and copies the contents of @str
into it.
-
the newly created reference counted string
@@ -48321,7 +46449,6 @@ into it.
If you call this function multiple times with the same @str, or with
the same contents of @str, it will return a new reference, instead of
creating a new string.
-
the newly created reference
counted string, or a new reference to an existing string
@@ -48340,7 +46467,6 @@ into it, up to @len bytes.
Since this function does not stop at nul bytes, it is the caller's
responsibility to ensure that @str has at least @len addressable bytes.
-
the newly created reference counted string
@@ -48359,7 +46485,6 @@ responsibility to ensure that @str has at least @len addressable bytes.
Releases a reference on a string; if it was the last reference, the
resources allocated by the string are freed as well.
-
@@ -48457,7 +46582,6 @@ for pattern references. For instance, replacement text 'foo\n'
does not contain references and may be evaluated without information
about actual match, but '\0\1' (whole match followed by first
subpattern) requires valid #GMatchInfo object.
-
whether @replacement is a valid replacement string
@@ -48485,7 +46609,6 @@ to compile a regex with embedded nul characters.
For completeness, @length can be -1 for a nul-terminated string.
In this case the output string will be of course equal to @string.
-
a newly-allocated escaped string
@@ -48509,7 +46632,6 @@ function is useful to dynamically generate regular expressions.
@string can contain nul characters that are replaced with "\0",
in this case remember to specify the correct length of @string
in @length.
-
a newly-allocated escaped string
@@ -48538,7 +46660,6 @@ substrings, capture counts, and so on.
If this function is to be called on the same @pattern more than
once, it's more efficient to compile the pattern once with
g_regex_new() and then use g_regex_match().
-
%TRUE if the string matched, %FALSE otherwise
@@ -48590,7 +46711,6 @@ A pattern that can match empty strings splits @string into
separate characters wherever it matches the empty string between
characters. For example splitting "ab c" using as a separator
"\s*", you will get "a", "b" and "c".
-
a %NULL-terminated array of strings. Free
it using g_strfreev()
@@ -48626,7 +46746,6 @@ Due to thread safety issues this may cause leaking of strings
that were previously returned from g_get_user_special_dir()
that can't be freed. We ensure to only leak the data for
the directories that actually changed value though.
-
@@ -48636,7 +46755,6 @@ the directories that actually changed value though.
@n_structs elements of type @struct_type. It returns the new address of
the memory, which may have been moved.
Care is taken to avoid overflow when calculating the size of the allocated block.
-
the type of the elements to allocate
@@ -48650,7 +46768,6 @@ Care is taken to avoid overflow when calculating the size of the allocated block
-
@@ -48659,7 +46776,6 @@ Care is taken to avoid overflow when calculating the size of the allocated block
Internal function used to print messages from the public g_return_if_fail()
and g_return_val_if_fail() macros.
-
@@ -48679,7 +46795,6 @@ and g_return_val_if_fail() macros.
-
@@ -48688,7 +46803,6 @@ and g_return_val_if_fail() macros.
-
@@ -48700,7 +46814,6 @@ deletes a directory from the filesystem.
See your C library manual for more details about how rmdir() works
on your system.
-
0 if the directory was successfully removed, -1 if an error
occurred
@@ -48721,7 +46834,6 @@ general purpose lexical scanner.
Adds a symbol to the default scope.
Use g_scanner_scope_add_symbol() instead.
-
a #GScanner
@@ -48737,7 +46849,6 @@ general purpose lexical scanner.
Calls a function for each symbol in the default scope.
Use g_scanner_scope_foreach_symbol() instead.
-
a #GScanner
@@ -48753,7 +46864,6 @@ general purpose lexical scanner.
There is no reason to use this macro, since it does nothing.
This macro does nothing.
-
a #GScanner
@@ -48763,7 +46873,6 @@ general purpose lexical scanner.
Removes a symbol from the default scope.
Use g_scanner_scope_remove_symbol() instead.
-
a #GScanner
@@ -48776,7 +46885,6 @@ general purpose lexical scanner.
There is no reason to use this macro, since it does nothing.
This macro does nothing.
-
a #GScanner
@@ -48829,7 +46937,6 @@ insertions.
Returns the data that @iter points to.
-
the data that @iter points to
@@ -48843,7 +46950,6 @@ insertions.
Inserts a new item just before the item pointed to by @iter.
-
an iterator pointing to the new item
@@ -48864,7 +46970,6 @@ insertions.
After calling this function @dest will point to the position immediately
after @src. It is allowed for @src and @dest to point into different
sequences.
-
@@ -48889,7 +46994,6 @@ into by @begin and @end.
If @dest is %NULL, the range indicated by @begin and @end is
removed from the sequence. If @dest points to a place within
the (@begin, @end) range, the range does not move.
-
@@ -48915,7 +47019,6 @@ guaranteed to be exactly in the middle.
The @begin and @end iterators must both point to the same sequence
and @begin must come before or be equal to @end in the sequence.
-
a #GSequenceIter pointing somewhere in the
(@begin, @end) range
@@ -48938,7 +47041,6 @@ end iterator to this function.
If the sequence has a data destroy function associated with it, this
function is called on the data for the removed item.
-
@@ -48954,7 +47056,6 @@ function is called on the data for the removed item.
If the sequence has a data destroy function associated with it, this
function is called on the data for the removed items.
-
@@ -48973,7 +47074,6 @@ function is called on the data for the removed items.
Changes the data for the item pointed to by @iter to be @data. If
the sequence has a data destroy function associated with it, that
function is called on the existing data that @iter pointed to.
-
@@ -48991,7 +47091,6 @@ function is called on the existing data that @iter pointed to.
Swaps the items pointed to by @a and @b. It is allowed for @a and @b
to point into difference sequences.
-
@@ -49018,7 +47117,6 @@ be called once.
The application name will be used in contexts such as error messages,
or when displaying an application's name in the task list.
-
@@ -49032,7 +47130,6 @@ or when displaying an application's name in the task list.
Does nothing if @err is %NULL; if @err is non-%NULL, then *@err
must be %NULL. A new #GError is created and assigned to *@err.
-
@@ -49065,7 +47162,6 @@ must be %NULL. A new #GError is created and assigned to *@err.
Unlike g_set_error(), @message is not a printf()-style format string.
Use this function if @message contains text you don't have control over,
that could include printf() escape sequences.
-
@@ -49099,7 +47195,6 @@ gdk_init(), which is called by gtk_init() and the
taking the last component of @argv[0].
Note that for thread-safety reasons this function can only be called once.
-
@@ -49118,7 +47213,6 @@ the new handler. The default handler simply outputs
the message to stdout. By providing your own handler
you can redirect the output, to a GTK+ widget or a
log file for example.
-
the old print handler
@@ -49138,7 +47232,6 @@ the new handler. The default handler simply outputs the
message to stderr. By providing your own handler you can
redirect the output, to a GTK+ widget or a log file for
example.
-
the old error message handler
@@ -49170,7 +47263,6 @@ If you need to set up the environment for a child process, you can
use g_get_environ() to get an environment array, modify that with
g_environ_setenv() and g_environ_unsetenv(), and then pass that
array directly to execvpe(), g_spawn_async(), or the like.
-
%FALSE if the environment variable couldn't be set.
@@ -49215,7 +47307,6 @@ contains none of the unsupported shell expansions. If the input
does contain such expansions, they are passed through
literally. Possible errors are those from the #G_SHELL_ERROR
domain. Free the returned vector with g_strfreev().
-
%TRUE on success, %FALSE if error set
@@ -49245,7 +47336,6 @@ the shell, for example, you should first quote it with this
function. The return value must be freed with g_free(). The
quoting style used is undefined (single or double quotes may be
used).
-
quoted string
@@ -49279,7 +47369,6 @@ literal string exactly. escape sequences are not allowed; not even
like 'foo'\''bar'. Double quotes allow $, `, ", \, and newline to
be escaped with backslash. Otherwise double quotes preserve things
literally.
-
an unquoted string
@@ -49298,7 +47387,6 @@ literally.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #gsize destination
@@ -49318,7 +47406,6 @@ returned.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #gsize destination
@@ -49341,7 +47428,6 @@ the alignment may be reduced in a libc dependent fashion.
Note that the underlying slice allocation mechanism can
be changed with the [`G_SLICE=always-malloc`][G_SLICE]
environment variable.
-
a pointer to the allocated memory block, which will be %NULL if and
only if @mem_size is 0
@@ -49359,7 +47445,6 @@ environment variable.
the returned memory to 0. Note that the underlying slice allocation
mechanism can be changed with the [`G_SLICE=always-malloc`][G_SLICE]
environment variable.
-
a pointer to the allocated block, which will be %NULL if and only
if @mem_size is 0
@@ -49377,7 +47462,6 @@ environment variable.
and copies @block_size bytes into it from @mem_block.
@mem_block must be non-%NULL if @block_size is non-zero.
-
a pointer to the allocated memory block, which will be %NULL if and
only if @mem_size is 0
@@ -49406,7 +47490,6 @@ be changed with the [`G_SLICE=always-malloc`][G_SLICE]
environment variable.
This can never return %NULL.
-
the type to duplicate, typically a structure name
@@ -49427,7 +47510,6 @@ Note that the exact release behaviour can be changed with the
[`G_SLICE`][G_SLICE] for related debugging options.
If @mem is %NULL, this macro does nothing.
-
the type of the block to free, typically a structure name
@@ -49447,7 +47529,6 @@ can be changed with the [`G_DEBUG=gc-friendly`][G_DEBUG] environment
variable, also see [`G_SLICE`][G_SLICE] for related debugging options.
If @mem_block is %NULL, this function does nothing.
-
@@ -49473,7 +47554,6 @@ Note that the exact release behaviour can be changed with the
[`G_SLICE`][G_SLICE] for related debugging options.
If @mem_chain is %NULL, this function does nothing.
-
the type of the @mem_chain blocks
@@ -49498,7 +47578,6 @@ Note that the exact release behaviour can be changed with the
[`G_SLICE`][G_SLICE] for related debugging options.
If @mem_chain is %NULL, this function does nothing.
-
@@ -49518,7 +47597,6 @@ If @mem_chain is %NULL, this function does nothing.
-
@@ -49529,7 +47607,6 @@ If @mem_chain is %NULL, this function does nothing.
-
@@ -49557,7 +47634,6 @@ environment variable.
This can never return %NULL as the minimum allocation size from
`sizeof (@type)` is 1 byte.
-
the type to allocate, typically a structure name
@@ -49577,7 +47653,6 @@ environment variable.
This can never return %NULL as the minimum allocation size from
`sizeof (@type)` is 1 byte.
-
the type to allocate, typically a structure name
@@ -49585,7 +47660,6 @@ This can never return %NULL as the minimum allocation size from
-
@@ -49602,7 +47676,6 @@ This can never return %NULL as the minimum allocation size from
A convenience macro to get the next element in a #GSList.
Note that it is considered perfectly acceptable to access
@slist->next directly.
-
an element in a #GSList.
@@ -49627,7 +47700,6 @@ traditional snprintf(), which returns the length of the output string.
The format string may contain positional parameters, as specified in
the Single Unix Specification.
-
the number of bytes which would be produced if the buffer
was large enough.
@@ -49674,7 +47746,6 @@ idle may already have run and been removed by the time this function
is called on its (now invalid) source ID. This source ID may have
been reissued, leading to the operation being performed against the
wrong source.
-
For historical reasons, this function always returns %TRUE
@@ -49690,7 +47761,6 @@ wrong source.
Removes a source from the default main loop context given the
source functions and user data. If multiple sources exist with the
same source functions and user data, only one will be destroyed.
-
%TRUE if a source was found and removed.
@@ -49710,7 +47780,6 @@ same source functions and user data, only one will be destroyed.
Removes a source from the default main loop context given the user
data for the callback. If multiple sources exist with the same user
data, only one will be destroyed.
-
%TRUE if a source was found and removed.
@@ -49739,7 +47808,6 @@ idle may already have run and been removed by the time this function
is called on its (now invalid) source ID. This source ID may have
been reissued, leading to the operation being performed against the
wrong source.
-
@@ -49761,7 +47829,6 @@ size of a #GHashTable.
The built-in array of primes ranges from 11 to 13845163 such that
each prime is approximately 1.5-2 times the previous prime.
-
the smallest prime number from a built-in array of primes
which is larger than @num
@@ -49844,7 +47911,6 @@ windows on the right screen, you may want to use #GdkAppLaunchContext,
Note that the returned @child_pid on Windows is a handle to the child
process and not its identifier. Process handles and process identifiers
are different concepts on Windows.
-
%TRUE on success, %FALSE if error is set
@@ -49888,25 +47954,8 @@ are different concepts on Windows.
- Identical to g_spawn_async_with_pipes() but instead of
-creating pipes for the stdin/stdout/stderr, you can pass existing
-file descriptors into this function through the @stdin_fd,
-@stdout_fd and @stderr_fd parameters. The following @flags
-also have their behaviour slightly tweaked as a result:
-
-%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, @standard_output must be -1.
-%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, @standard_error must be -1.
-%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, @standard_input must be -1.
-
-It is valid to pass the same fd in multiple parameters (e.g. you can pass
-a single fd for both stdout and stderr).
-
+ Identical to g_spawn_async_with_pipes_and_fds() but with `n_fds` set to zero,
+so no FD assignments are used.
%TRUE on success, %FALSE if an error was set
@@ -49945,187 +47994,22 @@ a single fd for both stdout and stderr).
- file descriptor to use for child's stdin, or -1
+ file descriptor to use for child's stdin, or `-1`
- file descriptor to use for child's stdout, or -1
+ file descriptor to use for child's stdout, or `-1`
- file descriptor to use for child's stderr, or -1
+ file descriptor to use for child's stderr, or `-1`
- Executes a child program asynchronously (your program will not
-block waiting for the child to exit). The child program is
-specified by the only argument that must be provided, @argv.
-@argv should be a %NULL-terminated array of strings, to be passed
-as the argument vector for the child. The first string in @argv
-is of course the name of the program to execute. By default, the
-name of the program must be a full path. If @flags contains the
-%G_SPAWN_SEARCH_PATH flag, the `PATH` environment variable is
-used to search for the executable. If @flags contains the
-%G_SPAWN_SEARCH_PATH_FROM_ENVP flag, the `PATH` variable from
-@envp is used to search for the executable. If both the
-%G_SPAWN_SEARCH_PATH and %G_SPAWN_SEARCH_PATH_FROM_ENVP flags
-are set, the `PATH` variable from @envp takes precedence over
-the environment variable.
-
-If the program name is not a full path and %G_SPAWN_SEARCH_PATH flag is not
-used, then the program will be run from the current directory (or
-@working_directory, if specified); this might be unexpected or even
-dangerous in some cases when the current directory is world-writable.
-
-On Windows, note that all the string or string vector arguments to
-this function and the other g_spawn*() functions are in UTF-8, the
-GLib file name encoding. Unicode characters that are not part of
-the system codepage passed in these arguments will be correctly
-available in the spawned program only if it uses wide character API
-to retrieve its command line. For C programs built with Microsoft's
-tools it is enough to make the program have a wmain() instead of
-main(). wmain() has a wide character argument vector as parameter.
-
-At least currently, mingw doesn't support wmain(), so if you use
-mingw to develop the spawned program, it should call
-g_win32_get_command_line() to get arguments in UTF-8.
-
-On Windows the low-level child process creation API CreateProcess()
-doesn't use argument vectors, but a command line. The C runtime
-library's spawn*() family of functions (which g_spawn_async_with_pipes()
-eventually calls) paste the argument vector elements together into
-a command line, and the C runtime startup code does a corresponding
-reconstruction of an argument vector from the command line, to be
-passed to main(). Complications arise when you have argument vector
-elements that contain spaces or double quotes. The `spawn*()` functions
-don't do any quoting or escaping, but on the other hand the startup
-code does do unquoting and unescaping in order to enable receiving
-arguments with embedded spaces or double quotes. To work around this
-asymmetry, g_spawn_async_with_pipes() will do quoting and escaping on
-argument vector elements that need it before calling the C runtime
-spawn() function.
-
-The returned @child_pid on Windows is a handle to the child
-process, not its identifier. Process handles and process
-identifiers are different concepts on Windows.
-
-@envp is a %NULL-terminated array of strings, where each string
-has the form `KEY=VALUE`. This will become the child's environment.
-If @envp is %NULL, the child inherits its parent's environment.
-
-@flags should be the bitwise OR of any flags you want to affect the
-function's behaviour. The %G_SPAWN_DO_NOT_REAP_CHILD means that the
-child will not automatically be reaped; you must use a child watch
-(g_child_watch_add()) to be notified about the death of the child process,
-otherwise it will stay around as a zombie process until this process exits.
-Eventually you must call g_spawn_close_pid() on the @child_pid, in order to
-free resources which may be associated with the child process. (On Unix,
-using a child watch is equivalent to calling waitpid() or handling
-the %SIGCHLD signal manually. On Windows, calling g_spawn_close_pid()
-is equivalent to calling CloseHandle() on the process handle returned
-in @child_pid). See g_child_watch_add().
-
-Open UNIX file descriptors marked as `FD_CLOEXEC` will be automatically
-closed in the child process. %G_SPAWN_LEAVE_DESCRIPTORS_OPEN means that
-other open file descriptors will be inherited by the child; otherwise all
-descriptors except stdin/stdout/stderr will be closed before calling exec()
-in the child. %G_SPAWN_SEARCH_PATH means that @argv[0] need not be an
-absolute path, it will be looked for in the `PATH` environment
-variable. %G_SPAWN_SEARCH_PATH_FROM_ENVP means need not be an
-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_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, @standard_output must be %NULL.
-%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, @standard_error 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, @standard_input must be %NULL.
-%G_SPAWN_FILE_AND_ARGV_ZERO means that the first element of @argv is
-the file to execute, while the remaining elements are the actual
-argument vector to pass to the file. Normally g_spawn_async_with_pipes()
-uses @argv[0] as the file to execute, and passes all of @argv to the child.
-
-@child_setup and @user_data are a function and user data. On POSIX
-platforms, the function is called in the child after GLib has
-performed all the setup it plans to perform (including creating
-pipes, closing file descriptors, etc.) but before calling exec().
-That is, @child_setup is called just before calling exec() in the
-child. Obviously actions taken in this function will only affect
-the child, not the parent.
-
-On Windows, there is no separate fork() and exec() functionality.
-Child processes are created and run with a single API call,
-CreateProcess(). There is no sensible thing @child_setup
-could be used for on Windows so it is ignored and not called.
-
-If non-%NULL, @child_pid will on Unix be filled with the child's
-process ID. You can use the process ID to send signals to the child,
-or to use g_child_watch_add() (or waitpid()) if you specified the
-%G_SPAWN_DO_NOT_REAP_CHILD flag. On Windows, @child_pid will be
-filled with a handle to the child process only if you specified the
-%G_SPAWN_DO_NOT_REAP_CHILD flag. You can then access the child
-process using the Win32 API, for example wait for its termination
-with the WaitFor*() functions, or examine its exit code with
-GetExitCodeProcess(). You should close the handle with CloseHandle()
-or g_spawn_close_pid() when you no longer need it.
-
-If non-%NULL, the @standard_input, @standard_output, @standard_error
-locations will be filled with file descriptors for writing to the child's
-standard input or reading from its standard output or standard error.
-The caller of g_spawn_async_with_pipes() must close these file descriptors
-when they are no longer in use. If these parameters are %NULL, the
-corresponding pipe won't be created.
-
-If @standard_input is %NULL, the child's standard input is attached to
-`/dev/null` unless %G_SPAWN_CHILD_INHERITS_STDIN is set.
-
-If @standard_error is NULL, the child's standard error goes to the same
-location as the parent's standard error unless %G_SPAWN_STDERR_TO_DEV_NULL
-is set.
-
-If @standard_output is NULL, the child's standard output goes to the same
-location as the parent's standard output unless %G_SPAWN_STDOUT_TO_DEV_NULL
-is set.
-
-@error can be %NULL to ignore errors, or non-%NULL to report errors.
-If an error is set, the function returns %FALSE. Errors are reported
-even if they occur in the child (for example if the executable in
-@argv[0] is not found). Typically the `message` field of returned
-errors should be displayed to users. Possible errors are those from
-the #G_SPAWN_ERROR domain.
-
-If an error occurs, @child_pid, @standard_input, @standard_output,
-and @standard_error will not be filled with valid values.
-
-If @child_pid is not %NULL and an error does not occur then the returned
-process reference must be closed using g_spawn_close_pid().
-
-On modern UNIX platforms, GLib can use an efficient process launching
-codepath driven internally by posix_spawn(). This has the advantage of
-avoiding the fork-time performance costs of cloning the parent process
-address space, and avoiding associated memory overcommit checks that are
-not relevant in the context of immediately executing a distinct process.
-This optimized codepath will be used provided that the following conditions
-are met:
-
-1. %G_SPAWN_DO_NOT_REAP_CHILD is set
-2. %G_SPAWN_LEAVE_DESCRIPTORS_OPEN is set
-3. %G_SPAWN_SEARCH_PATH_FROM_ENVP is not set
-4. @working_directory is %NULL
-5. @child_setup is %NULL
-6. The program is of a recognised binary format, or has a shebang. Otherwise, GLib will have to execute the program through the shell, which is not done using the optimized codepath.
-
-If you are writing a GTK+ application, and the program you are spawning is a
-graphical application too, then to ensure that the spawned program opens its
-windows on the right screen, you may want to use #GdkAppLaunchContext,
-#GAppLaunchContext, or set the %DISPLAY environment variable.
-
+ Identical to g_spawn_async_with_pipes_and_fds() but with `n_fds` set to zero,
+so no FD assignments are used.
%TRUE on success, %FALSE if an error was set
@@ -50218,7 +48102,6 @@ the available platform via a macro such as %G_OS_UNIX, and use
WIFEXITED() and WEXITSTATUS() on @exit_status directly. Do not attempt
to scan or parse the error message string; it may be translated and/or
change in future versions of GLib.
-
%TRUE if child exited successfully, %FALSE otherwise (and
@error will be set)
@@ -50236,7 +48119,6 @@ change in future versions of GLib.
which must be closed to prevent resource leaking. g_spawn_close_pid()
is provided for this purpose. It should be used on all platforms, even
though it doesn't do anything under UNIX.
-
@@ -50257,7 +48139,6 @@ consider using g_spawn_async() directly if appropriate. Possible
errors are those from g_shell_parse_argv() and g_spawn_async().
The same concerns on Windows apply as for g_spawn_command_line_sync().
-
%TRUE on success, %FALSE if error is set
@@ -50292,7 +48173,6 @@ canonical Windows paths, like "c:\\program files\\app\\app.exe", as
the backslashes will be eaten, and the space will act as a
separator. You need to enclose such paths with single quotes, like
"'c:\\program files\\app\\app.exe' 'e:\\folder\\argument.txt'".
-
%TRUE on success, %FALSE if an error was set
@@ -50350,7 +48230,6 @@ If an error occurs, no data is returned in @standard_output,
This function calls g_spawn_async_with_pipes() internally; see that
function for full details on the other parameters and details on
how these functions work on Windows.
-
%TRUE on success, %FALSE if an error was set
@@ -50415,7 +48294,6 @@ risk of buffer overflow.
`glib/gprintf.h` must be explicitly included in order to use this function.
See also g_strdup_printf().
-
the number of bytes printed.
@@ -50487,7 +48365,6 @@ get_object (GObject **obj_out)
In the above example, the object will be automatically freed in the
early error case and also in the case that %NULL was given for
@obj_out.
-
a pointer to a pointer
@@ -50499,7 +48376,6 @@ early error case and also in the case that %NULL was given for
trailing nul, and return a pointer to the trailing nul byte.
This is useful for concatenating multiple strings together
without having to repeatedly scan for the end.
-
a pointer to trailing nul byte.
@@ -50524,7 +48400,6 @@ if they are equal. It can be passed to g_hash_table_new() as the
This function is typically used for hash table comparisons, but can be used
for general purpose comparisons of non-%NULL strings. For a %NULL-safe string
comparison function, see g_strcmp0().
-
%TRUE if the two keys match
@@ -50542,7 +48417,6 @@ comparison function, see g_strcmp0().
Looks whether the string @str begins with @prefix.
-
%TRUE if @str begins with @prefix, %FALSE otherwise.
@@ -50560,7 +48434,6 @@ comparison function, see g_strcmp0().
Looks whether the string @str ends with @suffix.
-
%TRUE if @str end with @suffix, %FALSE otherwise.
@@ -50591,7 +48464,6 @@ when using non-%NULL strings as keys in a #GHashTable.
Note that this function may not be a perfect fit for all use cases.
For example, it produces some hash collisions with strings as short
as 2.
-
a hash value corresponding to the key
@@ -50606,7 +48478,6 @@ as 2.
Determines if a string is pure ASCII. A string is pure ASCII if it
contains no bytes with the high bit set.
-
%TRUE if @str is ASCII
@@ -50641,7 +48512,6 @@ As some examples, searching for ‘fred’ would match the potential h
‘Frédéric’ but not ‘Frederic’ (due to the one-directional nature of
accent matching). Searching ‘fo’ would match ‘Foo’ and ‘Bar Foo
Baz’, but not ‘SFO’ (because no word has ‘fo’ as a prefix).
-
%TRUE if @potential_hit is a hit
@@ -50680,7 +48550,6 @@ If @from_locale is %NULL then the current locale is used.
If you want to do translation for no specific locale, and you want it
to be done independently of the currently locale, specify `"C"` for
@from_locale.
-
a string in plain ASCII
@@ -50712,7 +48581,6 @@ The number of ASCII alternatives that are generated and the method
for doing so is unspecified, but @translit_locale (if specified) may
improve the transliteration if the language of the source string is
known.
-
the folded tokens
@@ -50753,7 +48621,6 @@ In order to modify a copy, you may use `g_strdup()`:
...
g_free (reformatted);
]|
-
@string
@@ -50778,7 +48645,6 @@ In order to modify a copy, you may use `g_strdup()`:
strcasecmp() function on platforms which support it.
See g_strncasecmp() for a discussion of why this
function is deprecated and how to replace it.
-
0 if the strings match, a negative value if @s1 < @s2,
or a positive value if @s1 > @s2.
@@ -50805,7 +48671,6 @@ on statically allocated strings.
The pointer to @string is returned to allow the nesting of functions.
Also see g_strchug() and g_strstrip().
-
@string
@@ -50828,7 +48693,6 @@ statically allocated strings.
The pointer to @string is returned to allow the nesting of functions.
Also see g_strchomp() and g_strstrip().
-
@string
@@ -50844,7 +48708,6 @@ Also see g_strchomp() and g_strstrip().
Compares @str1 and @str2 like strcmp(). Handles %NULL
gracefully by sorting it before non-%NULL strings.
Comparing two %NULL pointers returns 0.
-
an integer less than, equal to, or greater than zero, if @str1 is <, == or > than @str2.
@@ -50864,7 +48727,6 @@ Comparing two %NULL pointers returns 0.
Replaces all escaped characters with their one byte equivalent.
This function does the reverse conversion of g_strescape().
-
a newly-allocated copy of @source with all escaped
character compressed
@@ -50887,7 +48749,6 @@ g_strconcat() will start appending random memory junk to your string.
Note that this function is usually not the right function to use to
assemble a translated message from pieces, since proper translation
often requires the pieces to be reordered.
-
a newly-allocated string containing all the string arguments
@@ -50919,7 +48780,6 @@ In order to modify a copy, you may use `g_strdup()`:
...
g_free (reformatted);
]|
-
@string
@@ -50945,7 +48805,6 @@ In order to modify a copy, you may use `g_strdup()`:
This function is totally broken for the reasons discussed
in the g_strncasecmp() docs - use g_ascii_strdown() or g_utf8_strdown()
instead.
-
the string
@@ -50961,7 +48820,6 @@ instead.
Duplicates a string. If @str is %NULL it returns %NULL.
The returned string should be freed with g_free()
when no longer needed.
-
a newly-allocated copy of @str
@@ -50982,7 +48840,6 @@ longer needed.
The returned string is guaranteed to be non-NULL, unless @format
contains `%lc` or `%ls` conversions, which can fail if no multibyte
representation is available for the given character.
-
a newly-allocated string holding the result
@@ -51011,7 +48868,6 @@ representation is available for the given character.
See also g_vasprintf(), which offers the same functionality, but
additionally returns the length of the allocated string.
-
a newly-allocated string holding the result
@@ -51033,7 +48889,6 @@ additionally returns the length of the allocated string.
the new array should be freed by first freeing each string, then
the array itself. g_strfreev() does this for you. If called
on a %NULL value, g_strdupv() simply returns %NULL.
-
a new %NULL-terminated array of strings.
@@ -51066,7 +48921,6 @@ as soon as the call returns:
g_strerror (saved_errno);
]|
-
a UTF-8 string describing the error code. If the error code
is unknown, it returns a string like "unknown error (<code>)".
@@ -51089,7 +48943,6 @@ replaced with a '\' followed by their octal representation.
Characters supplied in @exceptions are not escaped.
g_strcompress() does the reverse conversion.
-
a newly-allocated copy of @source with certain
characters escaped. See above.
@@ -51111,7 +48964,6 @@ g_strcompress() does the reverse conversion.
string it contains.
If @str_array is %NULL, this function simply returns.
-
@@ -51148,7 +49000,6 @@ not possible to free individual strings.
Creates a new #GString, initialized with the given string.
-
the new #GString
@@ -51169,7 +49020,6 @@ and can contain embedded nul bytes.
Since this function does not stop at nul bytes, it is the caller's
responsibility to ensure that @init has at least @len addressable
bytes.
-
a new #GString
@@ -51190,7 +49040,6 @@ bytes.
bytes. This is useful if you are going to add a lot of
text to the string and don't want it to be reallocated
too often.
-
the new #GString
@@ -51251,7 +49100,6 @@ and a guaranteed nul terminator.
An auxiliary function for gettext() support (see Q_()).
-
@msgval, unless @msgval is identical to @msgid
and contains a '|' character, in which case a pointer to
@@ -51273,7 +49121,6 @@ and a guaranteed nul terminator.
Joins a number of strings together to form one long string, with the
optional @separator inserted between each of them. The returned string
should be freed with g_free().
-
a newly-allocated string containing all of the strings joined
together, with @separator between them
@@ -51299,7 +49146,6 @@ should be freed with g_free().
If @str_array has no items, the return value will be an
empty string. If @str_array contains a single item, @separator will not
appear in the resulting string.
-
a newly-allocated string containing all of the strings joined
together, with @separator between them
@@ -51331,7 +49177,6 @@ characters of dest to start with).
Caveat: this is supposedly a more secure alternative to strcat() or
strncat(), but for real security g_strconcat() is harder to mess up.
-
size of attempted result, which is MIN (dest_size, strlen
(original dest)) + strlen (src), so if retval >= dest_size,
@@ -51369,7 +49214,6 @@ returns the size of the attempted result, strlen (src), so if
Caveat: strlcpy() is supposedly more secure than strcpy() or strncpy(),
but if you really want to avoid screwups, g_strdup() is an even better
idea.
-
length of @src
@@ -51408,7 +49252,6 @@ the strings.
which only works on ASCII and is not locale-sensitive, and
g_utf8_casefold() followed by strcmp() on the resulting strings,
which is good for case-insensitive sorting of UTF-8.
-
0 if the strings match, a negative value if @s1 < @s2,
or a positive value if @s1 > @s2.
@@ -51438,7 +49281,6 @@ needed.
To copy a number of characters from a UTF-8 encoded string,
use g_utf8_strncpy() instead.
-
a newly-allocated buffer containing the first @n bytes
of @str, nul-terminated
@@ -51458,7 +49300,6 @@ use g_utf8_strncpy() instead.
Creates a new string @length bytes long filled with @fill_char.
The returned string should be freed when no longer needed.
-
a newly-allocated string filled the @fill_char
@@ -51481,7 +49322,6 @@ The returned string should be freed when no longer needed.
Note that g_strreverse() doesn't work on UTF-8 strings
containing multibyte characters. For that purpose, use
g_utf8_strreverse().
-
the same pointer passed in as @string
@@ -51496,7 +49336,6 @@ g_utf8_strreverse().
Searches the string @haystack for the last occurrence
of the string @needle.
-
a pointer to the found occurrence, or
%NULL if not found.
@@ -51517,7 +49356,6 @@ of the string @needle.
Searches the string @haystack for the last occurrence
of the string @needle, limiting the length of the search
to @haystack_len.
-
a pointer to the found occurrence, or
%NULL if not found.
@@ -51529,7 +49367,8 @@ to @haystack_len.
- the maximum length of @haystack
+ the maximum length of @haystack in bytes. A length of -1
+ can be used to mean "search the entire string", like g_strrstr().
@@ -51543,7 +49382,6 @@ to @haystack_len.
You should use this function in preference to strsignal(), because it
returns a string in UTF-8 encoding, and since not all platforms support
the strsignal() function.
-
a UTF-8 string describing the signal. If the signal is unknown,
it returns "unknown signal (<signum>)".
@@ -51571,7 +49409,6 @@ special case is that being able to represent an empty vector is typically
more useful than consistent handling of empty elements. If you do need
to represent empty elements, you'll need to check for the empty string
before calling g_strsplit().
-
a newly-allocated %NULL-terminated array of strings. Use
g_strfreev() to free it.
@@ -51619,7 +49456,6 @@ before calling g_strsplit_set().
Note that this function works on bytes not characters, so it can't be used
to delimit UTF-8 strings for anything but ASCII characters.
-
a newly-allocated %NULL-terminated array of strings. Use
g_strfreev() to free it.
@@ -51649,7 +49485,6 @@ to delimit UTF-8 strings for anything but ASCII characters.
Searches the string @haystack for the first occurrence
of the string @needle, limiting the length of the search
to @haystack_len.
-
a pointer to the found occurrence, or
%NULL if not found.
@@ -51657,13 +49492,12 @@ to @haystack_len.
- a string
+ a nul-terminated string
- the maximum length of @haystack. Note that -1 is
- a valid length, if @haystack is nul-terminated, meaning it will
- search through the whole string.
+ the maximum length of @haystack in bytes. A length of -1
+ can be used to mean "search the entire string", like `strstr()`.
@@ -51675,7 +49509,6 @@ to @haystack_len.
Removes leading and trailing whitespace from a string.
See g_strchomp() and g_strchug().
-
a string to remove the leading and trailing whitespace from
@@ -51694,7 +49527,6 @@ you know that you must expect both locale formatted and C formatted numbers
should you use this. Make sure that you don't pass strings such as comma
separated lists of values, since the commas may be interpreted as a decimal
point in some locales, causing unexpected results.
-
the #gdouble value.
@@ -51716,7 +49548,6 @@ point in some locales, causing unexpected results.
This function is totally broken for the reasons
discussed in the g_strncasecmp() docs - use g_ascii_strup()
or g_utf8_strup() instead.
-
the string
@@ -51730,7 +49561,6 @@ point in some locales, causing unexpected results.
Checks if @strv contains @str. @strv must not be %NULL.
-
%TRUE if @str is an element of @strv, according to g_str_equal().
@@ -51753,7 +49583,6 @@ of order, sort the arrays first (using g_qsort_with_data() or similar).
Two empty arrays are considered equal. Neither @strv1 not @strv2 may be
%NULL.
-
%TRUE if @strv1 and @strv2 are equal
@@ -51770,7 +49599,6 @@ Two empty arrays are considered equal. Neither @strv1 not @strv2 may be
-
@@ -51778,7 +49606,6 @@ Two empty arrays are considered equal. Neither @strv1 not @strv2 may be
Returns the length of the given %NULL-terminated
string array @str_array. @str_array must not be %NULL.
-
length of @str_array.
@@ -51798,7 +49625,6 @@ similar to g_test_create_case().
g_test_add() is implemented as a macro, so that the fsetup(), ftest() and
fteardown() callbacks can expect a @Fixture pointer as their first argument
in a type safe manner. They otherwise have type #GTestFixtureFunc.
-
The test path for a new test case.
@@ -51834,7 +49660,6 @@ required via the `-p` command-line option or g_test_trap_subprocess().
No component of @testpath may start with a dot (`.`) if the
%G_TEST_OPTION_ISOLATE_DIRS option is being used; and it is recommended to
do so even if it isn’t.
-
@@ -51856,7 +49681,6 @@ do so even if it isn’t.
Create a new test case, as with g_test_add_data_func(), but freeing
@test_data after the test run is complete.
-
@@ -51892,7 +49716,6 @@ required via the `-p` command-line option or g_test_trap_subprocess().
No component of @testpath may start with a dot (`.`) if the
%G_TEST_OPTION_ISOLATE_DIRS option is being used; and it is recommended to
do so even if it isn’t.
-
@@ -51908,7 +49731,6 @@ do so even if it isn’t.
-
@@ -51934,7 +49756,6 @@ do so even if it isn’t.
-
@@ -51962,7 +49783,6 @@ assumed to be the empty string, so a full URI can be provided to
g_test_bug() instead.
See also: g_test_summary()
-
@@ -51988,7 +49808,6 @@ portion to @uri_pattern, or by replacing the special string
If g_test_bug_base() is not called, bug URIs are formed solely
from the value provided by g_test_bug().
-
@@ -52022,7 +49841,6 @@ This allows for casual running of tests directly from the commandline
in the srcdir == builddir case and should also support running of
installed tests, assuming the data files have been installed in the
same relative path as the test binary.
-
the path of the file, to be freed using g_free()
@@ -52060,7 +49878,6 @@ fixture teardown is most useful if the same fixture type is used for
multiple tests. In this cases, g_test_create_case() will be
called with the same type of fixture (the @data_size argument), but varying
@test_name and @data_test arguments.
-
a newly allocated #GTestCase.
@@ -52094,7 +49911,6 @@ called with the same type of fixture (the @data_size argument), but varying
Create a new test suite with the name @suite_name.
-
A newly allocated #GTestSuite instance.
@@ -52141,7 +49957,6 @@ abort; use g_test_trap_subprocess() in this case.
If messages at %G_LOG_LEVEL_DEBUG are emitted, but not explicitly
expected via g_test_expect_message() then they will be ignored.
-
@@ -52174,7 +49989,6 @@ produce additional diagnostic messages or even continue running
the test.
If not called from inside a test, this function does nothing.
-
@@ -52190,7 +50004,6 @@ continuing after a failed assertion might be harmful.
The return value of this function is only meaningful
if it is called from inside a test function.
-
%TRUE if the test has failed
@@ -52202,7 +50015,6 @@ specified by @file_type.
This is approximately the same as calling g_test_build_filename("."),
but you don't need to free the return value.
-
the path of the directory, owned by GLib
@@ -52227,7 +50039,6 @@ It is safe to use this function from a thread inside of a testcase
but you must ensure that all such uses occur before the main testcase
function returns (ie: it is best to ensure that all threads have been
joined).
-
the path, automatically freed at the end of the testcase
@@ -52249,7 +50060,6 @@ joined).
Get the toplevel test suite for the test path API.
-
the toplevel #GTestSuite
@@ -52266,7 +50076,6 @@ produce additional diagnostic messages or even continue running
the test.
If not called from inside a test, this function does nothing.
-
@@ -52323,7 +50132,6 @@ g_test_init() will print an error and exit. This is to prevent no-op tests
from being executed, as g_assert() is commonly (erroneously) used in unit
tests, and is a no-op when compiled with `G_DISABLE_ASSERT`. Ensure your
tests are compiled without `G_DISABLE_ASSERT` defined.
-
@@ -52366,7 +50174,6 @@ g_log_structured() or g_log_structured_array()). To change the fatal
behaviour for specific log messages, programs must install a custom log
writer function using g_log_set_writer_func().See
[Using Structured Logging][using-structured-logging].
-
@@ -52382,7 +50189,6 @@ writer function using g_log_set_writer_func().See
-
@@ -52398,7 +50204,6 @@ The test should generally strive to maximize the reported
quantities (larger values are better than smaller ones),
this and @maximized_quantity can determine sorting
order for test result reports.
-
@@ -52419,7 +50224,6 @@ order for test result reports.
Add a message to the test report.
-
@@ -52440,7 +50244,6 @@ The test should generally strive to minimize the reported
quantities (smaller values are better than larger ones),
this and @minimized_quantity can determine sorting
order for test result reports.
-
@@ -52466,7 +50269,6 @@ to auto destruct allocated test resources at the end of a test run.
Resources are released in reverse queue order, that means enqueueing
callback A before callback B will cause B() to be called before
A() during teardown.
-
@@ -52485,7 +50287,6 @@ A() during teardown.
Enqueue a pointer to be released with g_free() during the next
teardown phase. This is equivalent to calling g_test_queue_destroy()
with a destroy callback of g_free().
-
@@ -52500,7 +50301,6 @@ with a destroy callback of g_free().
Enqueue an object to be released with g_object_unref() during
the next teardown phase. This is equivalent to calling
g_test_queue_destroy() with a destroy callback of g_object_unref().
-
the object to unref
@@ -52510,7 +50310,6 @@ g_test_queue_destroy() with a destroy callback of g_object_unref().
Get a reproducible random floating point number,
see g_test_rand_int() for details on test case random numbers.
-
a random number from the seeded random number generator.
@@ -52519,7 +50318,6 @@ see g_test_rand_int() for details on test case random numbers.
Get a reproducible random floating pointer number out of a specified range,
see g_test_rand_int() for details on test case random numbers.
-
a number with @range_start <= number < @range_end.
@@ -52545,7 +50343,6 @@ given when starting test programs.
For individual test cases however, the random number generator is
reseeded, to avoid dependencies between tests and to make --seed
effective for all test cases.
-
a random number from the seeded random number generator.
@@ -52554,7 +50351,6 @@ effective for all test cases.
Get a reproducible random integer number out of a specified range,
see g_test_rand_int() for details on test case random numbers.
-
a number with @begin <= number < @end.
@@ -52603,7 +50399,6 @@ g_test_add(), which lets you specify setup and teardown functions.
If all tests are skipped or marked as incomplete (expected failures),
this function will return 0 if producing TAP output, or 77 (treated
as "skip test" by Automake) otherwise.
-
0 on success, 1 on failure (assuming it returns at all),
0 or 77 if all tests were skipped with g_test_skip() and/or
@@ -52620,7 +50415,6 @@ information on the order that tests are run in.
g_test_run_suite() or g_test_run() may only be called once
in a program.
-
0 on success
@@ -52644,7 +50438,6 @@ Note that the g_assert_not_reached() and g_assert() macros are not
affected by this.
This function can only be called after g_test_init().
-
@@ -52658,7 +50451,6 @@ produce additional diagnostic messages or even continue running
the test.
If not called from inside a test, this function does nothing.
-
@@ -52672,7 +50464,6 @@ If not called from inside a test, this function does nothing.
Returns %TRUE (after g_test_init() has been called) if the test
program is running under g_test_trap_subprocess().
-
%TRUE if the test program is running under
g_test_trap_subprocess().
@@ -52700,7 +50491,6 @@ test_array_sort (void)
]|
See also: g_test_bug()
-
@@ -52714,7 +50504,6 @@ See also: g_test_bug()
Get the time since the last start of the timer with g_test_timer_start().
-
the time since the last start of the timer, as a double
@@ -52722,7 +50511,6 @@ See also: g_test_bug()
Report the last result of g_test_timer_elapsed().
-
the last result of g_test_timer_elapsed(), as a double
@@ -52731,7 +50519,6 @@ See also: g_test_bug()
Start a timing test. Call g_test_timer_elapsed() when the task is supposed
to be done. Call this function again to restart the timer.
-
@@ -52746,7 +50533,6 @@ g_assert() or g_error(). In these situations you should skip the
entire test, including the call to g_test_trap_subprocess(), unless
g_test_undefined() returns %TRUE to indicate that undefined
behaviour may be tested.
-
a glob-style [pattern][glib-Glob-style-pattern-matching]
@@ -52756,7 +50542,6 @@ behaviour may be tested.
Assert that the stderr output of the last test subprocess
does not match @serrpattern. See g_test_trap_subprocess().
-
a glob-style [pattern][glib-Glob-style-pattern-matching]
@@ -52766,7 +50551,6 @@ does not match @serrpattern. See g_test_trap_subprocess().
Assert that the stdout output of the last test subprocess matches
@soutpattern. See g_test_trap_subprocess().
-
a glob-style [pattern][glib-Glob-style-pattern-matching]
@@ -52776,7 +50560,6 @@ does not match @serrpattern. See g_test_trap_subprocess().
Assert that the stdout output of the last test subprocess
does not match @soutpattern. See g_test_trap_subprocess().
-
a glob-style [pattern][glib-Glob-style-pattern-matching]
@@ -52784,7 +50567,6 @@ does not match @soutpattern. See g_test_trap_subprocess().
-
@@ -52841,7 +50623,6 @@ termination and validates child program outputs.
This function is implemented only on Unix platforms,
and is not always reliable due to problems inherent in
fork-without-exec. Use g_test_trap_subprocess() instead.
-
%TRUE for the forked child and %FALSE for the executing parent process.
@@ -52859,7 +50640,6 @@ fork-without-exec. Use g_test_trap_subprocess() instead.
Check the result of the last g_test_trap_subprocess() call.
-
%TRUE if the last test subprocess terminated successfully.
@@ -52867,7 +50647,6 @@ fork-without-exec. Use g_test_trap_subprocess() instead.
Check the result of the last g_test_trap_subprocess() call.
-
%TRUE if the last test subprocess got killed due to a timeout.
@@ -52935,7 +50714,6 @@ message.
return g_test_run ();
}
]|
-
@@ -53151,7 +50929,6 @@ You must only call g_thread_exit() from a thread that you created
yourself with g_thread_new() or related APIs. You must not call
this function from a thread created with another threading library
or or from within a #GThreadPool.
-
@@ -53169,7 +50946,6 @@ being stopped.
If this function returns 0, threads waiting in the thread
pool for new work are not stopped.
-
the maximum @interval (milliseconds) to wait
for new tasks in the thread pool before stopping the
@@ -53179,7 +50955,6 @@ pool for new work are not stopped.
Returns the maximal allowed number of unused threads.
-
the maximal number of unused threads
@@ -53187,7 +50962,6 @@ pool for new work are not stopped.
Returns the number of currently unused threads.
-
the number of currently unused threads
@@ -53203,7 +50977,6 @@ except this is done on a per thread basis.
By setting @interval to 0, idle threads will not be stopped.
The default value is 15000 (15 seconds).
-
@@ -53221,7 +50994,6 @@ If @max_threads is -1, no limit is imposed on the number
of unused threads.
The default value is 2.
-
@@ -53236,7 +51008,6 @@ The default value is 2.
Stops all currently unused threads. This does not change the
maximal number of unused threads. This function can be used to
regularly stop all unused threads e.g. from g_timeout_add().
-
@@ -53282,7 +51053,6 @@ were not created by GLib (i.e. those created by other threading
APIs). This may be useful for thread identification purposes
(i.e. comparisons) but you must not use GLib functions (such
as g_thread_join()) on these threads.
-
the #GThread representing the current thread
@@ -53293,7 +51063,6 @@ as g_thread_join()) on these threads.
that other threads can run.
This function is often used as a method to make busy wait less evil.
-
@@ -53409,7 +51178,6 @@ g_date_time_unref (dt);
]|
#GTimeVal is not year-2038-safe. Use
g_date_time_new_from_iso8601() instead.
-
%TRUE if the conversion was successful.
@@ -53456,7 +51224,6 @@ It is safe to call this function from any thread.
The interval given is in terms of monotonic time, not wall clock
time. See g_get_monotonic_time().
-
the ID (greater than 0) of the event source.
@@ -53502,7 +51269,6 @@ use a custom main context.
The interval given is in terms of monotonic time, not wall clock time.
See g_get_monotonic_time().
-
the ID (greater than 0) of the event source.
@@ -53554,7 +51320,6 @@ on how to handle the return value and memory management of @data.
The interval given is in terms of monotonic time, not wall clock
time. See g_get_monotonic_time().
-
the ID (greater than 0) of the event source.
@@ -53613,7 +51378,6 @@ It is safe to call this function from any thread.
The interval given is in terms of monotonic time, not wall clock
time. See g_get_monotonic_time().
-
the ID (greater than 0) of the event source.
@@ -53651,7 +51415,6 @@ executed.
The interval given is in terms of monotonic time, not wall clock
time. See g_get_monotonic_time().
-
the newly-created timeout source
@@ -53675,7 +51438,6 @@ in seconds.
The interval given is in terms of monotonic time, not wall clock time.
See g_get_monotonic_time().
-
the newly-created timeout source
@@ -53740,7 +51502,6 @@ extra pieces of memory, free() them and allocate them again later.
Note that execution of this function is of O(N) complexity
where N denotes the number of items on the stack.
#GTrashStack is deprecated without replacement
-
the height of the stack
@@ -53756,7 +51517,6 @@ where N denotes the number of items on the stack.
Returns the element at the top of a #GTrashStack
which may be %NULL.
#GTrashStack is deprecated without replacement
-
the element at the top of the stack
@@ -53771,7 +51531,6 @@ which may be %NULL.
Pops a piece of memory off a #GTrashStack.
#GTrashStack is deprecated without replacement
-
the element at the top of the stack
@@ -53786,7 +51545,6 @@ which may be %NULL.
Pushes a piece of memory onto a #GTrashStack.
#GTrashStack is deprecated without replacement
-
@@ -53801,7 +51559,7 @@ which may be %NULL.
-
+
The #GTree structure and its associated functions provide a sorted
collection of key/value pairs optimized for searching and traversing
in order. This means that most of the operations (access, search,
@@ -53827,7 +51585,7 @@ the traversal, use g_tree_foreach().
To destroy a #GTree, use g_tree_destroy().
-
+
The #GNode struct and its associated functions provide a N-ary tree
data structure, where nodes in the tree can contain arbitrary data.
@@ -53862,7 +51620,6 @@ g_node_destroy().
Attempts to allocate @n_bytes, and returns %NULL on failure.
Contrast with g_malloc(), which aborts the program on failure.
-
the allocated memory, or %NULL.
@@ -53877,7 +51634,6 @@ Contrast with g_malloc(), which aborts the program on failure.
Attempts to allocate @n_bytes, initialized to 0's, and returns %NULL on
failure. Contrast with g_malloc0(), which aborts the program on failure.
-
the allocated memory, or %NULL
@@ -53892,7 +51648,6 @@ failure. Contrast with g_malloc0(), which aborts the program on failure.
This function is similar to g_try_malloc0(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
the allocated memory, or %NULL
@@ -53911,7 +51666,6 @@ but care is taken to detect possible overflow during multiplication.
This function is similar to g_try_malloc(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
the allocated memory, or %NULL.
@@ -53932,7 +51686,6 @@ but care is taken to detect possible overflow during multiplication.
%NULL on failure. Contrast with g_new(), which aborts the program on failure.
The returned pointer is cast to a pointer to the given type.
The function returns %NULL when @n_structs is 0 of if an overflow occurs.
-
the type of the elements to allocate
@@ -53948,7 +51701,6 @@ to 0's, and returns %NULL on failure. Contrast with g_new0(), which aborts
the program on failure.
The returned pointer is cast to a pointer to the given type.
The function returns %NULL when @n_structs is 0 or if an overflow occurs.
-
the type of the elements to allocate
@@ -53964,7 +51716,6 @@ on failure. Contrast with g_realloc(), which aborts the program
on failure.
If @mem is %NULL, behaves the same as g_try_malloc().
-
the allocated memory, or %NULL.
@@ -53983,7 +51734,6 @@ If @mem is %NULL, behaves the same as g_try_malloc().
This function is similar to g_try_realloc(), allocating (@n_blocks * @n_block_bytes) bytes,
but care is taken to detect possible overflow during multiplication.
-
the allocated memory, or %NULL.
@@ -54009,7 +51759,6 @@ space for @n_structs elements of type @struct_type, and returns %NULL on
failure. Contrast with g_renew(), which aborts the program on failure.
It returns the new address of the memory, which may have been moved.
The function returns %NULL if an overflow occurs.
-
the type of the elements to allocate
@@ -54089,7 +51838,6 @@ any C99 compatible printf() implementation.
Convert a string from UCS-4 to UTF-16. A 0 character will be
added to the result after the converted text.
-
a pointer to a newly allocated UTF-16 string.
This value must be freed with g_free(). If an error occurs,
@@ -54123,7 +51871,6 @@ added to the result after the converted text.
Convert a string from a 32-bit fixed width representation as UCS-4.
to UTF-8. The result will be terminated with a 0 byte.
-
a pointer to a newly allocated UTF-8 string.
This value must be freed with g_free(). If an error occurs,
@@ -54161,7 +51908,6 @@ to UTF-8. The result will be terminated with a 0 byte.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #guint64 destination
@@ -54181,7 +51927,6 @@ returned.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #guint64 destination
@@ -54201,7 +51946,6 @@ returned.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #guint destination
@@ -54221,7 +51965,6 @@ returned.
If the operation is successful, %TRUE is returned. If the operation
overflows then the state of @dest is undefined and %FALSE is
returned.
-
a pointer to the #guint destination
@@ -54241,7 +51984,6 @@ g_utf8_get_char()). The break type is used to find word and line
breaks ("text boundaries"), Pango implements the Unicode boundary
resolution algorithms and normally you would use a function such
as pango_break() instead of caring about break types yourself.
-
the break type of @c
@@ -54255,7 +51997,6 @@ as pango_break() instead of caring about break types yourself.
Determines the canonical combining class of a Unicode character.
-
the combining class of the character
@@ -54284,7 +52025,6 @@ If @a and @b do not compose a new character, @ch is set to zero.
See
[UAX#15](http://unicode.org/reports/tr15/)
for details.
-
%TRUE if the characters could be composed
@@ -54328,7 +52068,6 @@ g_unichar_fully_decompose().
See
[UAX#15](http://unicode.org/reports/tr15/)
for details.
-
%TRUE if the character could be decomposed
@@ -54351,7 +52090,6 @@ for details.
Determines the numeric value of a character as a decimal
digit.
-
If @c is a decimal digit (according to
g_unichar_isdigit()), its numeric value. Otherwise, -1.
@@ -54384,7 +52122,6 @@ as %G_UNICHAR_MAX_DECOMPOSITION_LENGTH.
See
[UAX#15](http://unicode.org/reports/tr15/)
for details.
-
the length of the full decomposition.
@@ -54418,7 +52155,6 @@ If @ch has the Unicode mirrored property and there is another unicode
character that typically has a glyph that is the mirror image of @ch's
glyph and @mirrored_ch is set, it puts that character in the address
pointed to by @mirrored_ch. Otherwise the original character is put.
-
%TRUE if @ch has a mirrored character, %FALSE otherwise
@@ -54442,7 +52178,6 @@ result is undefined.
This function is equivalent to pango_script_for_unichar() and the
two are interchangeable.
-
the #GUnicodeScript for the character.
@@ -54458,7 +52193,6 @@ two are interchangeable.
Determines whether a character is alphanumeric.
Given some UTF-8 text, obtain a character value
with g_utf8_get_char().
-
%TRUE if @c is an alphanumeric character
@@ -54474,7 +52208,6 @@ with g_utf8_get_char().
Determines whether a character is alphabetic (i.e. a letter).
Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is an alphabetic character
@@ -54490,7 +52223,6 @@ g_utf8_get_char().
Determines whether a character is a control character.
Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is a control character
@@ -54505,7 +52237,6 @@ g_utf8_get_char().
Determines if a given character is assigned in the Unicode
standard.
-
%TRUE if the character has an assigned value
@@ -54521,7 +52252,6 @@ standard.
Determines whether a character is numeric (i.e. a digit). This
covers ASCII 0-9 and also digits in other languages/scripts. Given
some UTF-8 text, obtain a character value with g_utf8_get_char().
-
%TRUE if @c is a digit
@@ -54539,7 +52269,6 @@ some UTF-8 text, obtain a character value with g_utf8_get_char().
spaces). g_unichar_isprint() is similar, but returns %TRUE for
spaces. Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is printable unless it's a space
@@ -54555,7 +52284,6 @@ g_utf8_get_char().
Determines whether a character is a lowercase letter.
Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is a lowercase letter
@@ -54577,7 +52305,6 @@ Note: in most cases where isalpha characters are allowed,
ismark characters should be allowed to as they are essential
for writing most European languages as well as many non-Latin
scripts.
-
%TRUE if @c is a mark character
@@ -54594,7 +52321,6 @@ scripts.
Unlike g_unichar_isgraph(), returns %TRUE for spaces.
Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is printable
@@ -54610,7 +52336,6 @@ g_utf8_get_char().
Determines whether a character is punctuation or a symbol.
Given some UTF-8 text, obtain a character value with
g_utf8_get_char().
-
%TRUE if @c is a punctuation or symbol character
@@ -54630,7 +52355,6 @@ character value with g_utf8_get_char().
(Note: don't use this to do word breaking; you have to use
Pango or equivalent to get word breaking right, the algorithm
is fairly complex.)
-
%TRUE if @c is a space character
@@ -54649,7 +52373,6 @@ have three case variants instead of just two. The titlecase
form is used at the beginning of a word where only the
first letter is capitalized. The titlecase form of the DZ
digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z.
-
%TRUE if the character is titlecase
@@ -54663,7 +52386,6 @@ digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z.
Determines if a character is uppercase.
-
%TRUE if @c is an uppercase character
@@ -54678,7 +52400,6 @@ digraph is U+01F2 LATIN CAPITAL LETTTER D WITH SMALL LETTER Z.
Determines if a character is typically rendered in a double-width
cell.
-
%TRUE if the character is wide
@@ -54701,7 +52422,6 @@ for details.
If a character passes the g_unichar_iswide() test then it will also pass
this test, but not the other way around. Note that some characters may
pass both this test and g_unichar_iszerowidth().
-
%TRUE if the character is wide in legacy East Asian locales
@@ -54715,7 +52435,6 @@ pass both this test and g_unichar_iszerowidth().
Determines if a character is a hexadecimal digit.
-
%TRUE if the character is a hexadecimal digit
@@ -54737,7 +52456,6 @@ A typical use of this function is with one of g_unichar_iswide() or
g_unichar_iswide_cjk() to determine the number of cells a string occupies
when displayed on a grid display (terminals). However, note that not all
terminals support zero-width rendering of zero-width marks.
-
%TRUE if the character has zero width
@@ -54751,7 +52469,6 @@ terminals support zero-width rendering of zero-width marks.
Converts a single character to UTF-8.
-
number of bytes written
@@ -54771,7 +52488,6 @@ terminals support zero-width rendering of zero-width marks.
Converts a character to lower case.
-
the result of converting @c to lower case.
If @c is not an upperlower or titlecase character,
@@ -54787,7 +52503,6 @@ terminals support zero-width rendering of zero-width marks.
Converts a character to the titlecase.
-
the result of converting @c to titlecase.
If @c is not an uppercase or lowercase character,
@@ -54803,7 +52518,6 @@ terminals support zero-width rendering of zero-width marks.
Converts a character to uppercase.
-
the result of converting @c to uppercase.
If @c is not a lowercase or titlecase character,
@@ -54819,7 +52533,6 @@ terminals support zero-width rendering of zero-width marks.
Classifies a Unicode character by type.
-
the type of the character.
@@ -54835,7 +52548,6 @@ terminals support zero-width rendering of zero-width marks.
Checks whether @ch is a valid Unicode character. Some possible
integer values of @ch will not be valid. 0 is considered a valid
character, though it's normally a string terminator.
-
%TRUE if @ch is a valid Unicode character
@@ -54850,7 +52562,6 @@ character, though it's normally a string terminator.
Determines the numeric value of a character as a hexadecimal
digit.
-
If @c is a hex digit (according to
g_unichar_isxdigit()), its numeric value. Otherwise, -1.
@@ -54897,7 +52608,6 @@ on the Unicode Character Data tables, which are available from
Computes the canonical decomposition of a Unicode character.
Use the more flexible g_unichar_fully_decompose()
instead.
-
a newly allocated string of Unicode characters.
@result_len is set to the resulting length of the string.
@@ -54919,7 +52629,6 @@ on the Unicode Character Data tables, which are available from
This rearranges decomposed characters in the string
according to their combining classes. See the Unicode
manual for more information.
-
@@ -54944,7 +52653,6 @@ big-endian fashion. That is, the code expected for Arabic is
See
[Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html)
for details.
-
the Unicode script for @iso15924, or
of %G_UNICODE_SCRIPT_INVALID_CODE if @iso15924 is zero and
@@ -54968,7 +52676,6 @@ big-endian fashion. That is, the code returned for Arabic is
See
[Codes for the representation of names of scripts](http://unicode.org/iso15924/codelists.html)
for details.
-
the ISO 15924 code for @script, encoded as an integer,
of zero if @script is %G_UNICODE_SCRIPT_INVALID_CODE or
@@ -55001,7 +52708,6 @@ The return value of this function can be passed to g_source_remove()
to cancel the watch at any time that it exists.
The source will never close the fd -- you must do it yourself.
-
the ID (greater than 0) of the event source
@@ -55032,7 +52738,6 @@ The source will never close the fd -- you must do it yourself.
This is the same as g_unix_fd_add(), except that it allows you to
specify a non-default priority and a provide a #GDestroyNotify for
@user_data.
-
the ID (greater than 0) of the event source
@@ -55069,7 +52774,6 @@ specify a non-default priority and a provide a #GDestroyNotify for
descriptor.
The source will never close the fd -- you must do it yourself.
-
the newly created #GSource
@@ -55097,7 +52801,6 @@ freed.
This function is safe to call from multiple threads concurrently.
You will need to include `pwd.h` to get the definition of `struct passwd`.
-
passwd entry, or %NULL on error; free the returned
value with g_free()
@@ -55119,7 +52822,6 @@ must still be done separately with fcntl().
This function does not take %O_CLOEXEC, it takes %FD_CLOEXEC as if
for fcntl(); these are different on Linux/glibc.
-
%TRUE on success, %FALSE if not (and errno will be set).
@@ -55139,7 +52841,6 @@ for fcntl(); these are different on Linux/glibc.
Control the non-blocking state of the given file descriptor,
according to @nonblock. On most systems this uses %O_NONBLOCK, but
on some older ones may use %O_NDELAY.
-
%TRUE if successful
@@ -55159,7 +52860,6 @@ on some older ones may use %O_NDELAY.
A convenience function for g_unix_signal_source_new(), which
attaches to the default #GMainContext. You can remove the watch
using g_source_remove().
-
An ID (greater than 0) for the event source
@@ -55183,7 +52883,6 @@ using g_source_remove().
A convenience function for g_unix_signal_source_new(), which
attaches to the default #GMainContext. You can remove the watch
using g_source_remove().
-
An ID (greater than 0) for the event source
@@ -55236,7 +52935,6 @@ functions like sigprocmask() is not defined.
The source will not initially be associated with any #GMainContext
and must be added to one with g_source_attach() before it will be
executed.
-
A newly created #GSource
@@ -55257,7 +52955,6 @@ file is freed.
See your C library manual for more details about unlink(). Note
that on Windows, it is in general not possible to delete files that
are open to some process, or mapped into memory.
-
0 if the name was successfully deleted, -1 if an error
occurred
@@ -55289,7 +52986,6 @@ If you need to set up the environment for a child process, you can
use g_get_environ() to get an environment array, modify that with
g_environ_setenv() and g_environ_unsetenv(), and then pass that
array directly to execvpe(), g_spawn_async(), or the like.
-
@@ -55306,7 +53002,6 @@ array directly to execvpe(), g_spawn_async(), or the like.
See also g_uri_build_with_user(), which allows specifying the
components of the "userinfo" separately.
-
a new #GUri
@@ -55355,7 +53050,6 @@ coherent with the passed values, in particular use `%`-encoded values with
In contrast to g_uri_build(), this allows specifying the components
of the ‘userinfo’ field separately. Note that @user must be non-%NULL
if either @password or @auth_params is non-%NULL.
-
a new #GUri
@@ -55420,10 +53114,9 @@ portions of a URI.
Though technically incorrect, this will also allow escaping nul
bytes as `%``00`.
-
- an escaped version of @unescaped. The returned
- string should be freed when no longer needed.
+ an escaped version of @unescaped.
+ The returned string should be freed when no longer needed.
@@ -55453,10 +53146,9 @@ escaped. But if you specify characters in @reserved_chars_allowed
they are not escaped. This is useful for the "reserved" characters
in the URI specification, since those are allowed unescaped in some
portions of a URI.
-
- an escaped version of @unescaped. The returned string
-should be freed when no longer needed.
+ an escaped version of @unescaped. The
+returned string should be freed when no longer needed.
@@ -55484,7 +53176,6 @@ If it’s not a valid URI, an error is returned explaining how it’s
See g_uri_split(), and the definition of #GUriFlags, for more
information on the effect of @flags.
-
%TRUE if @uri_string is a valid absolute URI, %FALSE on error.
@@ -55515,7 +53206,6 @@ components of the ‘userinfo’ separately.
%G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set
in @flags.
-
an absolute URI string
@@ -55565,7 +53255,6 @@ of the ‘userinfo’ separately. It otherwise behaves the same.
%G_URI_FLAGS_HAS_PASSWORD and %G_URI_FLAGS_HAS_AUTH_PARAMS are ignored if set
in @flags.
-
an absolute URI string
@@ -55619,7 +53308,6 @@ in @flags.
Splits an URI list conforming to the text/uri-list
mime type defined in RFC 2483 into individual URIs,
discarding any comments. The URIs are not validated.
-
a newly allocated %NULL-terminated list
of strings holding the individual URIs. The array should be freed
@@ -55639,9 +53327,8 @@ discarding any comments. The URIs are not validated.
Parses @uri_string according to @flags. If the result is not a
valid [absolute URI][relative-absolute-uris], it will be discarded, and an
error returned.
-
- a new #GUri.
+ a new #GUri, or NULL on error.
@@ -55680,11 +53367,10 @@ the returned attributes.
If @params cannot be parsed (for example, it contains two @separators
characters in a row), then @error is set and %NULL is returned.
-
- A hash table of
- attribute/value pairs, with both names and values fully-decoded; or %NULL
- on error.
+
+ A hash table of attribute/value pairs, with both names and values
+ fully-decoded; or %NULL on error.
@@ -55722,7 +53408,6 @@ as:
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
]|
Common schemes include `file`, `https`, `svn+ssh`, etc.
-
The ‘scheme’ component of the URI, or
%NULL on error. The returned string should be freed when no longer needed.
@@ -55746,7 +53431,6 @@ Common schemes include `file`, `https`, `svn+ssh`, etc.
Unlike g_uri_parse_scheme(), the returned scheme is normalized to
all-lowercase and does not need to be freed.
-
The ‘scheme’ component of the URI, or
%NULL on error. The returned string is normalized to all-lowercase, and
@@ -55768,9 +53452,9 @@ discarded, and an error returned.
(If @base_uri_string is %NULL, this just returns @uri_ref, or
%NULL if @uri_ref is invalid or not absolute.)
-
- the resolved URI string.
+ the resolved URI string,
+or NULL on error.
@@ -55805,7 +53489,6 @@ Note that the %G_URI_FLAGS_HAS_PASSWORD and
%G_URI_FLAGS_HAS_AUTH_PARAMS @flags are ignored by g_uri_split(),
since it always returns only the full userinfo; use
g_uri_split_with_user() if you want it split up.
-
%TRUE if @uri_ref parsed successfully, %FALSE
on error.
@@ -55864,7 +53547,6 @@ See the documentation for g_uri_split() for more details; this is
mostly a wrapper around that function with simpler arguments.
However, it will return an error if @uri_string is a relative URI,
or does not contain a hostname component.
-
%TRUE if @uri_string parsed successfully,
%FALSE on error.
@@ -55908,7 +53590,6 @@ information on the effect of @flags. Note that @password will only
be parsed out if @flags contains %G_URI_FLAGS_HAS_PASSWORD, and
@auth_params will only be parsed out if @flags contains
%G_URI_FLAGS_HAS_AUTH_PARAMS.
-
%TRUE if @uri_ref parsed successfully, %FALSE
on error.
@@ -55981,11 +53662,10 @@ character in @escaped_string, then that is an error and %NULL will be
returned. This is useful if you want to avoid for instance having a slash
being expanded in an escaped path element, which might confuse pathname
handling.
-
- an unescaped version of @escaped_string or %NULL on
- error (if decoding failed, using %G_URI_ERROR_FAILED error code). The
- returned #GBytes should be unreffed when no longer needed.
+ an unescaped version of @escaped_string
+ or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error
+ code). The returned #GBytes should be unreffed when no longer needed.
@@ -56016,12 +53696,11 @@ escaped path element, which might confuse pathname handling.
Note: `NUL` byte is not accepted in the output, in contrast to
g_uri_unescape_bytes().
-
-
- an unescaped version of @escaped_string or %NULL on error.
-The returned string should be freed when no longer needed. As a
-special case if %NULL is given for @escaped_string, this function
-will return %NULL.
+
+ an unescaped version of @escaped_string,
+or %NULL on error. The returned string should be freed when no longer
+needed. As a special case if %NULL is given for @escaped_string, this
+function will return %NULL.
@@ -56049,10 +53728,9 @@ character appears as an escaped character in @escaped_string, then
that is an error and %NULL will be returned. This is useful if you
want to avoid for instance having a slash being expanded in an
escaped path element, which might confuse pathname handling.
-
-
- an unescaped version of @escaped_string. The returned string
-should be freed when no longer needed.
+
+ an unescaped version of @escaped_string.
+The returned string should be freed when no longer needed.
@@ -56074,7 +53752,6 @@ There are 1 million microseconds per second (represented by the
#G_USEC_PER_SEC macro). g_usleep() may have limited precision,
depending on hardware and operating system; don't rely on the exact
length of the sleep.
-
@@ -56088,7 +53765,6 @@ length of the sleep.
Convert a string from UTF-16 to UCS-4. The result will be
nul-terminated.
-
a pointer to a newly allocated UCS-4 string.
This value must be freed with g_free(). If an error occurs,
@@ -56133,8 +53809,7 @@ Further note that this function does not validate the result
string; it may e.g. include embedded NUL characters. The only
validation done by this function is to ensure that the input can
be correctly interpreted as UTF-16, i.e. it doesn't contain
-things unpaired surrogates.
-
+unpaired surrogates or partial character sequences.
a pointer to a newly allocated UTF-8 string.
This value must be freed with g_free(). If an error occurs,
@@ -56178,7 +53853,6 @@ ordering, though it is a fairly good one. Getting this exactly
right would require a more sophisticated collation function that
takes case sensitivity into account. GLib does not currently
provide such a function.
-
a newly allocated string, that is a
case independent form of @str.
@@ -56202,7 +53876,6 @@ When sorting a large number of strings, it will be significantly
faster to obtain collation keys with g_utf8_collate_key() and
compare the keys with strcmp() when sorting instead of sorting
the original strings.
-
< 0 if @str1 compares before @str2,
0 if they compare equal, > 0 if @str1 compares after @str2.
@@ -56229,7 +53902,6 @@ with strcmp() will always be the same as comparing the two
original keys with g_utf8_collate().
Note that this function depends on the [current locale][setlocale].
-
a newly allocated string. This string should
be freed with g_free() when you are done with it.
@@ -56258,7 +53930,6 @@ would like to treat numbers intelligently so that "file1" "file10" "file5"
is sorted as "file1" "file5" "file10".
Note that this function depends on the [current locale][setlocale].
-
a newly allocated string. This string should
be freed with g_free() when you are done with it.
@@ -56286,7 +53957,6 @@ If @end is %NULL, the return value will never be %NULL: if the end of the
string is reached, a pointer to the terminating nul byte is returned. If
@end is non-%NULL, the return value will be %NULL if the end of the string
is reached.
-
a pointer to the found character or %NULL if @end is
set and is reached
@@ -56312,7 +53982,6 @@ UTF-8 characters are present in @str before @p.
@p does not have to be at the beginning of a UTF-8 character. No check
is made to see if the character found is actually valid other than
it starts with an appropriate byte.
-
a pointer to the found character or %NULL.
@@ -56335,7 +54004,6 @@ If @p does not point to a valid UTF-8 encoded character, results
are undefined. If you are not sure that the bytes are complete
valid Unicode characters, you should use g_utf8_get_char_validated()
instead.
-
the resulting character
@@ -56356,7 +54024,6 @@ overlong encodings of valid characters.
Note that g_utf8_get_char_validated() returns (gunichar)-2 if
@max_len is positive and any of the bytes in the first UTF-8 character
sequence are nul.
-
the resulting character. If @p points to a partial
sequence at the end of a string that could begin a valid
@@ -56386,7 +54053,6 @@ a string that was incorrectly declared to be UTF-8, and you need a valid
UTF-8 version of it that can be logged or displayed to the user, with the
assumption that it is close enough to ASCII or UTF-8 to be mostly
readable as-is.
-
a valid UTF-8 string whose content resembles @str
@@ -56410,7 +54076,6 @@ You would use this macro to iterate over a string character by
character. The macro returns the start of the next UTF-8 character.
Before using this macro, use g_utf8_validate() to validate strings
that may contain invalid UTF-8.
-
Pointer to the start of a valid UTF-8 character
@@ -56443,7 +54108,6 @@ than a maximally decomposed form. This is often
useful if you intend to convert the string to
a legacy encoding or pass it to a system with
less capable Unicode handling.
-
a newly allocated string, that
is the normalized form of @str, or %NULL if @str
@@ -56479,7 +54143,6 @@ Therefore you should be sure that @offset is within string boundaries
before calling that function. Call g_utf8_strlen() when unsure.
This limitation exists as this function is called frequently during
text rendering and therefore has to be as fast as possible.
-
the resulting pointer
@@ -56501,7 +54164,6 @@ character offset.
Since 2.10, this function allows @pos to be before @str, and returns
a negative offset in this case.
-
the resulting character offset
@@ -56524,7 +54186,6 @@ a negative offset in this case.
is made to see if the character found is actually valid other than
it starts with an appropriate byte. If @p might be the first
character of the string, you must use g_utf8_find_prev_char() instead.
-
a pointer to the found character
@@ -56540,7 +54201,6 @@ character of the string, you must use g_utf8_find_prev_char() instead.
Finds the leftmost occurrence of the given Unicode character
in a UTF-8 encoded string, while limiting the search to @len bytes.
If @len is -1, allow unbounded search.
-
%NULL if the string does not contain the character,
otherwise, a pointer to the start of the leftmost occurrence
@@ -56567,7 +54227,6 @@ If @len is -1, allow unbounded search.
to lowercase. The exact manner that this is done depends
on the current locale, and may result in the number of
characters in the string changing.
-
a newly allocated string, with all characters
converted to lowercase.
@@ -56588,7 +54247,6 @@ characters in the string changing.
Computes the length of the string in characters, not including
the terminating nul character. If the @max'th byte falls in the
middle of a character, the last (partial) character is not counted.
-
the length of the string in characters
@@ -56616,7 +54274,6 @@ text before trying to use UTF-8 utility functions with it.)
Note you must ensure @dest is at least 4 * @n to fit the
largest possible UTF-8 characters
-
@dest
@@ -56640,7 +54297,6 @@ largest possible UTF-8 characters
Find the rightmost occurrence of the given Unicode character
in a UTF-8 encoded string, while limiting the search to @len bytes.
If @len is -1, allow unbounded search.
-
%NULL if the string does not contain the character,
otherwise, a pointer to the start of the rightmost occurrence
@@ -56676,7 +54332,6 @@ for display purposes.
Note that unlike g_strreverse(), this function returns
newly-allocated memory, which should be freed with g_free() when
no longer needed.
-
a newly-allocated string which is the reverse of @str
@@ -56699,7 +54354,6 @@ to uppercase. The exact manner that this is done depends
on the current locale, and may result in the number of
characters in the string increasing. (For instance, the
German ess-zet will be changed to SS.)
-
a newly allocated string, with all characters
converted to uppercase.
@@ -56719,7 +54373,6 @@ German ess-zet will be changed to SS.)
Copies a substring out of a UTF-8 encoded string.
The substring will contain @end_pos - @start_pos characters.
-
a newly allocated copy of the requested
substring. Free with g_free() when no longer needed.
@@ -56744,7 +54397,6 @@ The substring will contain @end_pos - @start_pos characters.
Convert a string from UTF-8 to a 32-bit fixed width
representation as UCS-4. A trailing 0 character will be added to the
string after the converted text.
-