Home

Traffic Server Software Developers Kit

INKConfigGet

Returns a pointer to the Traffic Server configuration.

Prototype

INKConfig INKConfigGet (unsigned int id)

Description

Retrieves the current configuration pointer associated with the configuration identifier id. The function INKConfigDataGet can then be used to retrieve the data pointer from within the configuration. INKConfigGet increments the reference count inside the configuration. It is important to call INKConfigRelease to decrement the reference count when the user is done with the configuration pointer.

Before you call INKConfigGet, you must set the identifier id to some plugin configuration data using INKConfigSet (see the code snippet in the previous section).

Returns

A pointer to the current Traffic Server configuration.