Now handles domain & message struct not based on order but on struct name

This commit is contained in:
Alexandre Paillier
2022-05-06 18:14:04 +02:00
parent 5c00a5c27b
commit b8424d1a21
3 changed files with 34 additions and 11 deletions

View File

@@ -13,6 +13,12 @@ typedef struct
uint8_t size;
} s_array_depth;
typedef enum
{
ROOT_DOMAIN,
ROOT_MESSAGE
} e_root_type;
typedef struct
{
uint8_t depth_count;
@@ -20,6 +26,7 @@ typedef struct
uint8_t array_depth_count;
s_array_depth array_depths[MAX_ARRAY_DEPTH];
const void *root_struct;
e_root_type root_type;
} s_path;
bool path_set_root(const char *const struct_name, uint8_t length);