mirror of
https://github.com/systemd/systemd.git
synced 2024-11-14 15:21:37 +03:00
27 lines
555 B
C
27 lines
555 B
C
/*-*- Mode: C; c-basic-offset: 8 -*-*/
|
|
|
|
#include "unit.h"
|
|
#include "target.h"
|
|
#include "load-fragment.h"
|
|
|
|
static void target_done(Unit *u) {
|
|
Target *m = TARGET(u);
|
|
|
|
assert(m);
|
|
|
|
/* Nothing here for now */
|
|
}
|
|
|
|
static UnitActiveState target_active_state(Unit *u) {
|
|
return TARGET(u)->state == TARGET_DEAD ? UNIT_INACTIVE : UNIT_ACTIVE;
|
|
}
|
|
|
|
const UnitVTable target_vtable = {
|
|
.suffix = ".target",
|
|
|
|
.init = unit_load_fragment_and_dropin,
|
|
.done = target_done,
|
|
|
|
.active_state = target_active_state
|
|
};
|