You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2017/03/17 23:02:18 UTC
[trafficserver] branch master updated: TS-4976: Regularize plugins
- intercept.
This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new b2838d9 TS-4976: Regularize plugins - intercept.
b2838d9 is described below
commit b2838d9371158ce458d4dd3aef17ee847270baa8
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Fri Mar 17 18:01:37 2017 -0500
TS-4976: Regularize plugins - intercept.
---
example/intercept/intercept.cc | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/example/intercept/intercept.cc b/example/intercept/intercept.cc
index 8d62c30..50ec14c 100644
--- a/example/intercept/intercept.cc
+++ b/example/intercept/intercept.cc
@@ -43,15 +43,15 @@
// request. The TSQA test test-server-intercept exercises this plugin. You can
// enable extensive logging with the "intercept" diagnostic tag.
-#define PLUGIN "intercept"
+#define PLUGIN_NAME "intercept"
#define PORT 60000
-#define VDEBUG(fmt, ...) TSDebug(PLUGIN, fmt, ##__VA_ARGS__)
+#define VDEBUG(fmt, ...) TSDebug(PLUGIN_NAME, fmt, ##__VA_ARGS__)
#if DEBUG
-#define VERROR(fmt, ...) TSDebug(PLUGIN, fmt, ##__VA_ARGS__)
+#define VERROR(fmt, ...) TSDebug(PLUGIN_NAME, fmt, ##__VA_ARGS__)
#else
-#define VERROR(fmt, ...) TSError("[%s] %s: " fmt, PLUGIN, __FUNCTION__, ##__VA_ARGS__)
+#define VERROR(fmt, ...) TSError("[%s] %s: " fmt, PLUGIN_NAME, __FUNCTION__, ##__VA_ARGS__)
#endif
#define VIODEBUG(vio, fmt, ...) \
@@ -538,9 +538,9 @@ TSPluginInit(int /* argc */, const char * /* argv */ [])
{
TSPluginRegistrationInfo info;
- info.plugin_name = (char *)PLUGIN;
- info.vendor_name = (char *)"MyCompany";
- info.support_email = (char *)"ts-api-support@MyCompany.com";
+ info.plugin_name = PLUGIN_NAME;
+ info.vendor_name = "Apache Software Foundation";
+ info.support_email = "dev@trafficserver.apache.org";
if (TSPluginRegister(&info) != TS_SUCCESS) {
VERROR("plugin registration failed\n");
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].