[gvfs/wip/rishi/goa: 5/5] foo
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/rishi/goa: 5/5] foo
- Date: Wed, 5 Aug 2015 18:16:55 +0000 (UTC)
commit 96b9061f8550d6ce2c76a5d37ac4732b170bafb4
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jun 30 18:28:28 2015 +0200
foo
daemon/gvfsbackendgoogle.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendgoogle.c b/daemon/gvfsbackendgoogle.c
index 3490756..5df6d2f 100644
--- a/daemon/gvfsbackendgoogle.c
+++ b/daemon/gvfsbackendgoogle.c
@@ -763,6 +763,19 @@ remove_monitor_weak_ref (gpointer monitor,
/* ---------------------------------------------------------------------------------------------------- */
static void
+g_vfs_backend_google_append_to (GVfsBackend *_self,
+ GVfsJobOpenForWrite *job,
+ const gchar *filename,
+ GFileCreateFlags flags)
+{
+ g_debug ("+ append_to: %s\n", filename);
+ g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_FAILED, _("append_to doesn't work"));
+ g_debug ("- append_to\n");
+}
+
+/* ---------------------------------------------------------------------------------------------------- */
+
+static void
close_read_cb (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
@@ -1025,6 +1038,19 @@ g_vfs_backend_google_copy (GVfsBackend *_self,
/* ---------------------------------------------------------------------------------------------------- */
+static void
+g_vfs_backend_google_create (GVfsBackend *_self,
+ GVfsJobOpenForWrite *job,
+ const gchar *filename,
+ GFileCreateFlags flags)
+{
+ g_debug ("+ create: %s\n", filename);
+ g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_FAILED, _("create doesn't work"));
+ g_debug ("- create\n");
+}
+
+/* ---------------------------------------------------------------------------------------------------- */
+
static gboolean
g_vfs_backend_google_create_dir_monitor (GVfsBackend *_self,
GVfsJobCreateMonitor *job,
@@ -2490,9 +2516,11 @@ g_vfs_backend_google_class_init (GVfsBackendGoogleClass * klass)
gobject_class->dispose = g_vfs_backend_google_dispose;
gobject_class->finalize = g_vfs_backend_google_finalize;
+ backend_class->append_to = g_vfs_backend_google_append_to;
backend_class->try_close_read = g_vfs_backend_google_close_read;
backend_class->close_write = g_vfs_backend_google_close_write;
backend_class->copy = g_vfs_backend_google_copy;
+ backend_class->create = g_vfs_backend_google_create;
backend_class->try_create_dir_monitor = g_vfs_backend_google_create_dir_monitor;
backend_class->delete = g_vfs_backend_google_delete;
backend_class->enumerate = g_vfs_backend_google_enumerate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]