aboutsummaryrefslogtreecommitdiff
path: root/lib/utils_tcp.h
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-09-12 17:42:10 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-09-12 17:42:10 +0200
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 b0eb8bee..34b771d6 100644
--- a/lib/utils_tcp.h
+++ b/lib/utils_tcp.h
@@ -1,4 +1,8 @@
/* Header file for utils_tcp */
+#define NP_MATCH_ALL 0x1
+#define NP_MATCH_EXACT 0x2
+#define NP_MATCH_VERBOSE 0x4
+
int np_expect_match(char* status, char** server_expect, int server_expect_count,
- int all, int exact_match, int verbose);
+ int flags);