12#ifndef __CLOPTS_COMMON_H__
13#define __CLOPTS_COMMON_H__
29#define LONGOPT_BASE_CAPTURE 1000
31#define LONGOPT_BASE_DISSECTOR 2000
33#define LONGOPT_BASE_APPLICATION 3000
35#define LONGOPT_BASE_GUI 4000
37#define LONGOPT_BASE_WSLOG 5000
39#define LONGOPT_READ_CAPTURE_COMMON \
40 {"read-file", ws_required_argument, NULL, 'r' }, \
42#define OPTSTRING_READ_CAPTURE_COMMON \
113get_uint32(
const char *
string,
const char *name, uint32_t* number);
115WS_DEPRECATED_X(
"Use get_uint32 instead")
116static inline uint32_t
117get_guint32(const
char *
string, const
char *name) {
138WS_DEPRECATED_X(
"Use get_nonzero_uint32 instead")
139static inline uint32_t
140get_nonzero_guint32(const
char *
string, const
char *name) {
158get_uint64(
const char *
string,
const char *name, uint64_t* number);
WS_DLL_PUBLIC bool get_uint64(const char *string, const char *name, uint64_t *number)
Parses a string as an unsigned 64-bit integer.
Definition clopts_common.c:125
WS_DLL_PUBLIC bool get_nonzero_uint32(const char *string, const char *name, uint32_t *number)
Parses a string as a non-zero unsigned 32-bit integer.
Definition clopts_common.c:111
WS_DLL_PUBLIC bool get_natural_int64(const char *string, const char *name, int64_t *number)
Parses a string as a natural (non-negative) 64-bit integer.
Definition clopts_common.c:59
WS_DLL_PUBLIC bool get_positive_int(const char *string, const char *name, int32_t *number)
Parses a string as a strictly positive 32-bit integer.
Definition clopts_common.c:45
WS_DLL_PUBLIC bool get_positive_int64(const char *string, const char *name, int64_t *number)
Parses a string as a strictly positive 64-bit integer.
Definition clopts_common.c:82
WS_DLL_PUBLIC bool get_nonzero_uint64(const char *string, const char *name, uint64_t *number)
Parses a string as a non-zero unsigned 64-bit integer.
Definition clopts_common.c:140
WS_DLL_PUBLIC bool get_natural_int(const char *string, const char *name, int32_t *number)
Parses a string as a natural (non-negative) 32-bit integer.
Definition clopts_common.c:22
WS_DLL_PUBLIC bool get_uint32(const char *string, const char *name, uint32_t *number)
Parses a string as an unsigned 32-bit integer.
Definition clopts_common.c:96
WS_DLL_PUBLIC bool get_positive_double(const char *string, const char *name, double *number)
Parses a string as a strictly positive double-precision floating-point number.
Definition clopts_common.c:154