Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
tfs.h
Go to the documentation of this file.
1/* tfs.h
2 * true_false strings
3 * Copyright 2007, Jaap Keuter <[email protected]>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12#ifndef __TFS_H__
13#define __TFS_H__
14
15#include <stdbool.h>
16#include "ws_symbol_export.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
27typedef struct true_false_string {
28 const char *true_string;
29 const char *false_string;
31
39WS_DLL_PUBLIC const char *tfs_get_string(bool value, const true_false_string *tfs);
40
41#define tfs_get_true_false(value) tfs_get_string(value, NULL)
42
43/*
44 * A default set of true/false strings that dissectors can use for
45 * FT_BOOLEAN header fields. By default { "True", "False" } is used.
46 */
47WS_DLL_PUBLIC const true_false_string tfs_yes_no;
48WS_DLL_PUBLIC const true_false_string tfs_no_yes;
49WS_DLL_PUBLIC const true_false_string tfs_set_notset;
50WS_DLL_PUBLIC const true_false_string tfs_enabled_disabled;
51WS_DLL_PUBLIC const true_false_string tfs_disabled_enabled;
52WS_DLL_PUBLIC const true_false_string tfs_ok_error;
53WS_DLL_PUBLIC const true_false_string tfs_error_ok;
54WS_DLL_PUBLIC const true_false_string tfs_success_fail;
55WS_DLL_PUBLIC const true_false_string tfs_fail_success;
56WS_DLL_PUBLIC const true_false_string tfs_on_off;
57WS_DLL_PUBLIC const true_false_string tfs_off_on;
58WS_DLL_PUBLIC const true_false_string tfs_ack_nack;
59WS_DLL_PUBLIC const true_false_string tfs_odd_even;
60WS_DLL_PUBLIC const true_false_string tfs_allow_block;
61WS_DLL_PUBLIC const true_false_string tfs_restricted_not_restricted;
62WS_DLL_PUBLIC const true_false_string tfs_not_restricted_restricted;
63WS_DLL_PUBLIC const true_false_string tfs_accept_reject;
64WS_DLL_PUBLIC const true_false_string tfs_more_nomore;
65WS_DLL_PUBLIC const true_false_string tfs_present_absent;
66WS_DLL_PUBLIC const true_false_string tfs_present_not_present;
67WS_DLL_PUBLIC const true_false_string tfs_active_inactive;
68WS_DLL_PUBLIC const true_false_string tfs_activated_deactivated;
69WS_DLL_PUBLIC const true_false_string tfs_found_not_found;
70WS_DLL_PUBLIC const true_false_string tfs_command_response;
71WS_DLL_PUBLIC const true_false_string tfs_response_command;
72WS_DLL_PUBLIC const true_false_string tfs_capable_not_capable;
73WS_DLL_PUBLIC const true_false_string tfs_supported_not_supported;
74WS_DLL_PUBLIC const true_false_string tfs_not_supported_supported;
75WS_DLL_PUBLIC const true_false_string tfs_used_notused;
76WS_DLL_PUBLIC const true_false_string tfs_high_low;
77WS_DLL_PUBLIC const true_false_string tfs_high_normal;
78WS_DLL_PUBLIC const true_false_string tfs_low_normal;
79WS_DLL_PUBLIC const true_false_string tfs_pressed_not_pressed;
80WS_DLL_PUBLIC const true_false_string tfs_implemented_not_implemented;
81WS_DLL_PUBLIC const true_false_string tfs_requested_not_requested;
82WS_DLL_PUBLIC const true_false_string tfs_reliable_not_reliable;
83WS_DLL_PUBLIC const true_false_string tfs_allowed_not_allowed;
84WS_DLL_PUBLIC const true_false_string tfs_not_allowed_allowed;
85WS_DLL_PUBLIC const true_false_string tfs_accepted_not_accepted;
86WS_DLL_PUBLIC const true_false_string tfs_detected_not_detected;
87WS_DLL_PUBLIC const true_false_string tfs_available_not_available;
88WS_DLL_PUBLIC const true_false_string tfs_shared_independent;
89WS_DLL_PUBLIC const true_false_string tfs_valid_invalid;
90WS_DLL_PUBLIC const true_false_string tfs_invalid_valid;
91WS_DLL_PUBLIC const true_false_string tfs_group_unique_name;
92WS_DLL_PUBLIC const true_false_string tfs_inuse_not_inuse;
93WS_DLL_PUBLIC const true_false_string tfs_critical_not_critical;
94WS_DLL_PUBLIC const true_false_string tfs_complete_incomplete;
95WS_DLL_PUBLIC const true_false_string tfs_valid_not_valid;
96WS_DLL_PUBLIC const true_false_string tfs_do_not_clear_clear;
97WS_DLL_PUBLIC const true_false_string tfs_confirmed_unconfirmed;
98WS_DLL_PUBLIC const true_false_string tfs_enforced_not_enforced;
99WS_DLL_PUBLIC const true_false_string tfs_possible_not_possible;
100WS_DLL_PUBLIC const true_false_string tfs_required_not_required;
101WS_DLL_PUBLIC const true_false_string tfs_registered_not_registered;
102WS_DLL_PUBLIC const true_false_string tfs_provisioned_not_provisioned;
103WS_DLL_PUBLIC const true_false_string tfs_included_not_included;
104WS_DLL_PUBLIC const true_false_string tfs_allocated_by_receiver_sender;
105WS_DLL_PUBLIC const true_false_string tfs_asynchronous_synchronous;
106WS_DLL_PUBLIC const true_false_string tfs_protocol_sensative_bit_transparent;
107WS_DLL_PUBLIC const true_false_string tfs_full_half;
108WS_DLL_PUBLIC const true_false_string tfs_acknowledged_not_acknowledged;
109WS_DLL_PUBLIC const true_false_string tfs_segmentation_no_segmentation;
110WS_DLL_PUBLIC const true_false_string tfs_response_request;
111WS_DLL_PUBLIC const true_false_string tfs_defined_not_defined;
112WS_DLL_PUBLIC const true_false_string tfs_constructed_primitive;
113WS_DLL_PUBLIC const true_false_string tfs_client_server;
114WS_DLL_PUBLIC const true_false_string tfs_server_client;
115WS_DLL_PUBLIC const true_false_string tfs_preferred_no_preference;
116WS_DLL_PUBLIC const true_false_string tfs_encrypt_do_not_encrypt;
117WS_DLL_PUBLIC const true_false_string tfs_down_up;
118WS_DLL_PUBLIC const true_false_string tfs_up_down;
119WS_DLL_PUBLIC const true_false_string tfs_uplink_downlink;
120WS_DLL_PUBLIC const true_false_string tfs_s2c_c2s;
121WS_DLL_PUBLIC const true_false_string tfs_open_closed;
122WS_DLL_PUBLIC const true_false_string tfs_external_internal;
123WS_DLL_PUBLIC const true_false_string tfs_changed_not_changed;
124WS_DLL_PUBLIC const true_false_string tfs_needed_not_needed;
125WS_DLL_PUBLIC const true_false_string tfs_selected_not_selected;
126WS_DLL_PUBLIC const true_false_string tfs_add_drop;
127WS_DLL_PUBLIC const true_false_string tfs_no_extension_extension;
128WS_DLL_PUBLIC const true_false_string tfs_user_provider;
129WS_DLL_PUBLIC const true_false_string tfs_applicable_not_applicable;
130WS_DLL_PUBLIC const true_false_string tfs_current_not_yet;
131WS_DLL_PUBLIC const true_false_string tfs_should_be_traced_should_not_be_traced;
132WS_DLL_PUBLIC const true_false_string tfs_activate_do_not_activate;
133WS_DLL_PUBLIC const true_false_string tfs_data_pdu_control_pdu;
134
135#ifdef __cplusplus
136}
137#endif /* __cplusplus */
138
139#endif /* __TFS_H__ */
140
141/*
142 * Editor modelines - https://www.wireshark.org/tools/modelines.html
143 *
144 * Local variables:
145 * c-basic-offset: 4
146 * tab-width: 8
147 * indent-tabs-mode: nil
148 * End:
149 *
150 * vi: set shiftwidth=4 tabstop=8 expandtab:
151 * :indentSize=4:tabSize=8:noTabs=true:
152 */
Definition tfs.h:27
const char * false_string
Definition tfs.h:29
const char * true_string
Definition tfs.h:28
WS_DLL_PUBLIC const char * tfs_get_string(bool value, const true_false_string *tfs)
Definition tfs.c:21