logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TSInstallDirGet - return Traffic Server installation directories

Description

TSInstallDirGet()  returns  the  path  to  the root of the Traffic Server installation. TSConfigDirGet(),
       TSPluginDirGet() and TSRuntimeDirGet() return the complete, absolute path to the configuration directory,
       the plugin installation directory and the runtime directory, respectively.

Examples

       To load a file that is located in the Traffic Server configuration directory:

          #include <ts/ts.h>
          #include <stdio.h>

          char * path;
          asprintf(&path, "%s/example.conf", TSConfigDirGet());

Name

       TSInstallDirGet - return Traffic Server installation directories

Return Values

       These functions all return a NUL-terminated string that must not be modified or freed.

See Also

TSAPI(3ts)

Synopsis

          #include <ts/ts.h>

       constchar*TSInstallDirGet(void)constchar*TSConfigDirGet(void)constchar*TSPluginDirGet(void)constchar*TSRuntimeDirGet(void)

See Also