xrootd
Loading...
Searching...
No Matches
Functions
XrdOucPinPath.hh File Reference

Go to the source code of this file.

Functions

int XrdOucPinPath (const char *piPath, bool &noAltP, char *buff, int blen)
 

Function Documentation

◆ XrdOucPinPath()

int XrdOucPinPath ( const char *  piPath,
bool &  noAltP,
char *  buff,
int  blen 
)
extern

XrdOucPinPath

This function performs name versioning for shared library plug-ins. It is a public header and may be used by third parties to adhere to the plugin naming conventions. Obtain the primary path to be used to load a plugin.

Parameters
piPathPointer to the original (i.e. specified) plugin path.
noAltPUpon return it is set to true or false. TRUE: only the returned primary path may be used to load the plugin (i.e. no alternate path allowed). FALSE: the plugin should first be loaded using the returned primary path and if that fails, the original path (i.e. piPath) should be used to load the plugin.
buffPointer to a buffer that will hold the primary path.
blenThe size of the buffer.
Returns
success The length of the primary path in buff.
failure Zero (buffer is too small) but eqName is still set.