aboutsummaryrefslogtreecommitdiffstats
path: root/epan/value_string.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-29 23:23:28 +0000
committerEvan Huus <eapache@gmail.com>2013-03-29 23:23:28 +0000
commitd155b0da1965575060da94a1e13558e5bf2d67df (patch)
treeb4d872892f490806d642ca47284f5d71c0ca4987 /epan/value_string.h
parente964ab416434cd0b58cd776cf96a2d0ac7bc6f6d (diff)
Implement str_to_val, opposite of val_to_str for value_strings.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467 svn path=/trunk/; revision=48645
Diffstat (limited to 'epan/value_string.h')
-rw-r--r--epan/value_string.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/value_string.h b/epan/value_string.h
index de12e52a52..1759d0dfb1 100644
--- a/epan/value_string.h
+++ b/epan/value_string.h
@@ -51,6 +51,16 @@ WS_DLL_PUBLIC
const gchar*
try_val_to_str_idx(const guint32 val, const value_string *vs, gint *idx);
+/* STRING TO VALUE MATCHING */
+
+WS_DLL_PUBLIC
+guint32
+str_to_val(const gchar *val, const value_string *vs, const guint32 err_val);
+
+WS_DLL_PUBLIC
+gint
+str_to_val_idx(const gchar *val, const value_string *vs);
+
/* EXTENDED VALUE TO STRING MATCHING */
struct _value_string_ext;