Home

Traffic Server Software Developers Kit

INKPluginRegister

Registers the appropriate SDK version for your plugin.

Prototype

int INKPluginRegister (INKSDKVersion sdk_version, INKPluginRegistrationInfo *plugin_info)

Arguments
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
Description

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.

Returns

If plugin registration fails, then 0 is returned.