X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_bus_request_name.xml;h=987eefa0860968f9e76e657f70ce4f53c6efe45f;hb=eea10b26f78806d7b244af7d37f75fd567c69610;hp=7229ef517a577051b5bfeaf78e107de75b6f1117;hpb=05332e243cfcea70f900a741b917d04291a1f9e0;p=thirdparty%2Fsystemd.git diff --git a/man/sd_bus_request_name.xml b/man/sd_bus_request_name.xml index 7229ef517a5..987eefa0860 100644 --- a/man/sd_bus_request_name.xml +++ b/man/sd_bus_request_name.xml @@ -1,7 +1,7 @@ - + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> + @@ -28,6 +28,8 @@ #include <systemd/sd-bus.h> + + int sd_bus_request_name sd_bus *bus @@ -76,7 +78,9 @@ After acquiring the name successfully, permit other peers to take over the name when they try to acquire it with the SD_BUS_NAME_REPLACE_EXISTING flag set. If SD_BUS_NAME_ALLOW_REPLACEMENT is not set on the original request, such a request by other - peers will be denied. + peers will be denied. + + @@ -84,13 +88,17 @@ Take over the name if it was already acquired by another peer, and that other peer has permitted takeover by setting SD_BUS_NAME_ALLOW_REPLACEMENT while acquiring - it. + it. + + SD_BUS_NAME_QUEUE - Queue the acquisition of the name when the name is already taken. + Queue the acquisition of the name when the name is already taken. + + @@ -98,7 +106,7 @@ is sent to the bus broker, and the call waits until the broker responds. sd_bus_request_name_async() is an asynchronous version of - sd_bus_release_name(). Instead of waiting for the request to complete, the request message is + sd_bus_request_name(). Instead of waiting for the request to complete, the request message is enqueued. The specified callback will be called when the broker's response is received. If the parameter is specified as NULL a default implementation is used instead which will terminate the connection when the name cannot be acquired. The function returns a slot object in its @@ -194,15 +202,23 @@ + + History + sd_bus_request_name() and + sd_bus_release_name() were added in version 209. + sd_bus_request_name_async() and + sd_bus_release_name_async() were added in version 237. + + See Also - - systemd1, - sd-bus3, - sd_bus_new3, - sd_bus_slot_unref3 - + + systemd1 + sd-bus3 + sd_bus_new3 + sd_bus_slot_unref3 +