1 /*
2  *  ex-opt.h
3  *
4  * eXtension command line options
5  *
6  * (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * SPDX-License-Identifier: GPL-2.0-or-later
13  */
14 
15 #ifndef _EX_OPT_H
16 #define _EX_OPT_H
17 
18 #include "ws_symbol_export.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
23 
24 /* will be called by main each time a -X option is found */
25 WS_DLL_PUBLIC gboolean ex_opt_add(const gchar* ws_optarg);
26 
27 /* yields the number of arguments of a given key obviously returns 0 if there aren't */
28 WS_DLL_PUBLIC gint ex_opt_count(const gchar* key);
29 
30 /* fetches the nth argument of a given key returns NULL if there isn't */
31 WS_DLL_PUBLIC const gchar* ex_opt_get_nth(const gchar* key, guint key_index);
32 
33 /* extracts the next value of a given key */
34 WS_DLL_PUBLIC const gchar* ex_opt_get_next(const gchar* key);
35 
36 #ifdef __cplusplus
37 }
38 #endif /* __cplusplus */
39 
40 #endif /* _EX_OPT_H */
41