]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/send-unit-files-changed.c
Merge pull request #8822 from fbuihuu/rfc-tmpfiles-safe-upstream
[thirdparty/systemd.git] / man / send-unit-files-changed.c
CommitLineData
e8b84fcc
ZJS
1#include <systemd/sd-bus.h>
2#define _cleanup_(f) __attribute__((cleanup(f)))
3
4int send_unit_files_changed(sd_bus *bus) {
5 _cleanup_(sd_bus_message_unrefp) sd_bus_message *message = NULL;
6 int r;
7
8 r = sd_bus_message_new_signal(bus, &message,
9 "/org/freedesktop/systemd1",
10 "org.freedesktop.systemd1.Manager",
11 "UnitFilesChanged");
12 if (r < 0)
13 return r;
14
15 return sd_bus_send(bus, message, NULL);
16}