Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / wiretap / introspection.c
blob44a342f9a13c51e926a2481630d82a6a701130f3
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>
14 #include <wsutil/array.h>
16 #include "introspection-enums.c"
18 const ws_enum_t *wtap_inspect_enums(void)
20 return all_enums;
23 size_t wtap_inspect_enums_count(void)
25 /* Exclude null terminator */
26 return array_length(all_enums) - 1;
29 const ws_enum_t *wtap_inspect_enums_bsearch(const char *needle)
31 return ws_enums_bsearch(all_enums, wtap_inspect_enums_count(), needle);