epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / ftypes / ftype-none.c
blob4955b1e9c0fc3ed9c56e9e1f3f39629ef564ae48
1 /*
2 * Wireshark - Network traffic analyzer
3 * By Gerald Combs <gerald@wireshark.org>
4 * Copyright 2001 Gerald Combs
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #include "config.h"
11 #include <ftypes-int.h>
12 #include <wsutil/array.h>
14 void
15 ftype_register_none(void)
18 static const ftype_t none_type = {
19 FT_NONE, /* ftype */
20 0, /* wire_size */
21 NULL, /* new_value */
22 NULL, /* copy_value */
23 NULL, /* free_value */
24 NULL, /* val_from_literal */
25 NULL, /* val_from_string */
26 NULL, /* val_from_charconst */
27 NULL, /* val_from_uinteger64 */
28 NULL, /* val_from_sinteger64 */
29 NULL, /* val_from_double */
30 NULL, /* val_to_string_repr */
32 NULL, /* val_to_uinteger64 */
33 NULL, /* val_to_sinteger64 */
34 NULL, /* val_to_double */
36 { NULL }, /* union set_value */
37 { NULL }, /* union get_value */
39 NULL, /* cmp_order */
40 NULL, /* cmp_contains */
41 NULL, /* cmp_matches */
43 NULL, /* hash */
44 NULL, /* is_zero */
45 NULL, /* is_negative */
46 NULL, /* len */
47 NULL, /* slice */
48 NULL, /* bitwise_and */
49 NULL, /* unary_minus */
50 NULL, /* add */
51 NULL, /* subtract */
52 NULL, /* multiply */
53 NULL, /* divide */
54 NULL, /* modulo */
56 ftype_register(FT_NONE, &none_type);
59 void
60 ftype_register_pseudofields_none(int proto)
62 static int hf_ft_none;
64 static hf_register_info hf_ftypes[] = {
65 { &hf_ft_none,
66 { "FT_NONE", "_ws.ftypes.none",
67 FT_NONE, BASE_NONE, NULL, 0x00,
68 NULL, HFILL }
72 proto_register_field_array(proto, hf_ftypes, array_length(hf_ftypes));
76 * Editor modelines - https://www.wireshark.org/tools/modelines.html
78 * Local variables:
79 * c-basic-offset: 8
80 * tab-width: 8
81 * indent-tabs-mode: t
82 * End:
84 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
85 * :indentSize=8:tabSize=8:noTabs=false: