amduat/include/amduat/asl/ref_io.h
Carl Niklas Rydberg bdbe9cd6fc Extract shared IO/parse/decode/run utilities
add artifact/ref IO, format parse, opreg formatting, PEL decode/run modules
refactor PEL/ASL CLIs and pel_run/seed to use shared helpers
update build to include new sources and headers
2025-12-20 21:03:31 +01:00

30 lines
766 B
C

#ifndef AMDUAT_ASL_REF_IO_H
#define AMDUAT_ASL_REF_IO_H
#include "amduat/asl/core.h"
#include "amduat/format/ref.h"
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
bool amduat_asl_ref_decode_format(amduat_format_ref_format_t fmt,
amduat_octets_t input,
amduat_reference_t *out_ref);
bool amduat_asl_ref_list_parse(amduat_octets_t input,
amduat_format_ref_format_t fmt,
amduat_reference_t **out_refs,
size_t *out_len);
void amduat_asl_ref_list_free(amduat_reference_t *refs, size_t len);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* AMDUAT_ASL_REF_IO_H */