From 64f3d8f67db09e0c84ed3ff009b86d0127fe82b4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 24 Apr 2005 14:04:16 +0000 Subject: 2005-04-23 Havoc Pennington * dbus/dbus-message.c (dbus_message_append_args): fix doc comment, reported by Tony Houghton * test/test-service.c (main): test dbus_connection_get_object_path_data() * dbus/dbus-object-tree.c (find_handler): be sure we always init the exact_match (_dbus_object_tree_get_user_data_unlocked): new function used by dbus_connection_get_object_path_data() (do_register): add assertion test for get_user_data_unlocked (object_tree_test_iteration): more tests * dbus/dbus-connection.c (dbus_connection_get_object_path_data): new function from Dan Reed to let you get the user data from dbus_connection_register_object_path() --- dbus/dbus-message.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'dbus/dbus-message.c') diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index b090fab0..8a9014ca 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -1142,25 +1142,15 @@ dbus_message_get_type (DBusMessage *message) * rather than this function. * * To append a basic type, specify its type code followed by the - * value. For example: + * address of the value. For example: * * @code - * DBUS_TYPE_INT32, 42, - * DBUS_TYPE_STRING, "Hello World" - * @endcode - * or - * @code - * dbus_int32_t val = 42; - * DBUS_TYPE_INT32, val - * @endcode * - * Be sure that your provided value is the right size. For example, this - * won't work: - * @code - * DBUS_TYPE_INT64, 42 + * dbus_int32_t v_INT32 = 42; + * const char *v_STRING = "Hello World"; + * DBUS_TYPE_INT32, &v_INT32, + * DBUS_TYPE_STRING, &v_STRING, * @endcode - * Because the "42" will be a 32-bit integer. You need to cast to - * 64-bit. * * To append an array of fixed-length basic types, pass in the * DBUS_TYPE_ARRAY typecode, the element typecode, the address of -- cgit