diff --git a/man/rules/meson.build b/man/rules/meson.build index 3b52d33e37..659edab1ab 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -379,6 +379,9 @@ manpages = [ '3', ['sd_bus_get_allow_interactive_authorization', 'sd_bus_get_description', + 'sd_bus_get_scope', + 'sd_bus_get_tid', + 'sd_bus_get_unique_name', 'sd_bus_is_anonymous', 'sd_bus_is_trusted', 'sd_bus_set_allow_interactive_authorization', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index 3237eb82cc..c073d3bccc 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -80,6 +80,9 @@ sd_bus_get_fd3, sd_bus_get_method_call_timeout3, sd_bus_get_n_queued_read3, +sd_bus_get_scope3, +sd_bus_get_tid3, +sd_bus_get_unique_name3, sd_bus_is_bus_client3, sd_bus_is_server3, sd_bus_message_append3, diff --git a/man/sd_bus_set_description.xml b/man/sd_bus_set_description.xml index 05764bc471..bd3ec78864 100644 --- a/man/sd_bus_set_description.xml +++ b/man/sd_bus_set_description.xml @@ -24,6 +24,9 @@ sd_bus_is_trusted sd_bus_set_allow_interactive_authorization sd_bus_get_allow_interactive_authorization + sd_bus_get_scope + sd_bus_get_tid + sd_bus_get_unique_name Set or query properties of a bus object @@ -76,6 +79,24 @@ int sd_bus_get_allow_interactive_authorization sd_bus *bus + + + int sd_bus_get_scope + sd_bus *bus + const char **scope + + + + int sd_bus_get_tid + sd_bus *bus + pid_t *tid + + + + int sd_bus_get_unique_name + sd_bus *bus + const char **unique + @@ -125,6 +146,27 @@ sd_bus_get_allow_interactive_authorization() returns true if interactive authorization is allowed and false if not. + + sd_bus_get_scope() stores the scope of the given bus object in + scope. The scope of the system bus is system. The + scope of a user session bus is user. If the given bus object is not the + system or a user session bus, sd_bus_get_scope() returns an error. + + sd_bus_get_tid() stores the kernel thread id of the thread associated + with the given bus object in tid. If bus is a + default bus object obtained by calling one of the functions of the + sd_bus_default3 + family of functions, it stores the thread id of the thread the bus object was created in. + Otherwise, if the bus object is attached to an event loop, it stores the thread id of the + thread the event loop object was created in. If bus is not a default bus + object and is not attached to an event loop, sd_bus_get_tid() returns an + error. + + sd_bus_get_unique_name() stores the unique name of the bus object on + the bus in unique. See + + The D-Bus specification for more information on bus names. Note that the caller does not + own the string stored in unique and should not free it. @@ -168,8 +210,21 @@ Memory allocation failed. - + + -ENODATA + + The bus object passed to sd_bus_get_scope() was not a + system or user session bus. + + + + -ENXIO + + The bus object passed to sd_bus_get_tid() was not a + default bus object and is not attached to an event loop. + +