Wireshark  4.3.0
The Wireshark network protocol analyzer
ex-opt.h
Go to the documentation of this file.
1 
14 #ifndef _EX_OPT_H
15 #define _EX_OPT_H
16 
17 #include "ws_symbol_export.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
23 /* will be called by main each time a -X option is found */
24 WS_DLL_PUBLIC gboolean ex_opt_add(const gchar* ws_optarg);
25 
26 /* yields the number of arguments of a given key obviously returns 0 if there aren't */
27 WS_DLL_PUBLIC gint ex_opt_count(const gchar* key);
28 
29 /* fetches the nth argument of a given key returns NULL if there isn't */
30 WS_DLL_PUBLIC const gchar* ex_opt_get_nth(const gchar* key, guint key_index);
31 
32 /* extracts the next value of a given key */
33 WS_DLL_PUBLIC const gchar* ex_opt_get_next(const gchar* key);
34 
35 #ifdef __cplusplus
36 }
37 #endif /* __cplusplus */
38 
39 #endif /* _EX_OPT_H */