summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:48:29 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:48:29 +0000
commit3c0199b39f39e2851f8d198e0ff0e29bc9f804a9 (patch)
tree65b00b41e71a25dac651dcbf1d88d057d6756ff2 /daemon
parenta440ba6be49c960ebec2d572a84809b2b4d71609 (diff)
downloadgvfs-3c0199b39f39e2851f8d198e0ff0e29bc9f804a9.tar.gz
Add get/set_is_automount methods
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171366021 +0100 svn path=/trunk/; revision=337
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gmountsource.c17
-rw-r--r--daemon/gmountsource.h3
2 files changed, 19 insertions, 1 deletions
diff --git a/daemon/gmountsource.c b/daemon/gmountsource.c
index e07e08a1..db76611e 100644
--- a/daemon/gmountsource.c
+++ b/daemon/gmountsource.c
@@ -12,6 +12,7 @@ struct _GMountSource
GMountSpec *mount_spec;
char *dbus_id;
char *obj_path;
+ gboolean is_automount;
};
G_DEFINE_TYPE (GMountSource, g_mount_source, G_TYPE_OBJECT);
@@ -41,8 +42,22 @@ g_mount_source_class_init (GMountSourceClass *klass)
}
static void
-g_mount_source_init (GMountSource *backend)
+g_mount_source_init (GMountSource *mount_source)
{
+ mount_source->is_automount = FALSE;
+}
+
+void
+g_mount_source_set_is_automount (GMountSource *source,
+ gboolean is_automount)
+{
+ source->is_automount = is_automount;
+}
+
+gboolean
+g_mount_source_get_is_automount (GMountSource *source)
+{
+ return source->is_automount;
}
GMountSource *
diff --git a/daemon/gmountsource.h b/daemon/gmountsource.h
index 6a14a87e..720dbf4c 100644
--- a/daemon/gmountsource.h
+++ b/daemon/gmountsource.h
@@ -41,6 +41,9 @@ void g_mount_source_request_mount_spec_async (GMountSource
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);
G_END_DECLS