Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / wsutil / introspection.h
blobf3272df80c877c5981c3d03ba57283212559d4ff
1 /** @file
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 */
11 #ifndef _INTROSPECTION_H_
12 #define _INTROSPECTION_H_
14 #include <stddef.h>
15 #include <ws_symbol_export.h>
17 typedef struct {
18 const char *symbol;
19 int value;
20 } ws_enum_t;
23 /** Performs a binary search for the magic constant "needle". */
24 WS_DLL_PUBLIC
25 const ws_enum_t *
26 ws_enums_bsearch(const ws_enum_t *enums, size_t count,
27 const char *needle);
29 #endif