diff options
author | Havoc Pennington <hp@redhat.com> | 2005-04-24 14:04:16 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-04-24 14:04:16 +0000 |
commit | 64f3d8f67db09e0c84ed3ff009b86d0127fe82b4 (patch) | |
tree | 1d090b30b2cdbf6dda54e6a9f961718db6b51552 /dbus/dbus-message.c | |
parent | 52fce19fabf2e529c9bd332bcf8c5a4b56e42725 (diff) |
2005-04-23 Havoc Pennington <hp@redhat.com>
* 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()
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r-- | dbus/dbus-message.c | 20 |
1 files changed, 5 insertions, 15 deletions
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 |