amrn_dll_stub.c
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
- #include <e32std.h>
- #include <string.h>
- #include "hxglobalmgr.h"
- #ifndef HELIX_CONFIG_SYMBIAN_PLATFORM_SECURITY
- GLDEF_C TInt E32Dll(TDllReason reason)
- {
- if (reason == EDllProcessDetach)
- {
- HXGlobalManager* pGM = HXGlobalManager::Instance();
- if (pGM)
- {
- pGM->Shutdown();
- }
- }
- return(KErrNone);
- }
- #endif /* HELIX_CONFIG_SYMBIAN_PLATFORM_SECURITY */
- struct SymbolEntry {
- const char* m_pSymbolName;
- int m_ordinal;
- };
- static const struct SymbolEntry z_symbolTable[] = {
- {"GetSymbolOrdinal", 1},
- {"RACreateDecoderInstance", 2}
- };
- extern "C"
- int GetSymbolOrdinal(const char* pSymbolName)
- {
- int ret = 0;
- int numSymbols = sizeof(z_symbolTable) / sizeof(struct SymbolEntry);
- int i;
- if( NULL != pSymbolName )
- {
- for(i = 0; !ret && (i < numSymbols); i++)
- {
- if (!strcmp(pSymbolName, z_symbolTable[i].m_pSymbolName))
- {
- ret = z_symbolTable[i].m_ordinal;
- break;
- }
- }
- }
- return ret;
- }