wireshark/ui/clopts_common.h
Guy Harris ba589a4e44 Move some command-line-oriented routines from wsutil to ui.
cmdarg_err() is for reporting errors for command-line programs and
command-line errors in GUI programs; it's not something for any of the
Wireshark libraries to use.

The various routines for parsing numerical command-line arguments are
not for general use, they're just for use when parsing arguments.

Change-Id: I100bd4a55ab8ee4497f41d9651b0c5670e6c1e7f
Reviewed-on: https://code.wireshark.org/review/31281
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-01-01 02:07:06 +00:00

38 lines
803 B
C

/* clopts_common.h
* Handle command-line arguments common to various programs
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __UI_CLOPTS_COMMON_H__
#define __UI_CLOPTS_COMMON_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
extern int
get_natural_int(const char *string, const char *name);
extern int
get_positive_int(const char *string, const char *name);
extern guint32
get_guint32(const char *string, const char *name);
extern guint32
get_nonzero_guint32(const char *string, const char *name);
extern double
get_positive_double(const char *string, const char *name);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __UI_CLOPTS_COMMON_H__ */