From: Havoc Pennington Date: Sat, 19 Feb 2005 16:17:29 +0000 (+0000) Subject: 2005-02-19 Havoc Pennington X-Git-Tag: dbus-0.31.0~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9bbe3c0f00c66ded939f54fec7c099c19a88f72;p=thirdparty%2Fdbus.git 2005-02-19 Havoc Pennington * glib/dbus-gobject.c (_dbus_glib_marshal_dbus_message_to_gvalue_array): add docs * glib/dbus-glib.c: fix doxygen warnings * glib/dbus-gparser.c (parse_annotation): error if an annotation is found on an --- diff --git a/ChangeLog b/ChangeLog index bf7198305..e8a8861fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-02-19 Havoc Pennington + + * glib/dbus-gobject.c + (_dbus_glib_marshal_dbus_message_to_gvalue_array): add docs + + * glib/dbus-glib.c: fix doxygen warnings + + * glib/dbus-gparser.c (parse_annotation): error if an annotation + is found on an + 2005-02-17 Colin Walters * glib/dbus-gobject.h: Don't export diff --git a/glib/dbus-glib.c b/glib/dbus-glib.c index a87087366..7065b6683 100644 --- a/glib/dbus-glib.c +++ b/glib/dbus-glib.c @@ -50,7 +50,7 @@ dbus_g_connection_flush (DBusGConnection *connection) /** * Increment refcount on a #DBusGConnection * - * @param connection the connection to ref + * @param gconnection the connection to ref * @returns the connection that was ref'd */ DBusGConnection* @@ -67,7 +67,7 @@ dbus_g_connection_ref (DBusGConnection *gconnection) /** * Decrement refcount on a #DBusGConnection * - * @param connection the connection to unref + * @param gconnection the connection to unref */ void dbus_g_connection_unref (DBusGConnection *gconnection) @@ -82,7 +82,7 @@ dbus_g_connection_unref (DBusGConnection *gconnection) /** * Increment refcount on a #DBusGMessage * - * @param message the message to ref + * @param gmessage the message to ref * @returns the message that was ref'd */ DBusGMessage* @@ -98,7 +98,7 @@ dbus_g_message_ref (DBusGMessage *gmessage) /** * Decrement refcount on a #DBusGMessage * - * @param message the message to unref + * @param gmessage the message to unref */ void dbus_g_message_unref (DBusGMessage *gmessage) diff --git a/glib/dbus-gobject.c b/glib/dbus-gobject.c index cf10e8d12..af87ffeb9 100644 --- a/glib/dbus-gobject.c +++ b/glib/dbus-gobject.c @@ -199,8 +199,14 @@ method_output_signature_from_object_info (const DBusGObjectInfo *object, return method_dir_signature_from_object_info (object, method, FALSE); } +/** + * Converts the args of a message into an array of GValue. + * + * @param message the message + * @returns #NULL if conversion fails, otherwise the values. + */ GValueArray * -_dbus_glib_marshal_dbus_message_to_gvalue_array (DBusMessage *message) +_dbus_glib_marshal_dbus_message_to_gvalue_array (DBusMessage *message) { GValueArray *ret; DBusMessageIter iter; diff --git a/glib/dbus-gparser.c b/glib/dbus-gparser.c index 3adfe32e9..5d6d664a5 100644 --- a/glib/dbus-gparser.c +++ b/glib/dbus-gparser.c @@ -733,7 +733,7 @@ parse_annotation (Parser *parser, const char *name; const char *value; - if (!(parser->method || parser->interface || parser->arg) || + if (!(parser->method || parser->interface) || parser->node_stack == NULL || parser->signal || parser->in_annotation) @@ -753,8 +753,6 @@ parse_annotation (Parser *parser, NULL)) return FALSE; - /* name can be null for args */ - if (name == NULL) { g_set_error (error, G_MARKUP_ERROR,