X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Funit.h;h=c90210302d2b30ce99220e64d76c04423fefb639;hb=d2f1f23ad2636cf05589a67b5229c7fd604bc21f;hp=23cd9ef459812e1208311da0cd8babd89eb235cb;hpb=bbc9006e6b5665073149331d75c104a33224dc19;p=elogind.git diff --git a/src/core/unit.h b/src/core/unit.h index 23cd9ef45..c90210302 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -271,6 +271,9 @@ struct UnitVTable { * ExecContext is found, if the unit type has that */ size_t exec_context_offset; + /* The name of the section with the exec settings of ExecContext */ + const char *exec_section; + /* Config file sections this unit type understands, separated * by NUL chars */ const char *sections; @@ -551,6 +554,11 @@ int unit_exec_context_defaults(Unit *u, ExecContext *c); ExecContext *unit_get_exec_context(Unit *u); +int unit_write_drop_in(Unit *u, bool runtime, const char *name, const char *data); +int unit_remove_drop_in(Unit *u, bool runtime, const char *name); + +int unit_kill_context(Unit *u, KillContext *c, bool sigkill, pid_t main_pid, pid_t control_pid, bool main_pid_alien); + const char *unit_active_state_to_string(UnitActiveState i); UnitActiveState unit_active_state_from_string(const char *s);