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 \
46get_natural_int(
const char *
string,
const char *name, int32_t* number);
49get_positive_int(
const char *
string,
const char *name, int32_t* number);
52get_natural_int64(
const char*
string,
const char* name, int64_t* number);
55get_positive_int64(
const char*
string,
const char* name, int64_t* number);
58get_uint32(
const char *
string,
const char *name, uint32_t* number);
60WS_DEPRECATED_X(
"Use get_uint32 instead")
62get_guint32(const
char *
string, const
char *name) {
64 get_uint32(
string, name, &number);
69get_nonzero_uint32(
const char *
string,
const char *name, uint32_t* number);
71WS_DEPRECATED_X(
"Use get_nonzero_uint32 instead")
73get_nonzero_guint32(const
char *
string, const
char *name) {
75 get_nonzero_uint32(
string, name, &number);
80get_uint64(
const char *
string,
const char *name, uint64_t* number);
83get_nonzero_uint64(
const char *
string,
const char *name, uint64_t* number);
86get_positive_double(
const char *
string,
const char *name,
double* number);