amduat/include/amduat/enc/pel1_result.h

32 lines
894 B
C

#ifndef AMDUAT_ENC_PEL1_RESULT_H
#define AMDUAT_ENC_PEL1_RESULT_H
#include "amduat/asl/core.h"
#include "amduat/pel/surf.h"
#ifdef __cplusplus
extern "C" {
#endif
enum { PEL_ENC_EXECUTION_RESULT_V1 = 0x0103u };
enum { AMDUAT_PEL_ENC_EXECUTION_RESULT_V1 = PEL_ENC_EXECUTION_RESULT_V1 };
enum { TYPE_TAG_PEL1_RESULT_1 = 0x00000103u };
enum { AMDUAT_TYPE_TAG_PEL1_RESULT_1 = TYPE_TAG_PEL1_RESULT_1 };
/* Caller owns any heap allocations returned in out_bytes/out_result. */
bool amduat_enc_pel1_result_encode_v1(
const amduat_pel_surface_execution_result_t *result,
amduat_octets_t *out_bytes);
bool amduat_enc_pel1_result_decode_v1(
amduat_octets_t bytes,
amduat_pel_surface_execution_result_t *out_result);
void amduat_enc_pel1_result_free(amduat_pel_surface_execution_result_t *result);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* AMDUAT_ENC_PEL1_RESULT_H */