27#ifndef BSL_MOCK_BPA_H_
28#define BSL_MOCK_BPA_H_
45 uint64_t bundle_creation_time;
75#define MockBPA_BUNDLE_MAXBLOCKS (10)
87int MockBPA_GetBlockNums(
const BSL_BundleRef_t *bundle_ref,
size_t block_id_array_capacity,
88 uint64_t block_id_array_result[block_id_array_capacity],
size_t *result_count);
89int MockBPA_GetBlockMetadata(
const BSL_BundleRef_t *bundle_ref, uint64_t block_num,
91int MockBPA_ReallocBTSD(
BSL_BundleRef_t *bundle_ref, uint64_t block_num,
size_t bytesize);
92int MockBPA_CreateBlock(
BSL_BundleRef_t *bundle_ref, uint64_t block_type_code, uint64_t *result_block_num);
93int MockBPA_RemoveBlock(
BSL_BundleRef_t *bundle_ref, uint64_t block_num);
Single entry-point include file for all of the BPSec Lib (BSL) frontend API.
Single entry-point include file for all of the "Public" BPSec Lib (BSL) frontend API.
void bsl_mock_bpa_deinit(void)
Clean up the mock BPA for the current process.
int bsl_mock_bpa_init(void)
Register this mock BPA for the current process.
Reference to a Bundle owned and stored in the host BPA.
Structure containing parsed Canonical Block fields.
Opaque pointer to BPA-specific Endpoint ID storage.
Contains Bundle Primary Block fields and metadata.