Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ex-opt.h
Go to the documentation of this file.
1
13#pragma once
14#include <stdbool.h>
15
16#include "ws_symbol_export.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22/* will be called by main each time a -X option is found */
29WS_DLL_PUBLIC bool ex_opt_add(const char* ws_optarg);
30
37WS_DLL_PUBLIC int ex_opt_count(const char* key);
38
46WS_DLL_PUBLIC const char* ex_opt_get_nth(const char* key, unsigned key_index);
47
56WS_DLL_PUBLIC char* ex_opt_get_next(const char* key);
57
58#ifdef __cplusplus
59}
60#endif /* __cplusplus */
WS_DLL_PUBLIC int ex_opt_count(const char *key)
Counts the number of options associated with a given key.
Definition ex-opt.c:51
WS_DLL_PUBLIC const char * ex_opt_get_nth(const char *key, unsigned key_index)
Retrieves the nth option value for a given key.
Definition ex-opt.c:66
WS_DLL_PUBLIC char * ex_opt_get_next(const char *key)
Retrieves and removes the next option value associated with a given key.
Definition ex-opt.c:87
WS_DLL_PUBLIC bool ex_opt_add(const char *ws_optarg)
Adds an option to a hash table.
Definition ex-opt.c:22