summaryrefslogtreecommitdiff
path: root/daemon/gvfsjob.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 12:06:04 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 12:06:04 +0000
commit29273dce9eb75ee2d9d93a1ed9d142ac6492ad7d (patch)
tree9eb631edd056fc2b1b933390a20c3b04e0a055ff /daemon/gvfsjob.c
parentdee304079ebed5309f4b034add4cd28a4360d22d (diff)
downloadgvfs-29273dce9eb75ee2d9d93a1ed9d142ac6492ad7d.tar.gz
Add g_vfs_job_failed_from_errno
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1172069724 +0100 svn path=/trunk/; revision=370
Diffstat (limited to 'daemon/gvfsjob.c')
-rw-r--r--daemon/gvfsjob.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/daemon/gvfsjob.c b/daemon/gvfsjob.c
index 91dc8952..40e6a49f 100644
--- a/daemon/gvfsjob.c
+++ b/daemon/gvfsjob.c
@@ -211,6 +211,19 @@ g_vfs_job_failed_from_error (GVfsJob *job,
}
void
+g_vfs_job_failed_from_errno (GVfsJob *job,
+ gint errno_arg)
+{
+ GError *error = NULL;
+
+ g_set_error (&error, G_FILE_ERROR,
+ g_file_error_from_errno (errno_arg),
+ g_strerror (errno_arg));
+ g_vfs_job_failed_from_error (job, error);
+ g_error_free (error);
+}
+
+void
g_vfs_job_succeeded (GVfsJob *job)
{
job->failed = FALSE;