/* Need to define an internal flag to avoid an extern */ #define LDG_INTERNAL #include "ldg_Python.h" #include #include #include "py_aes.h" /* --- Python-C API Calls --- */ static void *pycallbacks[PY_API_FCOUNT]; /* --- Python API Bookkeeping --- */ static PyMethodDef GemMethods[] = { {"appl_init", py_appl_init, METH_VARARGS, "Initialize a GEM application"}, {"appl_exit", py_appl_exit, METH_VARARGS, "Exit a GEM application"}, {"form_alert", py_form_alert, METH_VARARGS, "Display a GEM alert dialog"}, {NULL,NULL,0,NULL} }; PyMODINIT_FUNC __CDECL initgem(void) { printf("Welcome to shared init.\nStandby...\n"); //LPy_InitModule("gem",GemMethods,NULL,NULL); ldg_callback(pycallbacks[0],"gem",GemMethods,NULL,NULL); return; } /* --- End Python API Bookkeeping --- */ /* --- LDG Bookkeeping --- */ void __CDECL assign_pycalls(void **calls) { int i; for(i=0;i