Registers the appropriate SDK version for your plugin.
int INKPluginRegister (INKSDKVersion
sdk_version
,
INKPluginRegistrationInfo
*plugin_info
)
sdk_version
can have the
following values:
INK_SDK_VERSION_1_0
INK_SDK_VERSION_1_1
INK_SDK_VERSION_2_0
INK_SDK_VERSION_5_2
INKPluginRegistrationInfo
is the following struct:typedef struct { char *plugin_name; char *vendor_name; char *support_email; } INKPluginRegistrationInf
Registers the appropriate SDK version for your plugin. Use this function to ensure that your plugin is supported by the version of Traffic Server it's running on. See the modified hello-world example that checks Traffic Server version for usage.
If plugin registration fails, then 0
is returned.