See Also: GDBRegister()
void ALLRegister();
See Also: GDBRegister()
void *LoadGDBDynFormat( pszFormatName, pszBaseName, pszRegisterFunc,
nVersion, pszFileName );
const char *pszFormatName;
Common name for the format. Example TIFF for .tif.
const char *pszBaseName;
The name of gdb shared library of dll without version.
This must be lowercase.Example, gdbtiff.
const char *pszRegisterFunc;
The entry point name in the DLL or shared object library.
int nVersion;
The release version number. Example, v700.
int pszFileName;
The name of the data file that is attempting to be opened.
static TBool _LoadLibraries(char *pszName)
{
void (*pfnFullRegister)(GDBInfo_t *) = NULL;
GDBInfo_t *psGDBInfo;
//
// Dynamically register the rest of the Tiff methods from the
// support shared library.
if( GDBGetFormatInfo( FL_TIFF )->Open != NULL &&
GDBGetFormatInfo( FL_TIFF )->Open != DummyOpen)
return TRUE;
pfnFullRegister = (void (*)(GDBInfo_t *))
LoadGDBDynFormat("TIFF","gdbtiff","TDBFULLRegister",PCIVERSIONID,pszName);
if (pfnFullRegister == NULL)
return FALSE;
//
// Otherwise call it (which will populate the remainder of the
// GDBInfo_t function pointers for this format) and return TRUE
// indicating that the open should be called.
//
psGDBInfo = GDBGetFormatInfo( FL_TIFF);
pfnFullRegister(psGDBInfo);
return TRUE;
}