summaryrefslogtreecommitdiffstats
path: root/wsutil/wsjson.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /wsutil/wsjson.h
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil/wsjson.h')
-rw-r--r--wsutil/wsjson.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsutil/wsjson.h b/wsutil/wsjson.h
index be232767..180c0fb1 100644
--- a/wsutil/wsjson.h
+++ b/wsutil/wsjson.h
@@ -70,6 +70,12 @@ WS_DLL_PUBLIC char *json_get_string(char *buf, jsmntok_t *parent, const char *na
WS_DLL_PUBLIC bool json_get_double(char *buf, jsmntok_t *parent, const char *name, double *val);
/**
+ * Get the value of a boolean belonging to parent object and named as the name variable.
+ * Returns false if not found. (Not the same as the boolean present but false.)
+ */
+WS_DLL_PUBLIC bool json_get_boolean(char *buf, jsmntok_t *parent, const char *name, bool *val);
+
+/**
* Decode the contents of a JSON string value by overwriting the input data.
* Returns true on success and false if invalid characters were encountered.
*/