summaryrefslogtreecommitdiff
path: root/epan/tfs.h
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2007-01-10 07:47:00 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2007-01-10 07:47:00 +0000
commitf8422ab7db0da2b503c0af24d601c65ee9b825bd (patch)
treee550ae0b45a1ca1d859b726bc2fe73294f353d9b /epan/tfs.h
parenta68f0224c32995115f35a5dccf1ff2d3da9b2162 (diff)
downloadwireshark-f8422ab7db0da2b503c0af24d601c65ee9b825bd.tar.gz
Extending true_false_string support
- Separate tfs.[ch] - Add larger sample collection - Properly export DATA svn path=/trunk/; revision=20373
Diffstat (limited to 'epan/tfs.h')
-rw-r--r--epan/tfs.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/epan/tfs.h b/epan/tfs.h
new file mode 100644
index 0000000000..f358ae7a92
--- /dev/null
+++ b/epan/tfs.h
@@ -0,0 +1,65 @@
+/* tfs.h
+ * true_false strings
+ * Copyright 2007, Jaap Keuter <jaap.keuter@xs4all.nl>
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __TFS_H__
+#define __TFS_H__
+
+/* Struct for boolean enumerations */
+typedef struct true_false_string {
+ const char *true_string;
+ const char *false_string;
+} true_false_string;
+
+/*
+ * A default set of true/false strings that dissectors can use for
+ * FT_BOOLEAN header fields.
+ */
+WS_VAR_IMPORT const true_false_string tfs_true_false;
+WS_VAR_IMPORT const true_false_string tfs_yes_no;
+WS_VAR_IMPORT const true_false_string tfs_set_notset;
+WS_VAR_IMPORT const true_false_string tfs_enabled_disabled;
+WS_VAR_IMPORT const true_false_string tfs_ok_error;
+WS_VAR_IMPORT const true_false_string tfs_success_fail;
+WS_VAR_IMPORT const true_false_string tfs_on_off;
+WS_VAR_IMPORT const true_false_string tfs_ack_nack;
+WS_VAR_IMPORT const true_false_string tfs_odd_even;
+WS_VAR_IMPORT const true_false_string tfs_allow_block;
+WS_VAR_IMPORT const true_false_string tfs_restricted_allowed;
+WS_VAR_IMPORT const true_false_string tfs_accept_reject;
+WS_VAR_IMPORT const true_false_string tfs_more_nomore;
+WS_VAR_IMPORT const true_false_string tfs_present_absent;
+WS_VAR_IMPORT const true_false_string tfs_active_inactive;
+WS_VAR_IMPORT const true_false_string tfs_found_not_found;
+WS_VAR_IMPORT const true_false_string tfs_command_response;
+WS_VAR_IMPORT const true_false_string tfs_capable_not_capable;
+WS_VAR_IMPORT const true_false_string tfs_supported_not_supported;
+
+/*
+ * Old true_false_string from packet.c
+ * Retained for backward compatibility until all dissectors are updated.
+ */
+WS_VAR_IMPORT const true_false_string flags_set_truth;
+
+#endif