X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_bus_message_set_destination.xml;h=51da5ff3b89e4a81da4153e3ca33e85fc6c2ba14;hb=6b222c4b0227f9914446ac54754aea867f742be4;hp=ff69a231525e6892f03402a1115d8e103943b390;hpb=2df46112052ee9752ce2d2920ad6184b304c77ed;p=thirdparty%2Fsystemd.git diff --git a/man/sd_bus_message_set_destination.xml b/man/sd_bus_message_set_destination.xml index ff69a231525..51da5ff3b89 100644 --- a/man/sd_bus_message_set_destination.xml +++ b/man/sd_bus_message_set_destination.xml @@ -1,41 +1,11 @@ - + - - - - + sd_bus_message_set_destination systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -45,8 +15,14 @@ sd_bus_message_set_destination + sd_bus_message_get_destination + sd_bus_message_get_path + sd_bus_message_get_interface + sd_bus_message_get_member sd_bus_message_set_sender - Set the destination or sender service name of a bus message + sd_bus_message_get_sender + + Set and query bus message addressing information @@ -59,69 +35,107 @@ const char *destination + + const char* sd_bus_message_get_destination + sd_bus_message *message + + + + const char* sd_bus_message_get_path + sd_bus_message *message + + + + const char* sd_bus_message_get_interface + sd_bus_message *message + + + + const char* sd_bus_message_get_member + sd_bus_message *message + + int sd_bus_message_set_sender sd_bus_message *message const char *sender + + + const char* sd_bus_message_get_sender + sd_bus_message *message + Description - sd_bus_message_set_destination() sets the destination service name for the specified bus - message object. The specified name must be a valid unique or well-known service name. + sd_bus_message_set_destination() sets the destination service name + for the specified bus message object. The specified name must be a valid unique or well-known + service name. + + sd_bus_message_get_destination(), + sd_bus_message_get_path(), + sd_bus_message_get_interface(), and + sd_bus_message_get_member() return the destination, path, interface, and + member fields from message header. The return value will be + NULL is message is NULL or the + message is of a type that doesn't use those fields or the message doesn't have them set. See + sd_bus_message_new_method_call3 and + sd_bus_message_set_destination3 + for more discussion of those values. sd_bus_message_set_sender() sets the sender service name for the specified bus message object. The specified name must be a valid unique or well-known service name. This function is useful only for messages to send on direct connections as for connections to bus brokers the broker will fill in the destination field anyway, and the sender field set by original sender is ignored. + + sd_bus_message_get_sender() returns the sender field from + message. + + When a string is returned, it is a pointer to internal storage, and may not be modified or + freed. It is only valid as long as the message remains referenced and + this field hasn't been changed by a different call. Return Value - On success, these calls return 0 or a positive integer. On failure, these calls return a negative errno-style - error code. - + On success, these calls return 0 or a positive integer. On failure, these calls return a + negative errno-style error code. - - Errors + + Errors - Returned errors may indicate the following problems: + Returned errors may indicate the following problems: - - - -EINVAL + + + -EINVAL - A specified parameter is invalid. - + The message parameter or the output parameter are + NULL. + - - -EPERM + + -EPERM - The message is already sealed. - + For sd_bus_message_set_destination() and + sd_bus_message_set_sender(), the message is already sealed. + + - - -EEXIST + + -EEXIST - The message already has a destination or sender field set. - - + The message already has a destination or sender field set. + + + - - Notes - - The sd_bus_message_set_destination() and - sd_bus_message_set_sender() interfaces - are available as a shared library, which can be compiled and - linked to with the - libsystemd pkg-config1 - file. - + See Also