summaryrefslogtreecommitdiff
path: root/gio/gfile.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-01-24 11:04:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-01-24 11:04:05 +0000
commit270df8d3c8bec0dd7b5dbfb1523b83048334c9e7 (patch)
treece55148fd336ff7be816d698028571e7e89545a7 /gio/gfile.h
parentbebb750ac2135e1f1a1d1d6f6dec7904de857115 (diff)
downloadglib-270df8d3c8bec0dd7b5dbfb1523b83048334c9e7.tar.gz
Add g_file_copy_async() (#511580) Based on patch from Carlos Garcia Campos
2008-01-24 Alexander Larsson <alexl@redhat.com> * gfile.[ch]: * gfile.h: * gio.symbols: Add g_file_copy_async() (#511580) Based on patch from Carlos Garcia Campos svn path=/trunk/; revision=6363
Diffstat (limited to 'gio/gfile.h')
-rw-r--r--gio/gfile.h30
1 files changed, 26 insertions, 4 deletions
diff --git a/gio/gfile.h b/gio/gfile.h
index 797daa457..196d040e7 100644
--- a/gio/gfile.h
+++ b/gio/gfile.h
@@ -228,8 +228,8 @@ typedef gboolean (* GFileReadMoreCallback) (const char *file_contents,
* @_make_symbolic_link_async: Asynchronously makes a symbolic link
* @_make_symbolic_link_finish: Finishes making a symbolic link asynchronously.
* @copy: Copies a file.
- * @_copy_async: Asynchronously copies a file.
- * @_copy_finish: Finishes an asynchronous copy operation.
+ * @copy_async: Asynchronously copies a file.
+ * @copy_finish: Finishes an asynchronous copy operation.
* @move: Moves a file.
* @_move_async: Asynchronously moves a file.
* @_move_finish: Finishes an asynchronous move operation.
@@ -466,8 +466,18 @@ struct _GFileIface
GFileProgressCallback progress_callback,
gpointer progress_callback_data,
GError **error);
- void (*_copy_async) (void);
- void (*_copy_finish) (void);
+ void (*copy_async) (GFile *source,
+ GFile *destination,
+ GFileCopyFlags flags,
+ int io_priority,
+ GCancellable *cancellable,
+ GFileProgressCallback progress_callback,
+ gpointer progress_callback_data,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+ gboolean (*copy_finish) (GFile *file,
+ GAsyncResult *res,
+ GError **error);
gboolean (*move) (GFile *source,
GFile *destination,
@@ -685,6 +695,18 @@ gboolean g_file_copy (GFile
GFileProgressCallback progress_callback,
gpointer progress_callback_data,
GError **error);
+void g_file_copy_async (GFile *source,
+ GFile *destination,
+ GFileCopyFlags flags,
+ int io_priority,
+ GCancellable *cancellable,
+ GFileProgressCallback progress_callback,
+ gpointer progress_callback_data,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean g_file_copy_finish (GFile *file,
+ GAsyncResult *res,
+ GError **error);
gboolean g_file_move (GFile *source,
GFile *destination,
GFileCopyFlags flags,