[py] include docstrings for generated classes
[aubio.git] / python / ext / aubio-types.h
index 95cb095..4458ecc 100644 (file)
@@ -1,6 +1,7 @@
 #include <Python.h>
 #include <structmember.h>
 
+#include "aubio-docstrings.h"
 #include "aubio-generated.h"
 
 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
@@ -27,7 +28,7 @@
 #ifdef USE_LOCAL_AUBIO
 #include "aubio.h"
 #else
-#include "aubio/aubio.h"
+#include <aubio/aubio.h>
 #endif
 
 #define Py_default_vector_length 1024
 #define AUBIO_NPY_SMPL_CHR "f"
 #endif
 
+#ifndef PATH_MAX
+#ifdef MAX_PATH
+#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 1024
+#endif
+#endif
+
 // compat with Python < 2.6
 #ifndef Py_TYPE
 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
 #endif
 
-PyTypeObject Py_cvecType;
+extern PyTypeObject Py_cvecType;
 
 PyObject * new_py_fvec(uint_t length);
 PyObject * new_py_cvec(uint_t length);
 PyObject * new_py_fmat(uint_t height, uint_t length);
 
 // defined in aubio-proxy.c
-int PyAubio_IsValidVector (PyObject *input);
+extern int PyAubio_IsValidVector (PyObject *input);
 
-PyObject *PyAubio_CFvecToArray (fvec_t * self);
-int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
+extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
+extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
 
-int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
+extern int PyAubio_PyCvecToCCvec (PyObject *input, cvec_t *i);
 
-PyObject *PyAubio_CFmatToArray (fmat_t * self);
-int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
+extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
+extern int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
 
 // hand written wrappers
-PyTypeObject Py_filterType;
+extern PyTypeObject Py_filterType;
 
-PyTypeObject Py_filterbankType;
+extern PyTypeObject Py_filterbankType;
 
-PyTypeObject Py_fftType;
+extern PyTypeObject Py_fftType;
 
-PyTypeObject Py_pvocType;
+extern PyTypeObject Py_pvocType;
 
-PyTypeObject Py_sourceType;
+extern PyTypeObject Py_sourceType;
 
-PyTypeObject Py_sinkType;
+extern PyTypeObject Py_sinkType;