BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
|
Declarations for Agent initialization. More...
#include <BPSecLib_Public.h>
#include <BPSecLib_Private.h>
#include <m-deque.h>
#include <m-dict.h>
#include <m-string.h>
#include <inttypes.h>
Go to the source code of this file.
Data Structures | |
struct | MockBPA_BundleTimestamp_s |
struct | MockBPA_PrimaryBlock_s |
struct | MockBPA_CanonicalBlock_s |
struct | MockBPA_Bundle_s |
Macros | |
#define | MockBPA_BUNDLE_MAXBLOCKS (10) |
Typedefs | |
typedef struct MockBPA_BundleTimestamp_s | MockBPA_BundleTimestamp_t |
typedef struct MockBPA_PrimaryBlock_s | MockBPA_PrimaryBlock_t |
typedef struct MockBPA_CanonicalBlock_s | MockBPA_CanonicalBlock_t |
typedef struct MockBPA_Bundle_s | MockBPA_Bundle_t |
Functions | |
int | MockBPA_Bundle_Deinit (MockBPA_Bundle_t *bundle_ref) |
int | MockBPA_GetBundleMetadata (const BSL_BundleRef_t *bundle_ref, BSL_PrimaryBlock_t *result_primary_block) |
int | MockBPA_GetBlockNums (const BSL_BundleRef_t *bundle_ref, size_t block_id_array_capacity, uint64_t block_id_array_result[block_id_array_capacity], size_t *result_count) |
int | MockBPA_GetBlockMetadata (const BSL_BundleRef_t *bundle_ref, uint64_t block_num, BSL_CanonicalBlock_t *result_canonical_block) |
int | MockBPA_ReallocBTSD (BSL_BundleRef_t *bundle_ref, uint64_t block_num, size_t bytesize) |
int | MockBPA_CreateBlock (BSL_BundleRef_t *bundle_ref, uint64_t block_type_code, uint64_t *result_block_num) |
int | MockBPA_RemoveBlock (BSL_BundleRef_t *bundle_ref, uint64_t block_num) |
int | bsl_mock_bpa_init (void) |
Register this mock BPA for the current process. | |
void | bsl_mock_bpa_deinit (void) |
Clean up the mock BPA for the current process. | |
Declarations for Agent initialization.
Definition in file bsl_mock_bpa.h.
#define MockBPA_BUNDLE_MAXBLOCKS (10) |
Definition at line 75 of file bsl_mock_bpa.h.
void bsl_mock_bpa_deinit | ( | void | ) |
Clean up the mock BPA for the current process.
Definition at line 280 of file bsl_mock_bpa.c.
References BSL_HostDescriptors_Get(), BSL_HostDescriptors_Set(), and BSL_HostDescriptors_t::user_data.
int bsl_mock_bpa_init | ( | void | ) |
Register this mock BPA for the current process.
Definition at line 249 of file bsl_mock_bpa.c.
References BSL_HostDescriptors_Set(), bsl_mock_decode_eid(), bsl_mock_encode_eid(), mock_bpa_eid_from_text(), MockBPA_EID_Deinit(), MockBPA_EID_Init(), and BSL_HostDescriptors_t::user_data.
int MockBPA_Bundle_Deinit | ( | MockBPA_Bundle_t * | bundle_ref | ) |
Definition at line 36 of file bsl_mock_bpa.c.
int MockBPA_CreateBlock | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_type_code, | ||
uint64_t * | result_block_num | ||
) |
Definition at line 171 of file bsl_mock_bpa.c.
int MockBPA_GetBlockMetadata | ( | const BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num, | ||
BSL_CanonicalBlock_t * | result_canonical_block | ||
) |
Definition at line 100 of file bsl_mock_bpa.c.
int MockBPA_GetBlockNums | ( | const BSL_BundleRef_t * | bundle_ref, |
size_t | block_id_array_capacity, | ||
uint64_t | block_id_array_result[block_id_array_capacity], | ||
size_t * | result_count | ||
) |
Definition at line 82 of file bsl_mock_bpa.c.
int MockBPA_GetBundleMetadata | ( | const BSL_BundleRef_t * | bundle_ref, |
BSL_PrimaryBlock_t * | result_primary_block | ||
) |
Definition at line 55 of file bsl_mock_bpa.c.
int MockBPA_ReallocBTSD | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num, | ||
size_t | bytesize | ||
) |
Definition at line 134 of file bsl_mock_bpa.c.
int MockBPA_RemoveBlock | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num | ||
) |
Definition at line 203 of file bsl_mock_bpa.c.