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_READ_CAPTURE_COMMON \
38 {"read-file", ws_required_argument, NULL, 'r' }, \
40#define OPTSTRING_READ_CAPTURE_COMMON \
44get_natural_int(
const char *
string,
const char *name, int32_t* number);
47get_positive_int(
const char *
string,
const char *name, int32_t* number);
50get_natural_int64(
const char*
string,
const char* name, int64_t* number);
53get_positive_int64(
const char*
string,
const char* name, int64_t* number);
56get_uint32(
const char *
string,
const char *name, uint32_t* number);
58WS_DEPRECATED_X(
"Use get_uint32 instead")
60get_guint32(const
char *
string, const
char *name) {
62 get_uint32(
string, name, &number);
67get_nonzero_uint32(
const char *
string,
const char *name, uint32_t* number);
69WS_DEPRECATED_X(
"Use get_nonzero_uint32 instead")
71get_nonzero_guint32(const
char *
string, const
char *name) {
73 get_nonzero_uint32(
string, name, &number);
78get_uint64(
const char *
string,
const char *name, uint64_t* number);
81get_nonzero_uint64(
const char *
string,
const char *name, uint64_t* number);
84get_positive_double(
const char *
string,
const char *name,
double* number);