2021-11-26 03:31:05 +00:00
|
|
|
/** @file
|
2006-02-07 22:08:12 +00:00
|
|
|
*
|
|
|
|
* eXtension command line options
|
|
|
|
*
|
2008-08-05 21:03:46 +00:00
|
|
|
* (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
|
2006-02-07 22:08:12 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2006-02-07 22:08:12 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2006-02-07 22:08:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _EX_OPT_H
|
|
|
|
#define _EX_OPT_H
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2006-02-07 22:08:12 +00:00
|
|
|
/* will be called by main each time a -X option is found */
|
2021-07-26 16:22:36 +00:00
|
|
|
WS_DLL_PUBLIC gboolean ex_opt_add(const gchar* ws_optarg);
|
2006-02-07 22:08:12 +00:00
|
|
|
|
|
|
|
/* yields the number of arguments of a given key obviously returns 0 if there aren't */
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC gint ex_opt_count(const gchar* key);
|
2006-02-07 22:08:12 +00:00
|
|
|
|
|
|
|
/* fetches the nth argument of a given key returns NULL if there isn't */
|
2016-06-23 15:40:40 +00:00
|
|
|
WS_DLL_PUBLIC const gchar* ex_opt_get_nth(const gchar* key, guint key_index);
|
2006-02-07 22:08:12 +00:00
|
|
|
|
|
|
|
/* extracts the next value of a given key */
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC const gchar* ex_opt_get_next(const gchar* key);
|
2006-02-07 22:08:12 +00:00
|
|
|
|
2011-12-29 00:08:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* _EX_OPT_H */
|