Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
clopts_common.h
1 /* clopts_common.h
2  * Handle command-line arguments common to various programs
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef __WSUTIL_CLOPTS_COMMON_H__
12 #define __WSUTIL_CLOPTS_COMMON_H__
13 
14 #include "ws_symbol_export.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
20 WS_DLL_PUBLIC int
21 get_natural_int(const char *string, const char *name);
22 
23 WS_DLL_PUBLIC int
24 get_positive_int(const char *string, const char *name);
25 
26 WS_DLL_PUBLIC guint32
27 get_guint32(const char *string, const char *name);
28 
29 WS_DLL_PUBLIC guint32
30 get_nonzero_guint32(const char *string, const char *name);
31 
32 #ifdef __cplusplus
33 }
34 #endif /* __cplusplus */
35 
36 #endif /* __WSUTIL_CLOPTS_COMMON_H__ */