diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 10:37:17 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 10:37:17 +0000 |
commit | 31d8952c4e4e97018537902993889dcd5299c991 (patch) | |
tree | e4c5b065dcd0227fd3108d7d9fb2902aad3e87b0 /daemon/gvfsdaemonutils.c | |
parent | a9784aaf042b61102e1b311ec9a4e2f33d771bd7 (diff) | |
download | gvfs-31d8952c4e4e97018537902993889dcd5299c991.tar.gz |
Further work on new dbus model
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165831898 +0100
svn path=/trunk/; revision=221
Diffstat (limited to 'daemon/gvfsdaemonutils.c')
-rw-r--r-- | daemon/gvfsdaemonutils.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/daemon/gvfsdaemonutils.c b/daemon/gvfsdaemonutils.c index abb35a2f..8358811b 100644 --- a/daemon/gvfsdaemonutils.c +++ b/daemon/gvfsdaemonutils.c @@ -265,24 +265,25 @@ g_error_to_daemon_reply (GError *error, guint32 seq_nr, gsize *len_out) return buffer; } -gboolean +void _g_dbus_message_iter_append_filename (DBusMessageIter *iter, const char *filename) { DBusMessageIter array; + if (filename == NULL) + filename = ""; + if (!dbus_message_iter_open_container (iter, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE_AS_STRING, &array)) - return FALSE; + g_error ("out of memory"); if (!dbus_message_iter_append_fixed_array (&array, DBUS_TYPE_BYTE, &filename, strlen (filename))) - return FALSE; + g_error ("out of memory"); if (!dbus_message_iter_close_container (iter, &array)) - return FALSE; - - return TRUE; + g_error ("out of memory"); } |