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"
14 #include <wsutil/array.h>
16 #include "introspection-enums.c"
18 const ws_enum_t
*wtap_inspect_enums(void)
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
);