xmodstub.c

来自「以BREW为开发平台,以C为开发语言的浏览器的实例」· C语言 代码 · 共 38 行

C
38
字号
#include "AEEStdLib.h"
#include "AEEShell.h"           /* Shell interface definitions */

int xModule_New(IShell *piShell, IModule **pp);

#ifdef AEE_SIMULATOR
AEEHelperFuncs *g_pvtAEEStdLibEntry;
__declspec(dllexport) /* AEEMod_Load has to be exported from a DLL */
#endif /* #ifdef AEE_SIMULATOR */

/*
   ||
   || This bit of code has to be FIRST in a module, and its module *must*
   ||  be compiled in ARM mode for handset targets.
   ||
*/
int AEEMod_Load(IShell *piShell, void *ph, IModule **ppMod)
{
   /*	
     ||  IMPORTANT NOTE: g_dwAEEStdLibEntry global variable is defined 
     ||     for SDK ONLY!
     || 
     ||  This variable should NOT BE (1) overwritten and/or (2) USED 
     ||    DIRECTLY by BREW SDK users. It is used as an entry point to 
     ||    AEEStdLib.
     || 
     ||  DO NOT REMOVE next three lines.
   */
#ifdef AEE_SIMULATOR
   g_pvtAEEStdLibEntry = (AEEHelperFuncs *)ph;
#endif

   /* xModule_New is not implemented by xmod, the user of xmod must
      supply it */
   return xModule_New(piShell,ppMod);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?