Home

Traffic Server Software Developers Kit

Setting Up UI Update Callbacks

The Blacklist plugin must be called back whenever its configuration is changed by an administrator. To get the interface working, you need an interface program (such as a CGI form) to display an interface and obtain configuration information and a text file that the CGI program edits and the Blacklist plugin reads. The callback to the plugin is established in INKPluginInit by:

INKMgmtUpdateRegister (contp, "Dianes Blacklist Plugin", "blacklist.cgi");

Above, contp is the plugin’s static parent continuation, Dianes Blacklist Plugin is the name of the plugin as specified by the CGI form’s INK_PLUGIN_NAME variable, and blacklist.cgi is the path to the plugin’s interface program (relative to the Traffic Server plugins directory).