1SD-BUS(3) sd-bus SD-BUS(3)
2
3
4
6 sd-bus - A lightweight D-Bus IPC client library
7
9 #include <systemd/sd-bus.h>
10
11 pkg-config --cflags --libs libsystemd
12
14 sd-bus.h is part of libsystemd(3) and provides an implementation of a
15 D-Bus IPC client. See https://www.freedesktop.org/software/dbus/ for
16 more information about D-Bus IPC.
17
18 See
19
20 sd_bus_add_match(3),
21 sd_bus_add_object(3),
22 sd_bus_add_object_manager(3),
23 sd_bus_add_object_vtable(3),
24 sd_bus_add_fallback(3),
25 sd_bus_add_fallback_vtable(3),
26 sd_bus_add_filter(3),
27 sd_bus_add_node_enumerator(3),
28 sd_bus_attach_event(3),
29 sd_bus_call(3),
30 sd_bus_call_async(3),
31 sd_bus_call_method(3),
32 sd_bus_call_method_async(3),
33 sd_bus_can_send(3),
34 sd_bus_close(3),
35 sd_bus_creds_get_pid(3),
36 sd_bus_creds_new_from_pid(3),
37 sd_bus_default(3),
38 sd_bus_emit_interfaces_added(3),
39 sd_bus_emit_interfaces_added_strv(3),
40 sd_bus_emit_interfaces_removed(3),
41 sd_bus_emit_interfaces_removed_strv(3),
42 sd_bus_emit_object_added(3),
43 sd_bus_emit_object_removed(3),
44 sd_bus_emit_properties_changed(3),
45 sd_bus_emit_properties_changed_strv(3),
46 sd_bus_emit_signal(3),
47 sd_bus_emit_signalv(3),
48 sd_bus_emit_signal_to(3),
49 sd_bus_emit_signal_tov(3),
50 sd-bus-errors(3),
51 sd_bus_error(3),
52 sd_bus_error_add_map(3),
53 sd_bus_get_address(3),
54 sd_bus_get_allow_interactive_authorization(3),
55 sd_bus_get_bus_id(3),
56 sd_bus_get_creds_mask(3),
57 sd_bus_get_current_handler(3),
58 sd_bus_get_current_message(3),
59 sd_bus_get_current_slot(3),
60 sd_bus_get_current_userdata(3),
61 sd_bus_get_exit_on_disconnect(3),
62 sd_bus_get_fd(3),
63 sd_bus_get_method_call_timeout(3),
64 sd_bus_get_n_queued_read(3),
65 sd_bus_get_name_creds(3),
66 sd_bus_get_name_machine_id(3),
67 sd_bus_get_owner_creds(3),
68 sd_bus_get_property(3),
69 sd_bus_get_property_string(3),
70 sd_bus_get_property_strv(3),
71 sd_bus_get_property_trivial(3),
72 sd_bus_get_scope(3),
73 sd_bus_get_tid(3),
74 sd_bus_get_unique_name(3),
75 sd_bus_interface_name_is_valid(3),
76 sd_bus_is_bus_client(3),
77 sd_bus_is_monitor(3),
78 sd_bus_is_server(3),
79 sd_bus_list_names(3),
80 sd_bus_message_append(3),
81 sd_bus_message_append_array(3),
82 sd_bus_message_append_basic(3),
83 sd_bus_message_append_string_memfd(3),
84 sd_bus_message_append_strv(3),
85 sd_bus_message_at_end(3),
86 sd_bus_message_close_container(3),
87 sd_bus_message_copy(3),
88 sd_bus_message_dump(3),
89 sd_bus_message_enter_container(3),
90 sd_bus_message_exit_container(3),
91 sd_bus_message_get_allow_interactive_authorization(3),
92 sd_bus_message_get_cookie(3),
93 sd_bus_message_get_creds(3),
94 sd_bus_message_get_errno(3),
95 sd_bus_message_get_error(3),
96 sd_bus_message_get_monotonic_usec(3),
97 sd_bus_message_get_sender(3),
98 sd_bus_message_get_signature(3),
99 sd_bus_message_get_type(3),
100 sd_bus_message_new(3),
101 sd_bus_message_new_method_call(3),
102 sd_bus_message_new_method_error(3),
103 sd_bus_message_new_signal(3),
104 sd_bus_message_new_signal_to(3),
105 sd_bus_message_open_container(3),
106 sd_bus_message_peek_type(3),
107 sd_bus_message_read(3),
108 sd_bus_message_read_array(3),
109 sd_bus_message_read_basic(3),
110 sd_bus_message_read_strv(3),
111 sd_bus_message_rewind(3),
112 sd_bus_message_seal(3),
113 sd_bus_message_send(3),
114 sd_bus_message_set_allow_interactive_authorization(3),
115 sd_bus_message_set_destination(3),
116 sd_bus_message_set_expect_reply(3),
117 sd_bus_message_set_sender(3),
118 sd_bus_message_skip(3),
119 sd_bus_message_verify_type(3),
120 sd_bus_negotiate_fds(3),
121 sd_bus_new(3),
122 sd_bus_path_encode(3),
123 sd_bus_process(3),
124 sd_bus_query_sender_creds(3),
125 sd_bus_query_sender_privilege(3),
126 sd_bus_reply_method_error(3),
127 sd_bus_reply_method_return(3),
128 sd_bus_request_name(3),
129 sd_bus_send(3),
130 sd_bus_send_to(3),
131 sd_bus_set_address(3),
132 sd_bus_set_allow_interactive_authorization(3),
133 sd_bus_set_bus_client(3),
134 sd_bus_set_close_on_exit(3),
135 sd_bus_set_connected_signal(3),
136 sd_bus_set_description(3),
137 sd_bus_set_exit_on_disconnect(3),
138 sd_bus_set_method_call_timeout(3),
139 sd_bus_set_monitor(3),
140 sd_bus_set_property(3),
141 sd_bus_set_propertyv(3),
142 sd_bus_set_sender(3),
143 sd_bus_set_server(3),
144 sd_bus_set_watch_bind(3)
145 sd_bus_slot_get_current_handler(3),
146 sd_bus_slot_get_current_message(3),
147 sd_bus_slot_get_current_userdata(3),
148 sd_bus_slot_set_description(3),
149 sd_bus_slot_set_destroy_callback(3),
150 sd_bus_slot_set_floating(3),
151 sd_bus_slot_set_userdata(3),
152 sd_bus_start(3),
153 sd_bus_track_add_name(3),
154 sd_bus_track_new(3)
155
156 for more information about the functions available.
157
159 Functions described here are available as a shared library, which can
160 be compiled against and linked to with the libsystemd pkg-config(1)
161 file.
162
163 The code described here uses getenv(3), which is declared to be not
164 multi-thread-safe. This means that the code calling the functions
165 described here must not call setenv(3) from a parallel thread. It is
166 recommended to only do calls to setenv() from an early phase of the
167 program when no other threads have been started.
168
170 systemd(1), sd-event(3), busctl(1), dbus-daemon(1), dbus-send(1)
171
172
173
174systemd 254 SD-BUS(3)