1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /******************************************************************************* 3 * Copyright 2018-2019, Fraunhofer SIT sponsored by Infineon Technologies AG 4 * All rights reserved. 5 ******************************************************************************/ 6 #ifndef FAPI_TYPES_H 7 #define FAPI_TYPES_H 8 9 #include <stdlib.h> 10 #include <stdint.h> 11 #include <stdbool.h> 12 13 /** The data structure representing an unit8_t array. 14 */ 15 typedef struct { 16 size_t size; 17 uint8_t *buffer; 18 } UINT8_ARY; 19 20 /** The data structure storing a linked list of strings. 21 * 22 * The structure is used for the processing of file paths 23 */ 24 typedef struct str_node { 25 char *str; /**< A string of the string list */ 26 bool free_string; /**< Indicates whether a free has to called on cleanup */ 27 struct str_node *next; /**< Pointer to next element */ 28 } NODE_STR_T; 29 30 /** The data structure storing a linked list of objects. 31 * 32 * The structure is used for the processing of file paths 33 */ 34 typedef struct object_node { 35 void *object; /**< The pointer to the object */ 36 size_t size; /**< Will be used only for BYTE arrays */ 37 struct object_node *next; /**< Pointer to next element */ 38 } NODE_OBJECT_T; 39 40 #endif /* FAPI_TYPES_H */ 41