summaryrefslogtreecommitdiffstats
path: root/plugins/check_tcp.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_tcp.d')
-rw-r--r--plugins/check_tcp.d/config.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/check_tcp.d/config.h b/plugins/check_tcp.d/config.h
index 7ecf51a6..41db7224 100644
--- a/plugins/check_tcp.d/config.h
+++ b/plugins/check_tcp.d/config.h
@@ -1,10 +1,10 @@
1#pragma once 1#pragma once
2 2
3#include "../common.h"
4#include "../../lib/utils_tcp.h" 3#include "../../lib/utils_tcp.h"
4#include "output.h"
5#include <netinet/in.h> 5#include <netinet/in.h>
6 6
7typedef struct check_tcp_config { 7typedef struct {
8 char *server_address; 8 char *server_address;
9 bool host_specified; 9 bool host_specified;
10 int server_port; // TODO can this be a uint16? 10 int server_port; // TODO can this be a uint16?
@@ -37,6 +37,9 @@ typedef struct check_tcp_config {
37 ssize_t maxbytes; 37 ssize_t maxbytes;
38 38
39 bool hide_output; 39 bool hide_output;
40
41 bool output_format_set;
42 mp_output_format output_format;
40} check_tcp_config; 43} check_tcp_config;
41 44
42check_tcp_config check_tcp_config_init() { 45check_tcp_config check_tcp_config_init() {
@@ -73,6 +76,8 @@ check_tcp_config check_tcp_config_init() {
73 .maxbytes = 0, 76 .maxbytes = 0,
74 77
75 .hide_output = false, 78 .hide_output = false,
79
80 .output_format_set = false,
76 }; 81 };
77 return result; 82 return result;
78} 83}