Clear up the code.
[obnox/wireshark/wip.git] / epan / tfs.c
1 /* tfs.c
2  * true_false strings
3  * Copyright 2007, Jaap Keuter <jaap.keuter@xs4all.nl>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24  */
25
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include "tfs.h"
31
32 /*
33  * A default set of true/false strings that dissectors can use for
34  * FT_BOOLEAN header fields.
35  */
36 const true_false_string tfs_true_false = { "True", "False" };
37 const true_false_string tfs_yes_no = { "Yes", "No" };
38 const true_false_string tfs_set_notset = { "Set", "Not Set" };
39 const true_false_string tfs_enabled_disabled = { "Enabled", "Disabled" };
40 const true_false_string tfs_ok_error = { "Ok", "Error" };
41 const true_false_string tfs_success_fail = { "Success", "Fail" };
42 const true_false_string tfs_on_off = { "On", "Off" };
43 const true_false_string tfs_ack_nack = { "Ack", "Nack" };
44 const true_false_string tfs_odd_even = { "Odd", "Even" };
45 const true_false_string tfs_allow_block = { "Allow", "Block" };
46 const true_false_string tfs_restricted_allowed = { "Restricted", "Allowed" };
47 const true_false_string tfs_accept_reject = { "Accept", "Reject" };
48 const true_false_string tfs_more_nomore = { "More", "No More" };
49 const true_false_string tfs_present_absent = { "Present", "Absent" };
50 const true_false_string tfs_active_inactive = { "Active", "Inactive" };
51 const true_false_string tfs_found_not_found = { "Found", "Not found" };
52 const true_false_string tfs_command_response = { "Command", "Response" };
53 const true_false_string tfs_capable_not_capable = { "Capable", "Not capable" };
54 const true_false_string tfs_supported_not_supported = { "Supported", "Not supported" };
55
56 /* 
57  * Old true_false_string from packet.c
58  * Retained for backward compatibility until all dissectors are updated.
59  */
60 const true_false_string flags_set_truth = { "Set", "Not set" };
61