summaryrefslogtreecommitdiffstats
path: root/lib/utils_tcp.h
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-12 15:42:10 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-12 15:42:10 (GMT)
commit662997251d4fc43f4155784f9e7df827f193305e (patch)
tree0a9ad5c5607598da0eb6b6d71fa8c47ca44186fb /lib/utils_tcp.h
parentca9ce71576ddf78cc54fe3b6f0428cdfea72e9df (diff)
downloadmonitoring-plugins-662997251d4fc43f4155784f9e7df827f193305e.tar.gz
Improve interface of np_expect_match() function
Replace the three boolean parameters of lib/utils_tcp.c's np_expect_match() function with a single "flags" parameter.
Diffstat (limited to 'lib/utils_tcp.h')
-rw-r--r--lib/utils_tcp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/utils_tcp.h b/lib/utils_tcp.h
index b0eb8be..34b771d 100644
--- a/lib/utils_tcp.h
+++ b/lib/utils_tcp.h
@@ -1,4 +1,8 @@
1/* Header file for utils_tcp */ 1/* Header file for utils_tcp */
2 2
3#define NP_MATCH_ALL 0x1
4#define NP_MATCH_EXACT 0x2
5#define NP_MATCH_VERBOSE 0x4
6
3int np_expect_match(char* status, char** server_expect, int server_expect_count, 7int np_expect_match(char* status, char** server_expect, int server_expect_count,
4 int all, int exact_match, int verbose); 8 int flags);