summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackend.h
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-06-17 09:49:44 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-06-17 09:50:35 -0400
commit4053577a19585c63e23e6c6e85011e2df9910745 (patch)
tree8c77e6ab423827a8623e7b55ad77ef362eb669af /daemon/gvfsbackend.h
parent8a72222d454bdf12e88402b2f012667e7c8e9754 (diff)
downloadgvfs-4053577a19585c63e23e6c6e85011e2df9910745.tar.gz
Bug 585591 – Starting/stopping drives
This is the GVfs implementation for the new GIO API for starting/stopping drives. See http://bugzilla.gnome.org/show_bug.cgi?id=585591 for details.
Diffstat (limited to 'daemon/gvfsbackend.h')
-rw-r--r--daemon/gvfsbackend.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/daemon/gvfsbackend.h b/daemon/gvfsbackend.h
index f2bed486..ee68bd86 100644
--- a/daemon/gvfsbackend.h
+++ b/daemon/gvfsbackend.h
@@ -47,6 +47,8 @@ typedef struct _GVfsJobMount GVfsJobMount;
typedef struct _GVfsJobUnmount GVfsJobUnmount;
typedef struct _GVfsJobMountMountable GVfsJobMountMountable;
typedef struct _GVfsJobUnmountMountable GVfsJobUnmountMountable;
+typedef struct _GVfsJobStartMountable GVfsJobStartMountable;
+typedef struct _GVfsJobStopMountable GVfsJobStopMountable;
typedef struct _GVfsJobOpenForRead GVfsJobOpenForRead;
typedef struct _GVfsJobOpenIconForRead GVfsJobOpenIconForRead;
typedef struct _GVfsJobSeekRead GVfsJobSeekRead;
@@ -415,6 +417,23 @@ struct _GVfsBackendClass
gboolean (*try_query_writable_namespaces) (GVfsBackend *backend,
GVfsJobQueryAttributes *job,
const char *filename);
+
+ void (*start_mountable) (GVfsBackend *backend,
+ GVfsJobStartMountable *job,
+ const char *filename,
+ GMountSource *mount_source);
+ gboolean (*try_start_mountable) (GVfsBackend *backend,
+ GVfsJobStartMountable *job,
+ const char *filename,
+ GMountSource *mount_source);
+ void (*stop_mountable) (GVfsBackend *backend,
+ GVfsJobStopMountable *job,
+ const char *filename,
+ GMountUnmountFlags flags);
+ gboolean (*try_stop_mountable) (GVfsBackend *backend,
+ GVfsJobStopMountable *job,
+ const char *filename,
+ GMountUnmountFlags flags);
};
GType g_vfs_backend_get_type (void) G_GNUC_CONST;