]>
Commit | Line | Data |
---|---|---|
1fe6d37e | 1 | /* SPDX-License-Identifier: MIT-0 */ |
f4d74c61 | 2 | |
e8b84fcc ZJS |
3 | #include <systemd/sd-bus.h> |
4 | #define _cleanup_(f) __attribute__((cleanup(f))) | |
5 | ||
6 | int send_unit_files_changed(sd_bus *bus) { | |
7 | _cleanup_(sd_bus_message_unrefp) sd_bus_message *message = NULL; | |
8 | int r; | |
9 | ||
10 | r = sd_bus_message_new_signal(bus, &message, | |
11 | "/org/freedesktop/systemd1", | |
12 | "org.freedesktop.systemd1.Manager", | |
13 | "UnitFilesChanged"); | |
14 | if (r < 0) | |
15 | return r; | |
16 | ||
17 | return sd_bus_send(bus, message, NULL); | |
18 | } |