aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tfs.c
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.c
parenta68f0224c32995115f35a5dccf1ff2d3da9b2162 (diff)
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.c')
-rw-r--r--epan/tfs.c61
1 files changed, 61 insertions, 0 deletions
diff --git a/epan/tfs.c b/epan/tfs.c
new file mode 100644
index 0000000000..69ea4a7ad0
--- /dev/null
+++ b/epan/tfs.c
@@ -0,0 +1,61 @@
+/* tfs.c
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "tfs.h"
+
+/*
+ * A default set of true/false strings that dissectors can use for
+ * FT_BOOLEAN header fields.
+ */
+const true_false_string tfs_true_false = { "True", "False" };
+const true_false_string tfs_yes_no = { "Yes", "No" };
+const true_false_string tfs_set_notset = { "Set", "Not Set" };
+const true_false_string tfs_enabled_disabled = { "Enabled", "Disabled" };
+const true_false_string tfs_ok_error = { "Ok", "Error" };
+const true_false_string tfs_success_fail = { "Success", "Fail" };
+const true_false_string tfs_on_off = { "On", "Off" };
+const true_false_string tfs_ack_nack = { "Ack", "Nack" };
+const true_false_string tfs_odd_even = { "Odd", "Even" };
+const true_false_string tfs_allow_block = { "Allow", "Block" };
+const true_false_string tfs_restricted_allowed = { "Restricted", "Allowed" };
+const true_false_string tfs_accept_reject = { "Accept", "Reject" };
+const true_false_string tfs_more_nomore = { "More", "No More" };
+const true_false_string tfs_present_absent = { "Present", "Absent" };
+const true_false_string tfs_active_inactive = { "Active", "Inactive" };
+const true_false_string tfs_found_not_found = { "Found", "Not found" };
+const true_false_string tfs_command_response = { "Command", "Response" };
+const true_false_string tfs_capable_not_capable = { "Capable", "Not capable" };
+const true_false_string tfs_supported_not_supported = { "Supported", "Not supported" };
+
+/*
+ * Old true_false_string from packet.c
+ * Retained for backward compatibility until all dissectors are updated.
+ */
+const true_false_string flags_set_truth = { "Set", "Not set" };
+