mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
Add async version of g_file_make_directory()
https://bugzilla.gnome.org/show_bug.cgi?id=548353
This commit is contained in:
25
gio/gfile.h
25
gio/gfile.h
@@ -111,8 +111,8 @@ typedef struct _GFileIface GFileIface;
|
||||
* @trash_async: Asynchronously sends a #GFile to the Trash location.
|
||||
* @trash_finish: Finishes an asynchronous file trashing operation.
|
||||
* @make_directory: Makes a directory.
|
||||
* @_make_directory_async: Asynchronously makes a directory.
|
||||
* @_make_directory_finish: Finishes making a directory asynchronously.
|
||||
* @make_directory_async: Asynchronously makes a directory.
|
||||
* @make_directory_finish: Finishes making a directory asynchronously.
|
||||
* @make_symbolic_link: Makes a symbolic link.
|
||||
* @_make_symbolic_link_async: Asynchronously makes a symbolic link
|
||||
* @_make_symbolic_link_finish: Finishes making a symbolic link asynchronously.
|
||||
@@ -377,8 +377,14 @@ struct _GFileIface
|
||||
gboolean (* make_directory) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _make_directory_async) (void);
|
||||
void (* _make_directory_finish) (void);
|
||||
void (* make_directory_async) (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* make_directory_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
gboolean (* make_symbolic_link) (GFile *file,
|
||||
const char *symlink_value,
|
||||
@@ -891,6 +897,17 @@ GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_file_make_directory (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GLIB_AVAILABLE_IN_2_38
|
||||
void g_file_make_directory_async (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GLIB_AVAILABLE_IN_2_38
|
||||
gboolean g_file_make_directory_finish (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_file_make_directory_with_parents (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
|
Reference in New Issue
Block a user