diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-09-26 16:26:07 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-09-27 23:24:51 +0200 |
commit | 002db03f54fe426529e0f841d0b48b56211c7bc1 (patch) | |
tree | 23f48bbc9c0ea36ad98012eeff8599f7380528ab /src/systemctl/systemctl-util.h | |
parent | systemctl: make unit_is_masked always query manager (diff) | |
download | systemd-002db03f54fe426529e0f841d0b48b56211c7bc1.tar.xz systemd-002db03f54fe426529e0f841d0b48b56211c7bc1.zip |
systemctl: clean up check_triggering_units
Preparation for #311
Diffstat (limited to 'src/systemctl/systemctl-util.h')
-rw-r--r-- | src/systemctl/systemctl-util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-util.h b/src/systemctl/systemctl-util.h index 344075722a..7bddef07ef 100644 --- a/src/systemctl/systemctl-util.h +++ b/src/systemctl/systemctl-util.h @@ -26,7 +26,8 @@ int get_sub_state_one_unit(sd_bus *bus, const char *unit, char **ret_sub_state); int get_unit_list(sd_bus *bus, const char *machine, char **patterns, UnitInfo **unit_infos, int c, sd_bus_message **ret_reply); int expand_unit_names(sd_bus *bus, char **names, const char* suffix, char ***ret, bool *ret_expanded); -int check_triggering_units(sd_bus *bus, const char *unit); +int get_active_triggering_units(sd_bus *bus, const char *unit, bool ignore_masked, char ***ret); +void warn_triggering_units(sd_bus *bus, const char *unit, const char *operation, bool ignore_masked); int need_daemon_reload(sd_bus *bus, const char *unit); |