summaryrefslogtreecommitdiff
path: root/src/core/json_helpers.h
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2023-01-17 00:38:19 +0300
committersss <sss@dark-alexandr.net>2023-01-17 00:38:19 +0300
commitcc3f33db7a8d3c4ad373e646b199808e01bc5d9b (patch)
treeec09d690c7656ab5f2cc72607e05fb359c24d8b2 /src/core/json_helpers.h
added webrdp public code
Diffstat (limited to 'src/core/json_helpers.h')
-rw-r--r--src/core/json_helpers.h15
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);