static PyObject * eConsolePy_running(eConsolePy* self) { PyObject *ret = NULL; ret = self->cont->running() ? Py_True : Py_False; Org_Py_INCREF(ret); return ret; }
void eConsoleInit(void) { PyObject* m = Py_InitModule3("eConsoleImpl", module_methods, "Module that implements eConsoleAppContainer with working cyclic garbage collection."); if (m == NULL) return; if (!PyType_Ready(&eConsolePyType)) { Org_Py_INCREF((PyObject*)&eConsolePyType); PyModule_AddObject(m, "eConsoleAppContainer", (PyObject*)&eConsolePyType); } }
PyMODINIT_FUNC initbitratecalc(void) { bool init = signature(); PyObject* m = Py_InitModule3("bitratecalc", module_methods, "Module that implements bitrate calculations."); if (m == NULL) return; if (!init) { PyErr_SetString(PyExc_TypeError, "TPM challenge failed"); return; } if (!PyType_Ready(&eBitrateCalculatorPyType)) { Org_Py_INCREF((PyObject*)&eBitrateCalculatorPyType); PyModule_AddObject(m, "eBitrateCalculator", (PyObject*)&eBitrateCalculatorPyType); } }