summaryrefslogtreecommitdiff
path: root/head
diff options
context:
space:
mode:
Diffstat (limited to 'head')
-rw-r--r--head/atas/state.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/head/atas/state.h b/head/atas/state.h
new file mode 100644
index 0000000..6e1fed9
--- /dev/null
+++ b/head/atas/state.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2026, Apollo Telephone Laboratories.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef ATAS_STATE_H
+#define ATAS_STATE_H 1
+
+#include <stdint.h>
+#include <stdio.h>
+
+/*
+ * Represents the assembler state machine
+ *
+ * @in_file: Input file
+ */
+struct atas_state {
+ FILE *in_file;
+};
+
+/*
+ * Initialize the ATAS state machine
+ *
+ * @in_file: Input file to be assembled
+ * @state: State machine result
+ *
+ * Returns zero on success
+ */
+int atas_state_init(const char *in_file, struct atas_state *state);
+
+/*
+ * Destroy an initialized state machine
+ *
+ * @state: State machine to destroy
+ */
+void atas_state_destroy(struct atas_state *state);
+
+#endif /* !ATAS_STATE_H */