X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=target.c;h=bf448158cb66327714574849c8f851467a47ea13;hp=12a219295beef77dbe8f9f4670c426c8c8ab7108;hb=c43d20a0af915a2641e9645ba7f47f576f9075e3;hpb=c22cbe2672db2c95647c9412cfb4331d2be279a7 diff --git a/target.c b/target.c index 12a219295..bf448158c 100644 --- a/target.c +++ b/target.c @@ -1,25 +1,25 @@ /*-*- Mode: C; c-basic-offset: 8 -*-*/ -#include "name.h" +#include "unit.h" #include "target.h" #include "load-fragment.h" -static void target_done(Name *n) { - Target *m = TARGET(n); +static void target_done(Unit *u) { + Target *m = TARGET(u); assert(m); /* Nothing here for now */ } -static NameActiveState target_active_state(Name *n) { - return TARGET(n)->state == TARGET_DEAD ? NAME_INACTIVE : NAME_ACTIVE; +static UnitActiveState target_active_state(Unit *u) { + return TARGET(u)->state == TARGET_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE; } -const NameVTable target_vtable = { +const UnitVTable target_vtable = { .suffix = ".target", - .init = name_load_fragment, + .init = unit_load_fragment_and_dropin, .done = target_done, .active_state = target_active_state