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
24typedef struct {
25 const char *symbol;
26 int value;
27} ws_enum_t;
28
40WS_DLL_PUBLIC
41const ws_enum_t *ws_enums_bsearch(const ws_enum_t *enums, size_t count,
42 const char *needle);
43
44#endif
Represents a symbolic enumeration entry.
Definition introspection.h:24
int value
Definition introspection.h:26
const char * symbol
Definition introspection.h:25
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