Home

Traffic Server Software Developers Kit

INKPluginLicenseRequired

Specifies to Traffic Server that a license key is required for a plugin.

Prototype

int INKPluginLicenseRequired(void)

Description

Determines if a license is required. If a license is required, then Traffic Server looks in the plugin.db file for the license key. If this function is simply not defined, then the plugin does not require a license.

Example
#include <stdio.h>
#include "InkAPI.h"

void INKPluginInit (int argc, const char *argv[])
{
    printf ("hello world\n");
}
int INKPluginLicenseRequired(void)
{
    return 1;
}
 
Returns

Returns 0 if a license is not required.

Returns 1 if a license is required.