diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:36:39 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:36:39 +0000 |
commit | 9fe4dd51c2dd85a73459e7d51e524d017a25280f (patch) | |
tree | 2dea4aa6a0345d1a93dfe3ea372505ea471ddeb7 /daemon/gvfsjobmount.h | |
parent | 251a45241a878f2e8bcb9ecebf472291a95d76c4 (diff) | |
download | gvfs-9fe4dd51c2dd85a73459e7d51e524d017a25280f.tar.gz |
Move mounting into a GVfsJob
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171041742 +0100
svn path=/trunk/; revision=315
Diffstat (limited to 'daemon/gvfsjobmount.h')
-rw-r--r-- | daemon/gvfsjobmount.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/daemon/gvfsjobmount.h b/daemon/gvfsjobmount.h new file mode 100644 index 00000000..655371c3 --- /dev/null +++ b/daemon/gvfsjobmount.h @@ -0,0 +1,42 @@ +#ifndef __G_VFS_JOB_MOUNT_H__ +#define __G_VFS_JOB_MOUNT_H__ + +#include <gio/gfileinfo.h> +#include <gvfsjob.h> +#include <gvfsjobdbus.h> +#include <gvfsbackend.h> + +G_BEGIN_DECLS + +#define G_TYPE_VFS_JOB_MOUNT (g_vfs_job_mount_get_type ()) +#define G_VFS_JOB_MOUNT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_VFS_JOB_MOUNT, GVfsJobMount)) +#define G_VFS_JOB_MOUNT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_VFS_JOB_MOUNT, GVfsJobMountClass)) +#define G_IS_VFS_JOB_MOUNT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_VFS_JOB_MOUNT)) +#define G_IS_VFS_JOB_MOUNT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_VFS_JOB_MOUNT)) +#define G_VFS_JOB_MOUNT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_VFS_JOB_MOUNT, GVfsJobMountClass)) + +typedef struct _GVfsJobMountClass GVfsJobMountClass; + +struct _GVfsJobMount +{ + GVfsJob parent_instance; + + GVfsBackend *backend; + GMountSpec *mount_spec; + GMountSource *mount_source; +}; + +struct _GVfsJobMountClass +{ + GVfsJobClass parent_class; +}; + +GType g_vfs_job_mount_get_type (void) G_GNUC_CONST; + +GVfsJob *g_vfs_job_mount_new (GMountSpec *spec, + GMountSource *source, + GVfsBackend *backend); + +G_END_DECLS + +#endif /* __G_VFS_JOB_MOUNT_H__ */ |