Function
GioFilenew_tmp_dir_async
since: 2.74
Declaration
void
g_file_new_tmp_dir_async (
const char* tmpl,
int io_priority,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Asynchronously creates a directory in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_dir_make_tmp().
tmpl should be a string in the GLib file name encoding
containing a sequence of six ‘X’ characters, and containing no
directory components. If it is NULL, a default template is used.
Available since: 2.74
Parameters
tmpl-
Type:
const char*Template for the file name, as in g_dir_make_tmp(), or
NULLfor a default template.The argument can be NULL.The data is owned by the caller of the function. The value is a file system path, using the OS encoding. io_priority-
Type:
intThe [I/O priority][io-priority] of the request.
cancellable-
Type:
GCancellableOptional
GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is done. user_data-
Type:
gpointerData to pass to
callback.The argument can be NULL.The data is owned by the caller of the function.