XROAD
fix_error_priv.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "fix_parser_fwd.h"
9 #include "fix_error.h"
10 
11 #include <stdint.h>
12 #include <stdarg.h>
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif
18 
19 #define ERROR_TXT_SIZE 96
20 
22 {
23  fix_errno_t code;
24  uint32_t text_len;
26 };
27 
35 fix_error_t* fix_error_create_va(fix_errno_t code, const char* text, va_list ap);
36 
43 fix_error_t* fix_error_create(fix_errno_t code, const char* text, ...);
44 
45 #ifdef __cplusplus
46 }
47 #endif
#define ERROR_TXT_SIZE
maximum error description size
Definition: fix_error_priv.h:19
fix_error_t * fix_error_create_va(fix_errno_t code, const char *text, va_list ap)
fix_error_t * fix_error_create(fix_errno_t code, const char *text,...)
Definition: fix_error_priv.h:22
char text[ERROR_TXT_SIZE]
error description
Definition: fix_error_priv.h:25
uint32_t text_len
length of error description
Definition: fix_error_priv.h:24
fix_errno_t code
error code
Definition: fix_error_priv.h:23