diff options
Diffstat (limited to 'src/core/json_helpers.h')
-rw-r--r-- | src/core/json_helpers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/json_helpers.h b/src/core/json_helpers.h new file mode 100644 index 0000000..953e56f --- /dev/null +++ b/src/core/json_helpers.h @@ -0,0 +1,15 @@ +/* BSD-2-Clause license + * + * Copyright (c) 2018-2023 NST <www.newinfosec.ru>, sss <sss at dark-alexandr dot net>. + * + */ + +#pragma once + +int64_t json_option_extract_int64(struct json_object_element_s *json_option); + +bool json_option_extract_bool(struct json_object_element_s *json_option); + +/* if out buffer is 0, caller must free memory */ +char *json_option_extract_string( + struct json_object_element_s *json_option, char *out); |