28 lines
669 B
C
28 lines
669 B
C
#ifndef AMDUAT_ASL_REF_TEXT_H
|
|
#define AMDUAT_ASL_REF_TEXT_H
|
|
|
|
#include "amduat/asl/core.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Caller owns any heap allocations returned in out_hex or out_ref->digest. */
|
|
bool amduat_asl_ref_encode_hex(amduat_reference_t ref, char **out_hex);
|
|
|
|
bool amduat_asl_ref_decode_hex(const char *hex, amduat_reference_t *out_ref);
|
|
|
|
bool amduat_asl_ref_decode_bytes(const uint8_t *bytes,
|
|
size_t len,
|
|
amduat_reference_t *out_ref);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* AMDUAT_ASL_REF_TEXT_H */
|