summaryrefslogtreecommitdiff
path: root/daemon/gvfsftptask.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-08-06 21:00:11 +0200
committerBenjamin Otte <otte@gnome.org>2009-08-06 21:08:53 +0200
commit21383e40e4cadf52f2bbf9ba463b9e85d02e122e (patch)
tree2fcf622c8a57a67cceda46728cda9c37f3df8287 /daemon/gvfsftptask.h
parentc81297016b0d089acfba393d02cb09731faa21d3 (diff)
downloadgvfs-21383e40e4cadf52f2bbf9ba463b9e85d02e122e.tar.gz
[FTP] Bug 590793 - Can't copy folders over FTP
Duplicate the machinery for returning the proper error when the source is a directory from gio and use it in the pull vfunc.
Diffstat (limited to 'daemon/gvfsftptask.h')
-rw-r--r--daemon/gvfsftptask.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsftptask.h b/daemon/gvfsftptask.h
index ac0bd74b..a496c0ad 100644
--- a/daemon/gvfsftptask.h
+++ b/daemon/gvfsftptask.h
@@ -56,6 +56,7 @@ typedef void (* GVfsFtpErrorFunc) (GVfsFtpTask *task, gpointer data);
void g_vfs_ftp_task_done (GVfsFtpTask * task);
#define g_vfs_ftp_task_is_in_error(task) ((task)->error != NULL)
+#define g_vfs_ftp_task_error_matches(task, domain, code) (g_error_matches ((task)->error, (domain), (code)))
#define g_vfs_ftp_task_clear_error(task) (g_clear_error (&(task)->error))
void g_vfs_ftp_task_set_error_from_response (GVfsFtpTask * task,
guint response);