atscppapi  1.0.9
C++ wrapper for Apache Traffic Server API
 All Classes Files Functions Enumerations Enumerator Macros
Macros | Enumerations | Functions
PluginInit.h File Reference

Provides hooks that plugins have to implement. ATS will invoke these when loading the plugin .so files. More...

Go to the source code of this file.

Enumerations

enum  TsReturnCode { TS_ERROR = -1, TS_SUCCESS = 0 }
 

Functions

void TSPluginInit (int argc, const char *argv[])
 
TsReturnCode TSRemapNewInstance (int argc, char *argv[], void **instance_handle, char *errbuf, int errbuf_size)
 

Detailed Description

Provides hooks that plugins have to implement. ATS will invoke these when loading the plugin .so files.

Author
Brian Geffon
Manjesh Nilange

Function Documentation

void TSPluginInit ( int  argc,
const char *  argv[] 
)

Invoked for "general" plugins - listed in plugin.config. The arguments in the plugin.config line are provided in this invocation.

Parameters
argcCount of arguments
argvArray of pointers pointing to arguments
TsReturnCode TSRemapNewInstance ( int  argc,
char *  argv[],
void **  instance_handle,
char *  errbuf,
int  errbuf_size 
)

Invoked for remap plugins - listed in remap.config. The arguments provided as in the remap.config line are provided in this invocation.

Parameters
argcCount of arguments
argvArray of pointers pointing to arguments
instance_handleShould be passed to the RemapPlugin constructor
errbufNot used
errbuf_sizeNot used