Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / introspection.c
blob0a3f88c0bfab0838275b4f6deacc3858c1213ceb
1 /*
2 * Copyright 2021, João Valverde <j@v6e.pt>
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10 #include "config.h"
11 #include "introspection.h"
12 #include <string.h>
13 #include <stdlib.h>
15 #include <wsutil/array.h>
17 #include "introspection-enums.c"
19 const ws_enum_t *epan_inspect_enums(void)
21 return all_enums;
24 size_t epan_inspect_enums_count(void)
26 /* Exclude null terminator */
27 return array_length(all_enums) - 1;
30 const ws_enum_t *epan_inspect_enums_bsearch(const char *needle)
32 return ws_enums_bsearch(all_enums, epan_inspect_enums_count(), needle);