diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-12-14 15:58:48 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-12-14 15:58:48 +0000 |
commit | 1786f200ae623a2eba332b3fda7a40dad167b669 (patch) | |
tree | 2df4ca2d9c357c176ff1839906b70482730d02a0 /common/gvfsdaemonprotocol.h | |
parent | 13b389addd8ac5fb2dde7fc7b025adb509f8ac67 (diff) | |
download | gvfs-1786f200ae623a2eba332b3fda7a40dad167b669.tar.gz |
Update for gio API changes (removal of GFileAttributeValue).
2007-12-14 Alexander Larsson <alexl@redhat.com>
* client/gdaemonfile.c:
* client/gdaemonfileinputstream.c:
* client/gvfsfusedaemon.c:
* common/gvfsdaemonprotocol.c:
* common/gvfsdaemonprotocol.h:
* daemon/gvfsbackend.h:
* daemon/gvfsjobsetattribute.c:
* daemon/gvfsjobsetattribute.h:
* programs/gvfs-info.c:
* programs/gvfs-ls.c:
Update for gio API changes (removal of GFileAttributeValue).
svn path=/trunk/; revision=1041
Diffstat (limited to 'common/gvfsdaemonprotocol.h')
-rw-r--r-- | common/gvfsdaemonprotocol.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/common/gvfsdaemonprotocol.h b/common/gvfsdaemonprotocol.h index 5e12cec5..f47c9bb2 100644 --- a/common/gvfsdaemonprotocol.h +++ b/common/gvfsdaemonprotocol.h @@ -147,15 +147,28 @@ typedef struct { DBUS_STRUCT_END_CHAR_AS_STRING +typedef union { + gboolean boolean; + guint32 uint32; + guint64 uint64; + gpointer ptr; +} GDbusAttributeValue; + +void _g_dbus_attribute_value_destroy (GFileAttributeType type, + GDbusAttributeValue *value); +gpointer _g_dbus_attribute_as_pointer (GFileAttributeType type, + GDbusAttributeValue *value); const char*_g_dbus_type_from_file_attribute_type (GFileAttributeType type); void _g_dbus_append_file_attribute (DBusMessageIter *iter, const char *attribute, - const GFileAttributeValue *value); + GFileAttributeType type, + gpointer value_p); void _g_dbus_append_file_info (DBusMessageIter *iter, GFileInfo *file_info); gboolean _g_dbus_get_file_attribute (DBusMessageIter *iter, gchar **attribute, - GFileAttributeValue *value); + GFileAttributeType *type, + GDbusAttributeValue *value); GFileInfo *_g_dbus_get_file_info (DBusMessageIter *iter, GError **error); |