1 /* SPDX-License-Identifier: CC0-1.0 */
2 
3 #include <systemd/sd-bus.h>
4 #define _cleanup_(f) __attribute__((cleanup(f)))
5 
send_unit_files_changed(sd_bus * bus)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 }
19