From e0db55a643f230e9c5dbadd21649cb1199ccd185 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Jan 2020 16:52:12 +0100 Subject: [PATCH] man: document that sd_bus_message_read_array() only supports trivial types Fixes: #14641 --- man/sd_bus_message_read_array.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man/sd_bus_message_read_array.xml b/man/sd_bus_message_read_array.xml index 117afa9e31e..26e8ebae60b 100644 --- a/man/sd_bus_message_read_array.xml +++ b/man/sd_bus_message_read_array.xml @@ -48,6 +48,10 @@ appropriate for the data type. The data is part of the message — it may not be modified and is valid only as long as the message is referenced. After this function returns, the "read pointer" points at the next element after the array. + + Note that this function only supports arrays of trivial types, i.e. arrays of booleans, the various + integer types, as well as floating point numbers. In particular it may not be used for arrays of strings, + structures or similar. @@ -68,8 +72,8 @@ -EINVAL - Specified type is invalid or the message parameter or one of the output - parameters are NULL. + Specified type is invalid or not a trivial type (see above), or the message + parameter or one of the output parameters are NULL. -- 2.47.3