3 * eXtension command line options
5 * (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * SPDX-License-Identifier: GPL-2.0-or-later
19 #include "ws_symbol_export.h"
23 #endif /* __cplusplus */
25 /* will be called by main each time a -X option is found */
26 WS_DLL_PUBLIC
bool ex_opt_add(const char* ws_optarg
);
28 /* yields the number of arguments of a given key obviously returns 0 if there aren't */
29 WS_DLL_PUBLIC
int ex_opt_count(const char* key
);
31 /* fetches the nth argument of a given key returns NULL if there isn't */
32 WS_DLL_PUBLIC
const char* ex_opt_get_nth(const char* key
, unsigned key_index
);
34 /* extracts the next value of a given key */
35 WS_DLL_PUBLIC
const char* ex_opt_get_next(const char* key
);
39 #endif /* __cplusplus */
41 #endif /* _EX_OPT_H */