gfile: Add Async API to create a temporary directory and return as GFile

While it's possible to create a directory synchronously via
g_dir_make_tmp(), there's no such API that performs it asynchronously.

So implement it using GFile, using a thread to perform such task.
This commit is contained in:
Marco Trevisan (Treviño)
2022-06-01 20:32:36 +02:00
parent fa24391529
commit 22e951e6ac
4 changed files with 212 additions and 0 deletions

View File

@@ -86,6 +86,8 @@ g_file_new_for_commandline_arg_and_cwd
g_file_new_tmp
g_file_new_tmp_async
g_file_new_tmp_finish
g_file_new_tmp_dir_async
g_file_new_tmp_dir_finish
g_file_parse_name
g_file_new_build_filename
g_file_dup