aboutsummaryrefslogtreecommitdiff
path: root/inc/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/target.h')
-rw-r--r--inc/target.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/inc/target.h b/inc/target.h
new file mode 100644
index 0000000..9196637
--- /dev/null
+++ b/inc/target.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2024, Marvin Borner <dev@marvinborner.de>
+// SPDX-License-Identifier: MIT
+
+#ifndef BLOCADE_TARGET_H
+#define BLOCADE_TARGET_H
+
+#include <stdio.h>
+
+#include <parse.h>
+
+struct target_spec {
+ const char *name;
+ void (*exec)(struct bloc_parsed *bloc, FILE *file);
+};
+
+void exec_target(char *name, struct bloc_parsed *bloc, FILE *file);
+
+#endif