1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-15 07:24:00 +03:00
systemd/target.c

27 lines
555 B
C
Raw Normal View History

2010-01-26 21:06:50 +03:00
/*-*- Mode: C; c-basic-offset: 8 -*-*/
2010-01-26 23:39:06 +03:00
#include "unit.h"
2010-01-26 21:06:50 +03:00
#include "target.h"
#include "load-fragment.h"
2010-01-26 23:39:06 +03:00
static void target_done(Unit *u) {
Target *m = TARGET(u);
2010-01-26 21:06:50 +03:00
assert(m);
/* Nothing here for now */
}
2010-01-26 23:39:06 +03:00
static UnitActiveState target_active_state(Unit *u) {
return TARGET(u)->state == TARGET_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
2010-01-26 21:06:50 +03:00
}
2010-01-26 23:39:06 +03:00
const UnitVTable target_vtable = {
2010-01-26 21:06:50 +03:00
.suffix = ".target",
2010-01-27 02:15:56 +03:00
.init = unit_load_fragment_and_dropin,
2010-01-26 21:06:50 +03:00
.done = target_done,
.active_state = target_active_state
};