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
11 #include "introspection.h"
15 #include <wsutil/array.h>
17 #include "introspection-enums.c"
19 const ws_enum_t
*epan_inspect_enums(void)
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
);