summaryrefslogtreecommitdiff
path: root/target.c
blob: 12a219295beef77dbe8f9f4670c426c8c8ab7108 (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 "target.h"
#include "load-fragment.h"

static void target_done(Name *n) {
        Target *m = TARGET(n);

        assert(m);

        /* Nothing here for now */
}

static NameActiveState target_active_state(Name *n) {
        return TARGET(n)->state == TARGET_DEAD ? NAME_INACTIVE : NAME_ACTIVE;
}

const NameVTable target_vtable = {
        .suffix = ".target",

        .init = name_load_fragment,
        .done = target_done,

        .active_state = target_active_state
};