xref: /openbmc/libcper/include/libcper/generator/gen-utils.h (revision c97c041e571841f0ce67292208e083f6d858cf5c)
1 #ifndef CPER_GEN_UTILS_H
2 #define CPER_GEN_UTILS_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdlib.h>
9 #include <libcper/BaseTypes.h>
10 #include <libcper/common-utils.h>
11 
12 #define CPER_ERROR_TYPES_KEYS                                                  \
13 	(                                                                      \
14 		int[]){ 1,  16, 4,  5,	6,  7,	8,  9,	17,                    \
15 			18, 19, 20, 21, 22, 23, 24, 25, 26 }
16 
17 size_t generate_random_section(void **location, size_t size);
18 UINT8 *generate_random_bytes(size_t size);
19 void init_random();
20 void create_valid_error_section(UINT8 *start);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif
27