Aufgrund einer Wartung wird GitLab am 29.10. zwischen 9:00 und 10:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 29.10. between 9:00 and 10:00 am.

Starting module interface impl

parent 5ab1d07a
......@@ -96,7 +96,21 @@ static PyObject* va_reset(PyObject*, PyObject*)
static PyObject* va_enumerate_modules(PyObject* pSelf, PyObject** ppArgs, Py_ssize_t nArgs, PyObject* pKeywordNames)
std::vector< CVAModuleInfo > voModuleInfos;
PyObject *pModuleList = PyList_New(voModuleInfos.size());
for (size_t i = 0; i < voModuleInfos.size(); i++)
CVAModuleInfo& oModule(voModuleInfos[i]);
PyObject* pModuleInfo = Py_BuildValue("{s:i,s:s,s:s}", "index", i, "name", oModule.sName, "description", oModule.sDesc);
PyList_SetItem(pModuleList, i, pModuleInfo); // steals reference
return pModuleList;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment