Completing method table, but all pointing to a not-implemented-function

parent 8391cedf
This diff is collapsed.
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
static IVANetClient* g_pVANetClient = nullptr; //!< Static pointer to VANetClient instance static IVANetClient* g_pVANetClient = nullptr; //!< Static pointer to VANetClient instance
//! Helper for API dev
static PyObject* va_not_implemented( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
//! Raises an exception if core is not available //! Raises an exception if core is not available
static void RequireCoreAvailable() static void RequireCoreAvailable()
{ {
...@@ -61,7 +68,34 @@ static PyObject* va_reset( PyObject *module, PyObject **args, Py_ssize_t nargs, ...@@ -61,7 +68,34 @@ static PyObject* va_reset( PyObject *module, PyObject **args, Py_ssize_t nargs,
return PyBool_FromLong( 1 ); return PyBool_FromLong( 1 );
} }
static PyObject* va_add_listener( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames ) static PyObject* va_enumerate_modules( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_call_module( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_add_search_path( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{
RequireCoreAvailable();
VA_EXCEPT_NOT_IMPLEMENTED;
return NULL;
}
static PyObject* va_create_listener( PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames )
{ {
RequireCoreAvailable(); RequireCoreAvailable();
......
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