From 1d092509b65227239caf2ef24c5031bd4f431c6e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Nov 2021 14:41:35 +0100 Subject: Merging upstream version 2.8.0. Signed-off-by: Daniel Baumann --- src/opt.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/opt.h') 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 + 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 -- cgit v1.2.3