diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-26 19:06:50 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-26 19:06:50 +0100 |
commit | c22cbe2672db2c95647c9412cfb4331d2be279a7 (patch) | |
tree | 164988fa1acb15cdcee3cba8535b02f1d2dfdce2 /target.c | |
parent | 44d8db9e5aa86165c97289f6c78a7e42bac78362 (diff) |
rename milestone to target
Diffstat (limited to 'target.c')
-rw-r--r-- | target.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target.c b/target.c new file mode 100644 index 0000000000..12a219295b --- /dev/null +++ b/target.c @@ -0,0 +1,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 +}; |