[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-cvs
Subject:    /bzr/squid3/trunk/ r12704: Add support for concurrency responses to helper/defines.h
From:       Amos Jeffries <squid3 () treenet ! co ! nz>
Date:       2013-02-22 14:28:49
Message-ID: 20130222143003.64308.qmail () squid-cache ! org
[Download RAW message or body]

--===============1530709031==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------
revno: 12704
committer: Amos Jeffries <squid3@treenet.co.nz>
branch nick: trunk
timestamp: Sat 2013-02-23 03:28:49 +1300
message:
  Add support for concurrency responses to helper/defines.h
  
  Helpers with concurrency support can now use the helper macros to
  construct their responses to Squid.
modified:
  helpers/defines.h

--===============1530709031==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; name="r12704.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

=== modified file 'helpers/defines.h'
--- a/helpers/defines.h	2012-11-02 11:20:14 +0000
+++ b/helpers/defines.h	2013-02-22 14:28:49 +0000
@@ -10,11 +10,14 @@
 
 /* send OK result to Squid with a string parameter. */
 #define SEND_OK(x)	fprintf(stdout, "OK %s\n",x)
+#define SEND_OK(c,x)	fprintf(stdout, "%u OK %s\n",(c),x)
 
 /* send ERR result to Squid with a string parameter. */
 #define SEND_ERR(x)	fprintf(stdout, "ERR %s\n",x)
+#define SEND_ERR(c,x)	fprintf(stdout, "%u ERR %s\n",(c),x)
 
 /* send ERR result to Squid with a string parameter. */
 #define SEND_BH(x)	fprintf(stdout, "BH %s\n",x)
+#define SEND_BH(c,x)	fprintf(stdout, "%u BH %s\n",(c),x)
 
 #endif /* __SQUID_HELPERS_DEFINES_H */


--===============1530709031==--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic