X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Funit.h;h=3f0ef01c5e871f0f9d9446f3359f8b9f85d929af;hb=5c0532d1cc989d2f78d2cd4a18058daa58143705;hp=fa869ece8fb7859dbea2def6c055dd1b68632796;hpb=52661efd21608dc7e0ac26b714a9254ed6180ddb;p=elogind.git diff --git a/src/unit.h b/src/unit.h index fa869ece8..3f0ef01c5 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