@@ -276,7 +276,10 @@ typedef struct BSL_Data_s
276276/** Static initializer for a data store.
277277 * @sa BSL_Data_Init()
278278 */
279- #define BSL_DATA_INIT_NULL { .owned = false, .ptr = NULL, .len = 0 }
279+ #define BSL_DATA_INIT_NULL \
280+ { \
281+ .owned = false, .ptr = NULL, .len = 0 \
282+ }
280283
281284/** Initialize an empty data struct.
282285 *
@@ -387,7 +390,10 @@ int BSL_SeqWriter_Put(BSL_SeqWriter_t *obj, const uint8_t *buf, size_t *bufsize)
387390/** Static initializer for an invalid ::BSL_HostEID_t.
388391 * Even after this, BSL_HostEID_Init() must be used to get into a valid state.
389392 */
390- #define BSL_HOSTEID_INIT_INVALID { .handle = NULL }
393+ #define BSL_HOSTEID_INIT_INVALID \
394+ { \
395+ .handle = NULL \
396+ }
391397
392398/** Initialize an abstract EID.
393399 *
@@ -434,7 +440,10 @@ int BSL_HostEID_DecodeFromCBOR(BSL_HostEID_t *eid, void *decoder);
434440/** Static initializer for an invalid ::BSL_HostEIDPattern_t.
435441 * Even after this, BSL_HostEIDPattern_Init() must be used to get into a valid state.
436442 */
437- #define BSL_HOSTEID_INIT_INVALID { .handle = NULL }
443+ #define BSL_HOSTEID_INIT_INVALID \
444+ { \
445+ .handle = NULL \
446+ }
438447
439448/** Initialize an abstract EID Pattern.
440449 *
@@ -515,25 +524,25 @@ typedef enum
515524} BSL_BundleCtrlFlag_e ;
516525
517526/** @brief Calls the host interface to get a bundle primary block information.abort
518- *
527+ *
519528 * @param[in] bundle Bundle context
520529 * @param[out] result_primary_block Non-null pointer to result which gets populated on a zero return code.
521530 * @returns 0 on success, negative on error
522531 */
523532int BSL_BundleCtx_GetBundleMetadata (const BSL_BundleRef_t * bundle , BSL_PrimaryBlock_t * result_primary_block );
524533
525534/** @brief Returns an array in which each element contains the id of the corresponding block.abort
526- *
535+ *
527536 * @param[in] bundle Bundle context
528537 * @param[in] array_count Number of elements in `block_id_index_array`
529538 * @param[out] block_id_index_array Array of `array_count` elements for results
530539 * @param[out] result_count Contains the number of elements put into the array
531540 */
532- int BSL_BundleCtx_GetBlockIds (const BSL_BundleRef_t * bundle , size_t array_count ,
533- uint64_t block_ids_array [ array_count ], size_t * result_count );
541+ int BSL_BundleCtx_GetBlockIds (const BSL_BundleRef_t * bundle , size_t array_count , uint64_t block_ids_array [ array_count ],
542+ size_t * result_count );
534543
535544/** @brief Returns information about the bundle Canonical block
536- *
545+ *
537546 * @param[in] bundle Context bundle
538547 * @param[in] block_num The number of the bundle canonical block we seek information on
539548 * @param[out] result_block Pointer to allocated memory which contains the results of the query.
@@ -551,17 +560,17 @@ int BSL_BundleCtx_GetBlockMetadata(const BSL_BundleRef_t *bundle, uint64_t block
551560int BSL_BundleCtx_CreateBlock (BSL_BundleRef_t * bundle , uint64_t block_type_code , uint64_t * block_num );
552561
553562/** @brief Requests the removal of a block from a bundle
554- *
563+ *
555564 * @param[in] bundle Context bundle
556565 * @param[in] block_num Block number to be removed
557566 * @returns 0 on success, negative on failure.
558567 */
559568int BSL_BundleCtx_RemoveBlock (BSL_BundleRef_t * bundle , uint64_t block_num );
560569
561570/** @brief Requests the re-allocation of a block's BTSD, useful for BCB.
562- *
571+ *
563572 * @note Uses semantics similar to memcpy.
564- *
573+ *
565574 * @param[in] bundle Context bundle
566575 * @param[in] block_num Number of block requesting re-allocated of BTSD
567576 * @param[in] bytesize Size of new BTSD
@@ -1005,13 +1014,13 @@ size_t BSL_SecurityActionSet_Sizeof(void);
10051014void BSL_SecurityActionSet_Init (BSL_SecurityActionSet_t * self );
10061015
10071016/** @brief Increment a security failure for this action set
1008- *
1017+ *
10091018 * @param[in, out] self Pointer to this security action set.
10101019 */
10111020void BSL_SecurityActionSet_IncrError (BSL_SecurityActionSet_t * self );
10121021
10131022/** @brief Returns count of failures after processing this action set
1014- *
1023+ *
10151024 * @param[in] self Pointer ot this security action set.
10161025 * @returns Count of errors.
10171026 */
@@ -1024,7 +1033,7 @@ size_t BSL_SecurityActionSet_CountErrors(const BSL_SecurityActionSet_t *self);
10241033void BSL_SecurityActionSet_Deinit (BSL_SecurityActionSet_t * self );
10251034
10261035/** @brief Append a security operation to the security action set
1027- *
1036+ *
10281037 * @param[in, out] self This security action set.
10291038 * @param[in] sec_oper Security operation to include.
10301039 * @returns 0 on success, negative on error
0 commit comments