mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
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:
@@ -636,6 +636,15 @@ GLIB_AVAILABLE_IN_2_74
|
||||
GFile * g_file_new_tmp_finish (GAsyncResult *result,
|
||||
GFileIOStream **iostream,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_74
|
||||
void g_file_new_tmp_dir_async (const char *tmpl,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GLIB_AVAILABLE_IN_2_74
|
||||
GFile * g_file_new_tmp_dir_finish (GAsyncResult *result,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GFile * g_file_parse_name (const char *parse_name);
|
||||
GLIB_AVAILABLE_IN_2_56
|
||||
|
Reference in New Issue
Block a user