summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2019-09-23 12:50:25 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2019-09-23 12:50:25 +0000
commitbaffedbac960d9afd840f335664d9b419123054f (patch)
treeb9726897b39a4928a801d635fc8aa02d97135165
parent9458bd7038689469193128cd01ea18bef143f992 (diff)
parente6b8022ca698bc1ae5853999fef72de30fe4d620 (diff)
downloaddbus-baffedbac960d9afd840f335664d9b419123054f.tar.gz
Merge branch 'fix_1' into 'master'
doxygen: fix example for dbus_message_append_args See merge request dbus/dbus!126
-rw-r--r--dbus/dbus-message.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
index edf76549..45b1adfd 100644
--- a/dbus/dbus-message.c
+++ b/dbus/dbus-message.c
@@ -1784,10 +1784,16 @@ dbus_message_get_type (DBusMessage *message)
* To append an array of fixed-length basic types (except Unix file
* descriptors), pass in the DBUS_TYPE_ARRAY typecode, the element
* typecode, the address of the array pointer, and a 32-bit integer
- * giving the number of elements in the array. So for example: @code
- * const dbus_int32_t array[] = { 1, 2, 3 }; const dbus_int32_t
- * *v_ARRAY = array; dbus_message_append_args (message,
- * DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &v_ARRAY, 3, DBUS_TYPE_INVALID);
+ * giving the number of elements in the array. So for example:
+ *
+ * @code
+ *
+ * const dbus_int32_t array[] = { 1, 2, 3 };
+ * const dbus_int32_t *v_ARRAY = array;
+ * dbus_message_append_args (message,
+ * DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &v_ARRAY, 3,
+ * DBUS_TYPE_INVALID);
+ *
* @endcode
*
* This function does not support arrays of Unix file descriptors. If