diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:52:48 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:52:48 +0000 |
commit | 33c426ccc11fc9d2de26a022eeb95c9f36678159 (patch) | |
tree | c30bb755ff1b8b92cc917a4f1f2b01698ef63c9c /common/gmountsource.h | |
parent | 38f67b33bfb856fcc07d0d263121ab43d356e97e (diff) | |
download | gvfs-33c426ccc11fc9d2de26a022eeb95c9f36678159.tar.gz |
Added manual mount operation
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171468958 +0100
svn path=/trunk/; revision=345
Diffstat (limited to 'common/gmountsource.h')
-rw-r--r-- | common/gmountsource.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/common/gmountsource.h b/common/gmountsource.h new file mode 100644 index 00000000..b62840ac --- /dev/null +++ b/common/gmountsource.h @@ -0,0 +1,64 @@ +#ifndef __G_MOUNT_SOURCE_H__ +#define __G_MOUNT_SOURCE_H__ + +#include <glib-object.h> +#include <gmountspec.h> +#include <gio/gmountoperation.h> + +G_BEGIN_DECLS + +#define G_TYPE_MOUNT_SOURCE (g_mount_source_get_type ()) +#define G_MOUNT_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_MOUNT_SOURCE, GMountSource)) +#define G_MOUNT_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_MOUNT_SOURCE, GMountSourceClass)) +#define G_IS_MOUNT_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_MOUNT_SOURCE)) +#define G_IS_MOUNT_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_MOUNT_SOURCE)) +#define G_MOUNT_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_MOUNT_SOURCE, GMountSourceClass)) + +typedef struct _GMountSource GMountSource; +typedef struct _GMountSourceClass GMountSourceClass; + +struct _GMountSourceClass +{ + GObjectClass parent_class; +}; + +typedef void (*RequestMountSpecCallback) (GMountSource *source, + GMountSpec *mount_spec, + GError *error, + gpointer data); + + +GType g_mount_source_get_type (void) G_GNUC_CONST; + +GMountSource *g_mount_source_new_dbus (const char *dbus_id, + const char *obj_path, + GMountSpec *spec); +GMountSource *g_mount_source_new_null (GMountSpec *spec); +void g_mount_source_to_dbus (GMountSource *source, + DBusMessage *message); +GMountSpec * g_mount_source_request_mount_spec (GMountSource *source, + GError **error); +void g_mount_source_request_mount_spec_async (GMountSource *source, + RequestMountSpecCallback callback, + gpointer data); +void g_mount_source_done (GMountSource *source); +void g_mount_source_failed (GMountSource *source, + GError *error); +void g_mount_source_set_is_automount (GMountSource *source, + gboolean is_automount); +gboolean g_mount_source_get_is_automount (GMountSource *source); +gboolean g_mount_source_ask_password (GMountSource *mount_source, + const char *message, + const char *initial_user, + const char *initial_domain, + GPasswordFlags flags, + gboolean *aborted, + char **password_out, + char **user_out, + char **domain_out); + + + +G_END_DECLS + +#endif /* __G_MOUNT_SOURCE_H__ */ |