From: Paul Brossier Date: Sun, 15 Nov 2009 14:26:19 +0000 (+0100) Subject: aubiomodule.c: add generated objects X-Git-Tag: bzr2git~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=449bff63137c81502018efbd458d3d578c0936d2;p=aubio.git aubiomodule.c: add generated objects --- diff --git a/interfaces/python/aubiomodule.c b/interfaces/python/aubiomodule.c index 5dcac23f..c3b568f5 100644 --- a/interfaces/python/aubiomodule.c +++ b/interfaces/python/aubiomodule.c @@ -3,6 +3,7 @@ #include #include "aubio-types.h" +#include "generated/aubio-generated.h" static char Py_alpha_norm_doc[] = "compute alpha normalisation factor"; @@ -125,6 +126,8 @@ init_aubio (void) || (PyType_Ready (&Py_filterbankType) < 0) || (PyType_Ready (&Py_fftType) < 0) || (PyType_Ready (&Py_pvocType) < 0) + // generated objects + || (generated_types_ready() < 0 ) ) { return; } @@ -154,4 +157,7 @@ init_aubio (void) PyModule_AddObject (m, "fft", (PyObject *) & Py_fftType); Py_INCREF (&Py_pvocType); PyModule_AddObject (m, "pvoc", (PyObject *) & Py_pvocType); + + // generated objects + add_generated_objects(m); }