From 662997251d4fc43f4155784f9e7df827f193305e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 12 Sep 2013 17:42:10 +0200 Subject: 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. --- lib/utils_tcp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/utils_tcp.h') 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); -- cgit v1.2.3