Beispiel #1
0
    void* DynLib::getSymbol(const String& strName) const
    {
		if(!m_hInst)
			return nullptr;

        return (void*)DYNLIB_GETSYM(m_hInst, strName.c_str());
    }
Beispiel #2
0
	bool cPluginManager::installPlugin(const char* filename, const char* name)
	{
		DYNLIB_HANDLE m_hInst = DYNLIB_LOAD(filename);
		if(m_hInst)
		{
			GetPluginModule moduleFunc = (GetPluginModule)DYNLIB_GETSYM(m_hInst, "GetPluginModule");

			if(moduleFunc)
			{
				IAudioPlugin* plugin = moduleFunc(CAUDIO_VERSION);

				if(plugin)
				{
					DynamicallyLoadedPlugins[plugin] = m_hInst;

					return installPlugin(plugin, name);
				}
			}
			else
				getLogger()->logError("cPluginManager", "installPlugin Error: %s.", getError().c_str());
		}
		return false;
	}
bool cPluginManager::installPlugin(const char* filename, const char* name)
{
#ifdef CAUDIO_COMPILE_WITH_DYNAMIC_PLUGIN_SUPPORT
	DYNLIB_HANDLE m_hInst = DYNLIB_LOAD(filename);
	if(m_hInst)
	{
		GetPluginModule moduleFunc = (GetPluginModule)DYNLIB_GETSYM(m_hInst, "GetPluginModule");

		if(moduleFunc)
		{
			IAudioPlugin* plugin = moduleFunc(CAUDIO_VERSION);

			if(plugin)
			{
				DynamicallyLoadedPlugins[plugin] = m_hInst;

				return installPlugin(plugin, name);
			}
		}
	}
#endif
	return false;
}
void* DynamicModule::getSymbolAddress(const String& symbol) const
{
    return (void*)DYNLIB_GETSYM(d_handle, symbol.c_str());
}
//-----------------------------------------------------------------------
void* DynLib::getSymbol( const String& strName ) const throw()
{
    return (void*)DYNLIB_GETSYM( mInst, strName.c_str() );
}
Beispiel #6
0
void* NFCDynLib::GetSymbol(const char* szProcName)
{
    return (DYNLIB_HANDLE)DYNLIB_GETSYM(mInst, szProcName);
}
Beispiel #7
0
void* DynamicLibrary::getSymbol(const String& symbol)
{
    return (void*) DYNLIB_GETSYM(_handle, symbol.c_str());
}
Beispiel #8
0
	// 获得动态库入口,如果没有找到 直接返回NULL
	void* CDynamicLib::GetSymbool(const SVString& strName) const throw()
	{
		return (void*)DYNLIB_GETSYM(m_hInsLib, strName.c_str());
	}
//##ModelId=4C5A6F76016E
void* CPluginDll::GetSymbol( const String& strName ) const throw()
{
	return (void*)DYNLIB_GETSYM( m_hInst, strName.c_str() );
}
Beispiel #10
0
//-----------------------------------------------------------------------
void* DynLib::getSymbol( const std::string& strName ) const
{
	return (void*)DYNLIB_GETSYM( m_hInst, strName.c_str() );
}