From 8a0867d6c5b47c8697d1ddd815116a548433c718 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Oct 2010 16:11:50 +0200 Subject: systemctl: introduce systemctl kill --- src/unit.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/unit.h') diff --git a/src/unit.h b/src/unit.h index fa869ece8f..3f0ef01c5e 100644 --- a/src/unit.h +++ b/src/unit.h @@ -277,6 +277,8 @@ struct UnitVTable { int (*stop)(Unit *u); int (*reload)(Unit *u); + int (*kill)(Unit *u, KillWho w, KillMode m, int signo, DBusError *error); + bool (*can_reload)(Unit *u); /* Write all data that cannot be restored from other sources @@ -458,6 +460,8 @@ int unit_start(Unit *u); int unit_stop(Unit *u); int unit_reload(Unit *u); +int unit_kill(Unit *u, KillWho w, KillMode m, int signo, DBusError *error); + void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns); int unit_watch_fd(Unit *u, int fd, uint32_t events, Watch *w); @@ -520,7 +524,4 @@ UnitActiveState unit_active_state_from_string(const char *s); const char *unit_dependency_to_string(UnitDependency i); UnitDependency unit_dependency_from_string(const char *s); -const char *kill_mode_to_string(KillMode k); -KillMode kill_mode_from_string(const char *s); - #endif -- cgit v1.2.3-54-g00ecf