X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_bus_message_append.xml;h=b87468e37336c79604846cc3a53a8a462e22b3b8;hb=d4fda2a55cea9a773d8da349864906c0b956c9b7;hp=77fce02eae596904f3ff904430e13afb4041eb5f;hpb=af3fa99c237b3d72f86fdf437b584baadf5f209a;p=thirdparty%2Fsystemd.git diff --git a/man/sd_bus_message_append.xml b/man/sd_bus_message_append.xml index 77fce02eae5..b87468e3733 100644 --- a/man/sd_bus_message_append.xml +++ b/man/sd_bus_message_append.xml @@ -1,25 +1,7 @@ - - - - + + + @@ -27,15 +9,6 @@ sd_bus_message_append systemd - - - - A monkey with a typewriter - Zbigniew - Jędrzejewski-Szmek - zbyszek@in.waw.pl - - @@ -45,6 +18,7 @@ sd_bus_message_append + sd_bus_message_appendv Attach fields to a D-Bus message based on a type string @@ -58,8 +32,16 @@ int sd_bus_message_append sd_bus_message *m const char *types - ... + … + + + + int sd_bus_message_appendv + sd_bus_message *m + const char *types + va_list ap + @@ -109,6 +91,13 @@ values for each entry matching the element type of the dictionary entries. + The sd_bus_message_appendv() is equivalent to the + sd_bus_message_append(), except that it is called with + a va_list instead of a variable number of arguments. This + function does not call the va_end() macro. Because it + invokes the va_arg() macro, the value of + ap is undefined after the call. + For further details on the D-Bus type system, please consult the D-Bus @@ -169,6 +158,11 @@ + For types "s" and "g" (unicode string or signature), the pointer may be + NULL, which is equivalent to an empty string. See + sd_bus_message_append_basic3 + for the precise interpretation of those and other types. + @@ -193,7 +187,7 @@ dictionary ::= "a" "{" basic_type complete_type "}" sd_bus_message *m; -... +… sd_bus_message_append(m, "s", "a string"); Append all types of integers: @@ -233,23 +227,14 @@ sd_bus_message_append(m, "ynqiuxtd", y, n, q, i, u, x, t, d); Return Value - On success, this call returns 0 or a positive - integer. On failure, this call returns a negative + On success, these functions return 0 or a positive integer. On failure, they return a negative errno-style error code. - - - - - Notes - - sd_bus_open_user() and other functions - described here are available as a shared library, which can be - compiled and linked to with the - libsystemd-bus pkg-config1 - file. + + + See Also