diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:09:24 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:09:24 +0000 |
commit | b3f4c44d1d2478ea3d7e2cb515ee9738a6406adf (patch) | |
tree | 8ed9d08752b04385ca9f0745e2b655984e6163fe /common/gmountspec.h | |
parent | 9b8448b797829d22d1360985e80b1e45d9bc5e7c (diff) | |
download | gvfs-b3f4c44d1d2478ea3d7e2cb515ee9738a6406adf.tar.gz |
Starting to work on actually registering the backends as mounted
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1169826631 +0100
svn path=/trunk/; revision=269
Diffstat (limited to 'common/gmountspec.h')
-rw-r--r-- | common/gmountspec.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/common/gmountspec.h b/common/gmountspec.h new file mode 100644 index 00000000..4e082c5f --- /dev/null +++ b/common/gmountspec.h @@ -0,0 +1,31 @@ +#ifndef __G_MOUNT_SPEC_H__ +#define __G_MOUNT_SPEC_H__ + +#include <glib.h> +#include <dbus/dbus.h> + +G_BEGIN_DECLS + +typedef struct { + char *key; + char *value; +} GMountSpecItem; + +typedef struct { + GArray *items; + char *mount_prefix; +} GMountSpec; + +GMountSpec *g_mount_spec_new (void); +void g_mount_spec_free (GMountSpec *spec); +GMountSpec *g_mount_spec_from_dbus (DBusMessageIter *iter); +void g_mount_spec_to_dbus (DBusMessageIter *iter, + GMountSpec *spec); +void g_mount_spec_add_item (GMountSpec *spec, + const char *key, + const char *value); + +G_END_DECLS + + +#endif /* __G_MOUNT_SPEC_H__ */ |