Go to the source code of this file.
|
int | XrdOucPinPath (const char *piPath, bool &noAltP, char *buff, int blen) |
|
◆ 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
-
piPath | Pointer to the original (i.e. specified) plugin path. |
noAltP | Upon 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. |
buff | Pointer to a buffer that will hold the primary path. |
blen | The 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.