xrootd
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Member Functions | List of all members
XrdOucVerName Class Reference

#include <XrdOucVerName.hh>

Static Public Member Functions

static int hasVersion (const char *piPath, char **piNoVN=0)
 
static int Version (const char *piVers, const char *piPath, bool &noFBK, char *buff, int blen)
 

Static Private Member Functions

static bool isOurs (const char *path)
 

Detailed Description

XrdOucVerName

This class performs name versioning for shared library plug-ins.

Member Function Documentation

◆ hasVersion()

static int XrdOucVerName::hasVersion ( const char *  piPath,
char **  piNoVN = 0 
)
static

Test if plugin path contains a version number.

Parameters
piPathPointer to the original path to the plug-in.
piNoVN!= 0: If piPath has a version, an strdup'd path without a version is returned. Otherwise, nil is returned. == 0: Does not return an alternate path.
Returns
>0 the version number if path contains a version.
=0 the path does not contain a version number.

◆ isOurs()

static bool XrdOucVerName::isOurs ( const char *  path)
staticprivate

◆ Version()

static int XrdOucVerName::Version ( const char *  piVers,
const char *  piPath,
bool &  noFBK,
char *  buff,
int  blen 
)
static

Version a plug-in library path.

Parameters
piVersPointer to the version string to be used.
piPathPointer to the original path to the plug-in.
noFBKUpon return is set to true if the versioned name has no fallback name and must be loaded with the resulting path.
buffPointer to abuffer that will hold the resulting path.
blenThe size of the buffer.
Returns
success The length of the reulting path in buff withe eqName set.
failure Zero (buffer is too small) but eqName is still set.

The documentation for this class was generated from the following file: