summaryrefslogtreecommitdiff
path: root/common/gmountspec.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:14:02 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 11:14:02 +0000
commitd36c5665264b43302d739f9d2a0babb8e6c6353f (patch)
tree7a45639e49e4a272d7bb91e5892340f988078068 /common/gmountspec.c
parent3c9f59e9bb4e28eb1534976c34300e3854bc0925 (diff)
downloadgvfs-d36c5665264b43302d739f9d2a0babb8e6c6353f.tar.gz
Add type arg to g_mount_spec_new
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170078894 +0100 svn path=/trunk/; revision=276
Diffstat (limited to 'common/gmountspec.c')
-rw-r--r--common/gmountspec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/gmountspec.c b/common/gmountspec.c
index 32d9327a..aa9b172d 100644
--- a/common/gmountspec.c
+++ b/common/gmountspec.c
@@ -18,13 +18,16 @@ item_compare (const void *_a, const void *_b)
}
GMountSpec *
-g_mount_spec_new (void)
+g_mount_spec_new (const char *type)
{
GMountSpec *spec;
spec = g_new0 (GMountSpec, 1);
spec->items = g_array_new (FALSE, TRUE, sizeof (GMountSpecItem));
+ if (type != NULL)
+ g_mount_spec_add_item (spec, "type", type);
+
return spec;
}
@@ -99,7 +102,7 @@ g_mount_spec_from_dbus (DBusMessageIter *iter)
0))
return NULL;
- spec = g_mount_spec_new ();
+ spec = g_mount_spec_new (NULL);
spec->mount_prefix = mount_prefix;
if (dbus_message_iter_get_arg_type (&spec_iter) != DBUS_TYPE_ARRAY ||