summaryrefslogtreecommitdiffstats
path: root/src/opt.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-07 13:41:32 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-07 13:41:32 +0000
commit81c67eb1df1d6b227952df3f2164261a64ffb9f4 (patch)
tree4050f1c131815e1881523721a25e7aa8868bd22c /src/opt.h
parentAdding upstream version 2.7.1. (diff)
downloaddnsperf-81c67eb1df1d6b227952df3f2164261a64ffb9f4.tar.xz
dnsperf-81c67eb1df1d6b227952df3f2164261a64ffb9f4.zip
Adding upstream version 2.8.0.upstream/2.8.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/opt.h')
-rw-r--r--src/opt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opt.h b/src/opt.h
index 22a460b..7e8433f 100644
--- a/src/opt.h
+++ b/src/opt.h
@@ -20,6 +20,8 @@
#ifndef PERF_OPT_H
#define PERF_OPT_H 1
+#include <stdbool.h>
+
typedef enum {
perf_opt_string,
perf_opt_boolean,
@@ -30,6 +32,13 @@ typedef enum {
perf_opt_port,
} perf_opttype_t;
+typedef struct {
+ bool timeouts;
+ bool congestion;
+ bool sendfailed;
+ bool sockready;
+} perf_suppress_t;
+
void perf_opt_add(char c, perf_opttype_t type, const char* desc, const char* help, const char* defval, void* valp);
void perf_long_opt_add(const char* name, perf_opttype_t type, const char* desc, const char* help, const char* defval, void* valp);
@@ -38,4 +47,6 @@ void perf_long_opt_usage(void);
void perf_opt_parse(int argc, char** argv);
+perf_suppress_t perf_opt_parse_suppress(const char* val);
+
#endif