2005-01-24 Joe Shaw <joeshaw@novell.com>
authorJoe Shaw <joeshaw@novell.com>
Mon, 24 Jan 2005 21:44:35 +0000 (21:44 +0000)
committerJoe Shaw <joeshaw@novell.com>
Mon, 24 Jan 2005 21:44:35 +0000 (21:44 +0000)
* dbus/dbus-connection.c (dbus_connection_dispatch): Print out the
signature for the method that can't be found.

* dbus/dbus-message.c (dbus_message_iter_init): To check to see if
the message has any arguments, we need to call
_dbus_type_reader_get_current_type(), not
_dbus_type_reader_has_next().

ChangeLog
dbus/dbus-connection.c
dbus/dbus-message.c

index aad7974..bac52fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-01-24  Joe Shaw  <joeshaw@novell.com>
+
+       * dbus/dbus-connection.c (dbus_connection_dispatch): Print out the
+       signature for the method that can't be found.
+
+       * dbus/dbus-message.c (dbus_message_iter_init): To check to see if
+       the message has any arguments, we need to call
+       _dbus_type_reader_get_current_type(), not
+       _dbus_type_reader_has_next().
+
 2005-01-24  Havoc Pennington  <hp@redhat.com>
 
        * dbus/dbus-message-factory.c: more testing of message validation
index d338b78..90d7c38 100644 (file)
@@ -2740,8 +2740,9 @@ dbus_connection_dispatch (DBusConnection *connection)
         }
               
       if (!_dbus_string_append_printf (&str,
-                                       "Method \"%s\" on interface \"%s\" doesn't exist\n",
+                                       "Method \"%s\" with signature \"%s\" on interface \"%s\" doesn't exist\n",
                                        dbus_message_get_member (message),
+                                       dbus_message_get_signature (message),
                                        dbus_message_get_interface (message)))
         {
           _dbus_string_free (&str);
index 750d234..cf15109 100644 (file)
@@ -1381,7 +1381,7 @@ dbus_message_iter_init (DBusMessage     *message,
                           &message->body,
                           0);
 
-  return _dbus_type_reader_has_next (&real->u.reader);
+  return _dbus_type_reader_get_current_type (&real->u.reader) != DBUS_TYPE_INVALID;
 }
 
 #ifndef DBUS_DISABLE_CHECKS