| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
introspection.h
Go to the documentation of this file.
1
11#ifndef _INTROSPECTION_H_
12#define _INTROSPECTION_H_
13
14#include <stddef.h>
15#include <ws_symbol_export.h>
16
24 typedef struct {
25 const char *symbol;
26 int value;
27} ws_enum_t;
28
40WS_DLL_PUBLIC
41 const ws_enum_t *ws_enums_bsearch(const ws_enum_t *enums, size_t count,
42 const char *needle);
43
44#endif
ws_enum_t
Represents a symbolic enumeration entry.
Definition introspection.h:24
ws_enum_t::value
int value
Definition introspection.h:26
ws_enum_t::symbol
const char * symbol
Definition introspection.h:25
ws_enums_bsearch
WS_DLL_PUBLIC const ws_enum_t * ws_enums_bsearch(const ws_enum_t *enums, size_t count, const char *needle)
Performs a binary search for a symbolic enumeration entry.
Definition introspection.c:23