X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_bus_message_append.xml;h=b87468e37336c79604846cc3a53a8a462e22b3b8;hb=dcf557f7b04a3c5202ddbafca06311a12442fd4c;hp=0ee849dca7aa5a9c64b44c42eb55425a3f75fe99;hpb=1ad9e2f89c440d8b1316f1d5ea0fec51dc0ab287;p=thirdparty%2Fsystemd.git diff --git a/man/sd_bus_message_append.xml b/man/sd_bus_message_append.xml index 0ee849dca7a..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 + @@ -70,7 +52,7 @@ appends a sequence of fields to the D-Bus message object m. The type string types describes the types of the field - arguments that follow. For each type specified in the type string + arguments that follow. For each type specified in the type string, one or more arguments need to be specified, in the same order as declared in the type string. @@ -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