ref: 449bff63137c81502018efbd458d3d578c0936d2
parent: 90077e4a7b5f4c76056b0bbe67273a1535fc50e8
author: Paul Brossier <piem@piem.org>
date: Sun Nov 15 10:26:19 EST 2009
aubiomodule.c: add generated objects
--- a/interfaces/python/aubiomodule.c
+++ b/interfaces/python/aubiomodule.c
@@ -3,6 +3,7 @@
#include <numpy/arrayobject.h>
#include "aubio-types.h"
+#include "generated/aubio-generated.h"
static char Py_alpha_norm_doc[] = "compute alpha normalisation factor";
@@ -125,6 +126,8 @@
|| (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 @@
PyModule_AddObject (m, "fft", (PyObject *) & Py_fftType);
Py_INCREF (&Py_pvocType);
PyModule_AddObject (m, "pvoc", (PyObject *) & Py_pvocType);
+
+ // generated objects
+ add_generated_objects(m);
}