summaryrefslogtreecommitdiff
path: root/target.c
diff options
context:
space:
mode:
Diffstat (limited to 'target.c')
-rw-r--r--target.c26
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
+};