Skip to content

Commit

Permalink
TS-4971: Change TSPluginRegistration to be const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan M. Carroll authored and SolidWallOfCode committed Oct 15, 2016
1 parent e46d64f commit 16fe7bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/ts/apidefs.h.in
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion proxy/InkAPI.cc
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion proxy/api/ts/ts.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 16fe7bd

Please sign in to comment.