Recognizes if input is ogg or not.
[xiph/unicode.git] / vorbis-python / src / vorbismodule.h
blob68b2da50db229e9712f551c6d11670d4d57ea171
1 #ifndef __VORBISMODULE_H__
2 #define __VORBISMODULE_H__
4 #include <Python.h>
5 #include <pyogg/pyogg.h>
7 #include "general.h"
9 ogg_module_info *modinfo;
11 PyObject *Py_VorbisError;
13 /* Object docstrings */
15 extern char py_vorbisfile_doc[];
16 extern char py_vinfo_doc[];
17 extern char py_vcomment_doc[];
18 extern char py_dsp_doc[];
20 /* Utility functions/macros */
22 PyObject *v_error_from_code(int, char*);
24 #define RETURN_IF_VAL(val, msg) if (val < 0) { \
25 return v_error_from_code(val, msg); \
26 } \
27 Py_INCREF(Py_None); \
28 return Py_None;
31 #endif /* __VORBISMODULE_H__ */