summaryrefslogtreecommitdiff
path: root/milestone.c
blob: fd4a6897ba4f7ef06134730c24fec8576da5cc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*-*- Mode: C; c-basic-offset: 8 -*-*/

#include "name.h"
#include "milestone.h"
#include "load-fragment.h"

static void milestone_done(Name *n) {
        Milestone *m = MILESTONE(n);

        assert(m);

        /* Nothing here for now */
}

static NameActiveState milestone_active_state(Name *n) {
        return MILESTONE(n)->state == MILESTONE_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
}

const NameVTable milestone_vtable = {
        .suffix = ".milestone",

        .init = name_load_fragment,
        .done = milestone_done,

        .active_state = milestone_active_state
};