diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-02-12 12:06:06 +0200 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-02-12 15:53:13 +0000 |
commit | 25e5d50fa881b133acdac4cc4675dadd6f3e6242 (patch) | |
tree | 3d62010772b0682e8a0d70adbd6c4e1c16d2b68c | |
parent | 9894c7ebd9f0795082a03d3bd555d9a1b0e3900e (diff) | |
download | gobject-introspection-25e5d50fa881b133acdac4cc4675dadd6f3e6242.tar.gz |
Update glib introspection data
This is based on f9c08308ea0c25977b4e0153e868cb0a8703b75e
-rw-r--r-- | gir/gio-2.0.c | 48 | ||||
-rw-r--r-- | gir/glib-2.0.c | 52 |
2 files changed, 98 insertions, 2 deletions
diff --git a/gir/gio-2.0.c b/gir/gio-2.0.c index 3948e45f..badf8025 100644 --- a/gir/gio-2.0.c +++ b/gir/gio-2.0.c @@ -12209,6 +12209,10 @@ * consumed, they will no longer be visible to the default handling * (which treats them as filenames to be opened). * + * The dict includes options that have been explicitly specified on the parsed + * commandline, as well as zero values for numeric options that were not + * necessarily specified. + * * It is important to use the proper GVariant format when retrieving * the options with g_variant_dict_lookup(): * - for %G_OPTION_ARG_NONE, use `b` @@ -24787,6 +24791,50 @@ /** + * g_file_move_async: + * @source: #GFile pointing to the source location + * @destination: #GFile pointing to the destination location + * @flags: set of #GFileCopyFlags + * @io_priority: the [I/O priority][io-priority] of the request + * @cancellable: (nullable): optional #GCancellable object, + * %NULL to ignore + * @progress_callback: (nullable) (scope call): #GFileProgressCallback + * function for updates + * @progress_callback_data: (closure): gpointer to user data for + * the callback function + * @callback: a #GAsyncReadyCallback to call + * when the request is satisfied + * @user_data: the data to pass to callback function + * + * Asynchronously moves a file @source to the location of @destination. For details of the behaviour, see g_file_move(). + * + * If @progress_callback is not %NULL, then that function that will be called + * just like in g_file_move(). The callback will run in the default main context + * of the thread calling g_file_move_async() — the same context as @callback is + * run in. + * + * When the operation is finished, @callback will be called. You can then call + * g_file_move_finish() to get the result of the operation. + * + * Since: 2.72 + */ + + +/** + * g_file_move_finish: + * @file: input source #GFile + * @result: a #GAsyncResult + * @error: a #GError, or %NULL + * + * Finishes an asynchronous file movement, started with + * g_file_move_async(). + * + * Returns: %TRUE on successful file move, %FALSE otherwise. + * Since: 2.72 + */ + + +/** * g_file_new_build_filename: * @first_element: (type filename): the first element in the path * @...: remaining elements in path, terminated by %NULL diff --git a/gir/glib-2.0.c b/gir/glib-2.0.c index d0691884..f09b3de6 100644 --- a/gir/glib-2.0.c +++ b/gir/glib-2.0.c @@ -9208,6 +9208,51 @@ /** + * g_aligned_alloc: + * @n_blocks: the number of blocks to allocate + * @n_block_bytes: the size of each block in bytes + * @alignment: the alignment to be enforced, which must be a positive power of 2 + * and a multiple of `sizeof(void*)` + * + * This function is similar to g_malloc(), allocating (@n_blocks * @n_block_bytes) + * bytes, but care is taken to align the allocated memory to with the given + * alignment value. Additionally, it will detect possible overflow during + * multiplication. + * + * Aligned memory allocations returned by this function can only be + * freed using g_aligned_free(). + * + * Returns: (transfer full): the allocated memory + * Since: 2.72 + */ + + +/** + * g_aligned_alloc0: + * @n_blocks: the number of blocks to allocate + * @n_block_bytes: the size of each block in bytes + * @alignment: the alignment to be enforced, which must be a positive power of 2 + * and a multiple of `sizeof(void*)` + * + * This function is similar to g_aligned_alloc(), but it will + * also clear the allocated memory before returning it. + * + * Returns: (transfer full): the allocated, cleared memory + * Since: 2.72 + */ + + +/** + * g_aligned_free: + * @mem: (nullable): the memory to deallocate + * + * Frees the memory allocated by g_aligned_alloc(). + * + * Since: 2.72 + */ + + +/** * g_array_append_val: * @a: a #GArray * @v: the value to append to the #GArray @@ -31420,6 +31465,8 @@ * any target FDs which equal @stdin_fd, @stdout_fd or @stderr_fd will overwrite * them in the spawned process. * + * @source_fds is supported on Windows since 2.72. + * * %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() @@ -34296,9 +34343,10 @@ /** * g_test_timer_elapsed: * - * Get the time since the last start of the timer with g_test_timer_start(). + * Get the number of seconds since the last start of the timer with + * g_test_timer_start(). * - * Returns: the time since the last start of the timer, as a double + * Returns: the time since the last start of the timer in seconds, as a double * Since: 2.16 */ |