DBUS_TYPE_BYTE support missing in dbus_message_append_args_valist

Johan Hedberg johan.hedberg@nokia.com
Sun, 14 Dec 2003 00:51:42 +0200


--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline

Hi,

dbus_message_append_args_valist function in dbus-message.c seems to lack
support for DBUS_TYPE_BYTE. This is true for both CVS and 0.20 versions.
The attatched patch adds this support (very trivial).

br,
Johan

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="dbus-message.c.diff"

--- dbus-message.c	2003-12-02 12:44:21 +0200
+++ dbus-message.new.c	2003-12-14 00:15:34 +0200
@@ -1881,6 +1881,10 @@
 	  if (!dbus_message_iter_append_nil (&iter))
 	    goto errorout;
 	  break;
+	case DBUS_TYPE_BYTE:
+	  if (!dbus_message_iter_append_byte (&iter, va_arg (var_args, unsigned char)))
+	    goto errorout;
+	  break;
 	case DBUS_TYPE_BOOLEAN:
 	  if (!dbus_message_iter_append_boolean (&iter, va_arg (var_args, dbus_bool_t)))
 	    goto errorout;

--WIyZ46R2i8wDzkSu--