X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_bus_message_append_basic.xml;h=90abca8092f463d7e96f4ff534385cf1767de3e0;hb=d5aacbb6077b4e45fd36fbff6843595aa64d2288;hp=2594134d8778d7e5c59ffc62e22739ab21098fdb;hpb=8474b70c3a3842cdf3d51f331dd117ab6421f6d0;p=elogind.git diff --git a/man/sd_bus_message_append_basic.xml b/man/sd_bus_message_append_basic.xml index 2594134d8..90abca809 100644 --- a/man/sd_bus_message_append_basic.xml +++ b/man/sd_bus_message_append_basic.xml @@ -1,27 +1,27 @@ - + - + sd_bus_message_append_basic @@ -45,7 +45,7 @@ along with systemd; If not, see . sd_bus_message_append_basic - Attach a single part to a message + Attach a single field to a message @@ -56,7 +56,7 @@ along with systemd; If not, see . int sd_bus_message_append_basic sd_bus_message *m char type - char void *p + const void *p @@ -64,31 +64,33 @@ along with systemd; If not, see . Description - sd_bus_message_append_basic appends a - single item to the message m. Parameter - type determines how pointer + sd_bus_message_append_basic() appends a + single field to the message m. The + parameter type determines how the pointer p is interpreted. - type must be one of the basic types - as defined by the - - Basic Types - section of the D-Bus specification, and listed in the table below. + type must be one of the basic types as + defined by the Basic + Types section of the D-Bus specification, and listed in + the table below. - Item format specifiers + Item type specifiers - + + Specifier Constant Description Size + Expected C Type @@ -97,6 +99,7 @@ along with systemd; If not, see . SD_BUS_TYPE_BYTE unsigned integer 1 byte + uint8_t @@ -104,6 +107,7 @@ along with systemd; If not, see . SD_BUS_TYPE_BOOLEAN boolean 4 bytes + int @@ -111,6 +115,7 @@ along with systemd; If not, see . SD_BUS_TYPE_INT16 signed integer 2 bytes + int16_t @@ -118,6 +123,7 @@ along with systemd; If not, see . SD_BUS_TYPE_UINT16 unsigned integer 2 bytes + uint16_t @@ -125,6 +131,7 @@ along with systemd; If not, see . SD_BUS_TYPE_INT32 signed integer 4 bytes + int32_t @@ -132,6 +139,7 @@ along with systemd; If not, see . SD_BUS_TYPE_UINT32 unsigned integer 4 bytes + uint32_t @@ -139,6 +147,7 @@ along with systemd; If not, see . SD_BUS_TYPE_INT64 signed integer 8 bytes + int64_t @@ -146,6 +155,7 @@ along with systemd; If not, see . SD_BUS_TYPE_UINT64 unsigned integer 8 bytes + uint64_t @@ -153,6 +163,7 @@ along with systemd; If not, see . SD_BUS_TYPE_DOUBLE floating-point 8 bytes + double @@ -160,6 +171,7 @@ along with systemd; If not, see . SD_BUS_TYPE_STRING Unicode string variable + char[] @@ -167,6 +179,7 @@ along with systemd; If not, see . SD_BUS_TYPE_OBJECT_PATH object path variable + char[] @@ -174,6 +187,7 @@ along with systemd; If not, see . SD_BUS_TYPE_SIGNATURE signature variable + char[] @@ -181,16 +195,19 @@ along with systemd; If not, see . SD_BUS_TYPE_UNIX_FD UNIX file descriptor 4 bytes + int
- The value of the parameter is copied into the memory area - containing the message and may be changed after this call. If - type is h (UNIX file - descriptor), it is always "consumed" by this call, and either - successfully appended to the message or closed. + The value of the parameter is copied into a memory area held + by the message object, stays in the possession of the caller and + may hence be freely changed after this call without affecting the + bus message it has been added to. If type + is h (UNIX file descriptor), the descriptor is + duplicated by this call and the passed descriptor stays in + possession of the caller. For types s, o, and g, the parameter p is @@ -260,7 +277,7 @@ along with systemd; If not, see . The sd_bus_append_basic() function described here is available as a shared library, which can be compiled and linked to with the - libsystemd pkg-config1 + libelogind pkg-config1 file.