diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gmountsource.c | 17 | ||||
-rw-r--r-- | daemon/gmountsource.h | 3 |
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 |