2004-09-10 22:47:02 +00:00
|
|
|
/* clopts_common.h
|
2014-06-29 21:37:21 +00:00
|
|
|
* Handle command-line arguments common to various programs
|
2004-09-10 22:47:02 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-09-10 22:47:02 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2004-09-10 22:47:02 +00:00
|
|
|
*/
|
|
|
|
|
2014-06-29 21:37:21 +00:00
|
|
|
#ifndef __WSUTIL_CLOPTS_COMMON_H__
|
|
|
|
#define __WSUTIL_CLOPTS_COMMON_H__
|
|
|
|
|
|
|
|
#include "ws_symbol_export.h"
|
2004-09-10 22:47:02 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2014-06-29 21:37:21 +00:00
|
|
|
WS_DLL_PUBLIC int
|
|
|
|
get_natural_int(const char *string, const char *name);
|
2005-02-27 21:15:30 +00:00
|
|
|
|
2014-06-29 21:37:21 +00:00
|
|
|
WS_DLL_PUBLIC int
|
|
|
|
get_positive_int(const char *string, const char *name);
|
2011-04-11 00:01:08 +00:00
|
|
|
|
2016-09-08 18:26:45 +00:00
|
|
|
WS_DLL_PUBLIC guint32
|
|
|
|
get_guint32(const char *string, const char *name);
|
|
|
|
|
|
|
|
WS_DLL_PUBLIC guint32
|
|
|
|
get_nonzero_guint32(const char *string, const char *name);
|
|
|
|
|
2018-10-31 10:34:35 +00:00
|
|
|
WS_DLL_PUBLIC double
|
|
|
|
get_positive_double(const char *string, const char *name);
|
|
|
|
|
2004-09-10 22:47:02 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2014-06-29 21:37:21 +00:00
|
|
|
#endif /* __WSUTIL_CLOPTS_COMMON_H__ */
|