30 lines
751 B
C
30 lines
751 B
C
#ifndef AMDUAT_ENC_PEL_PROGRAM_DAG_H
|
|
#define AMDUAT_ENC_PEL_PROGRAM_DAG_H
|
|
|
|
#include "amduat/asl/core.h"
|
|
#include "amduat/pel/program_dag.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum { PEL_ENC_PROGRAM_DAG_V1 = 0x0101u };
|
|
enum { AMDUAT_PEL_ENC_PROGRAM_DAG_V1 = PEL_ENC_PROGRAM_DAG_V1 };
|
|
|
|
/* Caller owns any heap allocations returned in out_bytes/out_program. */
|
|
bool amduat_enc_pel_program_dag_encode_v1(
|
|
const amduat_pel_program_t *program,
|
|
amduat_octets_t *out_bytes);
|
|
|
|
bool amduat_enc_pel_program_dag_decode_v1(
|
|
amduat_octets_t bytes,
|
|
amduat_pel_program_t *out_program);
|
|
|
|
void amduat_enc_pel_program_dag_free(amduat_pel_program_t *program);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* AMDUAT_ENC_PEL_PROGRAM_DAG_H */
|