summaryrefslogtreecommitdiff
path: root/src/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-22 16:11:50 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-22 16:11:50 +0200
commit8a0867d6c5b47c8697d1ddd815116a548433c718 (patch)
tree56c81885c60e6b23f543d82c91a901d2fde14791 /src/unit.h
parent95e501f8ab28e1645453219523c0263754db3f68 (diff)
systemctl: introduce systemctl kill
Diffstat (limited to 'src/unit.h')
-rw-r--r--src/unit.h7
1 files changed, 4 insertions, 3 deletions
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