Home

Traffic Server Software Developers Kit

INKPluginDirGet

Gets the plugin directory.

Prototype

const char * INKPluginDirGet(void)

Description

Gets the plugin directory relative to Traffic Server’s install directory. This path (relative to the Traffic Server install directory) is stored in the records.config variable proxy.config.plugin.plugin_dir. The default value is config/plugin.

Example

To open the file Blacklist/ui/blacklist_config.txt, use the following:

INKfopen (“INKInstallDirGet()/INKPluginDirGet()/Blacklist/ui/blacklist_config.txt”);
 
Returns

A pointer to a string containing the plugin directory.