The udxLibraryName() function
Given a library name as used in the DEPENDENCIES clause of the DDL, returns the actual path on disk of the corresponding shared library. The function returns the appropriate file path name based on the context (host or SPU).
Description
const char* udxLibraryName(const char* name, bool caseSensitive);Returns
The function returns the names of libraries on which a specific snippet depends because of its UDXs, including indirect (or nested) dependencies.
Use the caseSensitive flag to specify a case-sensitive or not case-sensitive lookup. In most cases, a lookup that is not case-sensitive works best, but if there are two libraries with the same name but different cases, use the case-sensitive flag to distinctly identify the libraries.
If the library name is not found, the function returns NULL.
This function is primarily used for libraries that are registered as MANUAL LOAD. After the path name is recovered, the user can use dlopen, dlsym, and dlclose as normal. For C++ libraries, the user is responsible for providing a name to dlsym. Additionally, some C++ functionality requires that dlopen invoked with RTLD_GLOBAL for runtime type information (RTTI).