X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.c;h=b3a8210a577ac897af818982ce11a7fd6df66fb1;hp=ee1dc85d50365cbd791ba1873c0064cc3065467f;hb=6210e7fc31e14159627144f7409eadd3ce0d72b9;hpb=9381a72403f622f66294ab10315240a4c4fd71cd diff --git a/src/unit.c b/src/unit.c index ee1dc85d5..b3a8210a5 100644 --- a/src/unit.c +++ b/src/unit.c @@ -2319,6 +2319,18 @@ int unit_kill(Unit *u, KillWho w, KillMode m, int signo, DBusError *error) { return UNIT_VTABLE(u)->kill(u, w, m, signo, error); } + +int unit_following_set(Unit *u, Set **s) { + assert(u); + assert(s); + + if (UNIT_VTABLE(u)->following_set) + return UNIT_VTABLE(u)->following_set(u, s); + + *s = NULL; + return 0; +} + static const char* const unit_load_state_table[_UNIT_LOAD_STATE_MAX] = { [UNIT_STUB] = "stub", [UNIT_LOADED] = "loaded",