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

Go to the source code of this file.

Functions

bool XrdOucPreload (const char *plib, char *eBuff, int eBlen, bool retry=false)
 This include file define a utility function that pre-loads a plugin.
 

Function Documentation

◆ XrdOucPreload()

bool XrdOucPreload ( const char *  plib,
char *  eBuff,
int  eBlen,
bool  retry = false 
)
extern

This include file define a utility function that pre-loads a plugin.

Preload a plugin and persist its image. Internal plugin version checking is performed when the plugin is actually initialized.

Parameters
plibPointer to the shared library path that contains the plugin.
eBuffPointer to a buffer tat is to receive any messages. Upon failure it will contain an eror message. Upon success it will contain an informational message that describes the version that was loaded.
eBlenThe length of the eBuff, it should be at least 1K to avoid message truncation as the message may have a path.
retryWhen true: if the version name of the plugin is not found, try to preload the unversioned name. When false: Only the versioned name of the plugin may be preloaded (i.e. libXXXX-n.so).
Returns
true The plugin was successfully loaded.
false The plugin could not be loaded, eBuff contains the reason.