sd-bus

Index · Directives systemd 234

## Name

sd-bus — A lightweight D-Bus IPC client library

## Synopsis

    #include <systemd/sd-bus.h>

`pkg-config --cflags --libs libsystemd`

## Description

`sd-bus.h` provides an implementation of a D-Bus IPC client. See https://www.freedesktop.org/software/dbus/ for more information about D-Bus IPC.

See sd-bus-errors(3), sd_bus_creds_get_pid(3), sd_bus_creds_new_from_pid(3), sd_bus_default(3), sd_bus_error(3), sd_bus_error_add_map(3), sd_bus_get_name_creds(3), sd_bus_get_owner_creds(3), sd_bus_message_append(3), sd_bus_message_append_array(3), sd_bus_message_append_basic(3), sd_bus_message_append_string_memfd(3), sd_bus_message_append_strv(3), sd_bus_message_can_send(3), sd_bus_message_get_cookie(3), sd_bus_message_get_monotonic_usec(3), sd_bus_negotiate_fds(3), sd_bus_new(3), sd_bus_path_encode(3), sd_bus_request_name(3), sd_bus_send(3), sd_bus_set_address(3), sd_bus_set_allow_interactive_authorization(3) sd_bus_set_description(3), sd_bus_set_prepare(3), sd_bus_start(3), sd_bus_track_add_name(3), sd_bus_track_new(3), for more information about the functions available.

## Notes

These APIs are implemented as a shared library, which can be compiled and linked to with the `libsystemd` pkg-config(1) file.

## See Also

systemd(1), sd-event(3), busctl(1), dbus-daemon(1), dbus-send(1)