diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:11:13 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 11:11:13 +0000 |
commit | 25c02c0c24c0acb6562555a216b3ccf11ace5ce4 (patch) | |
tree | 24bd8d6326e390065016ec9b4396e0c1c8a89f6f /common/gmountspec.h | |
parent | c242ee7bd91313a5222021a8ecfc19ee15d02da6 (diff) | |
download | gvfs-25c02c0c24c0acb6562555a216b3ccf11ace5ce4.tar.gz |
Add g_mount_spec_match
Export dbus types
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1170070729 +0100
svn path=/trunk/; revision=272
Diffstat (limited to 'common/gmountspec.h')
-rw-r--r-- | common/gmountspec.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/common/gmountspec.h b/common/gmountspec.h index 4e082c5f..34979056 100644 --- a/common/gmountspec.h +++ b/common/gmountspec.h @@ -6,6 +6,24 @@ G_BEGIN_DECLS +#define G_MOUNT_SPEC_ITEM_INNER_TYPE_AS_STRING \ + DBUS_TYPE_STRING_AS_STRING \ + DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING + +#define G_MOUNT_SPEC_ITEM_TYPE_AS_STRING \ + DBUS_STRUCT_BEGIN_CHAR_AS_STRING \ + G_MOUNT_SPEC_ITEM_INNER_TYPE_AS_STRING \ + DBUS_STRUCT_END_CHAR_AS_STRING + +#define G_MOUNT_SPEC_INNER_TYPE_AS_STRING \ + DBUS_TYPE_ARRAY_AS_STRING DBUS_TYPE_BYTE_AS_STRING \ + DBUS_TYPE_ARRAY_AS_STRING G_MOUNT_SPEC_ITEM_TYPE_AS_STRING + +#define G_MOUNT_SPEC_TYPE_AS_STRING \ + DBUS_STRUCT_BEGIN_CHAR_AS_STRING \ + G_MOUNT_SPEC_INNER_TYPE_AS_STRING \ + DBUS_STRUCT_END_CHAR_AS_STRING + typedef struct { char *key; char *value; @@ -24,6 +42,8 @@ void g_mount_spec_to_dbus (DBusMessageIter *iter, void g_mount_spec_add_item (GMountSpec *spec, const char *key, const char *value); +gboolean g_mount_spec_match (GMountSpec *mount, + GMountSpec *path); G_END_DECLS |