This is an automated email from the ASF dual-hosted git repository.

amc pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  16fe7bd   TS-4971: Change TSPluginRegistration to be const.
16fe7bd is described below

commit 16fe7bd28630d01f96b29efdd97cbaf1a0ac3e6f
Author: Alan M. Carroll <solidwallofc...@yahoo-inc.com>
AuthorDate: Fri Oct 14 08:50:39 2016 -0500

    TS-4971: Change TSPluginRegistration to be const.
---
 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 34cd334..52f8c00 100644
--- a/proxy/InkAPI.cc
+++ b/proxy/InkAPI.cc
@@ -1805,7 +1805,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 d013b67..da0d8ab 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" <commits@trafficserver.apache.org>'].

Reply via email to