diff options
| author | Ian M. <ian@aptel.org> | 2026-10-03 04:02:54 +0000 |
|---|---|---|
| committer | Ian M. <ian@aptel.org> | 2026-10-03 04:02:54 +0000 |
| commit | 8e838a73368d5f26fee796d6ddb065e21449e989 (patch) | |
| tree | 656757670ad91f0fa52b87eb71599a36e56fadae /head | |
initial commit
Signed-off-by: Ian M. <ian@aptel.org>
Diffstat (limited to 'head')
| -rw-r--r-- | head/atas/state.h | 38 |
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 */ |
