You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2016/10/17 21:02:56 UTC
[trafficserver] 01/03: TS-4971: Change TSPluginRegistration to be
const.
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 7.0.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
commit da77e2425d87765f669bba05a07d415dae0a4241
Author: Alan M. Carroll <so...@yahoo-inc.com>
AuthorDate: Fri Oct 14 08:50:39 2016 -0500
TS-4971: Change TSPluginRegistration to be const.
(cherry picked from commit 16fe7bd28630d01f96b29efdd97cbaf1a0ac3e6f)
---
lib/ts/apidefs.h.in | 8 ++++----
proxy/InkAPI.cc | 2 +-
proxy/api/ts/ts.h | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in
index 637e5c5..2cc65f3 100644
--- a/lib/ts/apidefs.h.in
+++ b/lib/ts/apidefs.h.in
@@ -105,13 +105,13 @@ extern "C" {
*/
typedef struct {
- char *plugin_name;
- char *vendor_name;
- char *support_email;
+ const char *plugin_name;
+ const char *vendor_name;
+ const char *support_email;
} TSPluginRegistrationInfo;
typedef struct {
- char const *tag; ///< Message tag (null terminated).
+ const char *tag; ///< Message tag (null terminated).
void const *data; ///< Message data (payload)
size_t data_size; ///< Amount of message data.
} TSPluginMsg;
diff --git a/proxy/InkAPI.cc b/proxy/InkAPI.cc
index 9429304..a6b579f 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -1811,7 +1811,7 @@ TSPluginDirGet(void)
////////////////////////////////////////////////////////////////////
TSReturnCode
-TSPluginRegister(TSPluginRegistrationInfo *plugin_info)
+TSPluginRegister(const TSPluginRegistrationInfo *plugin_info)
{
sdk_assert(sdk_sanity_check_null_ptr((void *)plugin_info) == TS_SUCCESS);
diff --git a/proxy/api/ts/ts.h b/proxy/api/ts/ts.h
index fe0be14..2bcd29c 100644
--- a/proxy/api/ts/ts.h
+++ b/proxy/api/ts/ts.h
@@ -161,7 +161,7 @@ int TSTrafficServerVersionGetPatch(void);
@return TS_ERROR if the plugin registration failed.
*/
-tsapi TSReturnCode TSPluginRegister(TSPluginRegistrationInfo *plugin_info);
+tsapi TSReturnCode TSPluginRegister(const TSPluginRegistrationInfo *plugin_info);
/* --------------------------------------------------------------------------
Files */
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.