mirror of
https://github.com/systemd/systemd.git
synced 2024-12-01 06:13:38 +08:00
33 lines
685 B
C
33 lines
685 B
C
/*-*- Mode: C; c-basic-offset: 8 -*-*/
|
|
|
|
#include "name.h"
|
|
#include "milestone.h"
|
|
#include "load-fragment.h"
|
|
|
|
static NameActiveState milestone_active_state(Name *n) {
|
|
return MILESTONE(n)->state == MILESTONE_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
|
|
}
|
|
|
|
static void milestone_free_hook(Name *n) {
|
|
Milestone *m = MILESTONE(n);
|
|
|
|
assert(m);
|
|
|
|
/* Nothing here for now */
|
|
}
|
|
|
|
const NameVTable milestone_vtable = {
|
|
.suffix = ".milestone",
|
|
|
|
.load = name_load_fragment,
|
|
.dump = NULL,
|
|
|
|
.start = NULL,
|
|
.stop = NULL,
|
|
.reload = NULL,
|
|
|
|
.active_state = milestone_active_state,
|
|
|
|
.free_hook = milestone_free_hook
|
|
};
|