Recognizes if input is ogg or not.
[xiph.git] / ogg-python / src / pyoggpacket.h
blob2b59c880d41bc455b1ff0288a02221e81d1f895a
1 #ifndef PYOGGPACKET_H
2 #define PYOGGPACKET_H
4 #include <ogg/ogg.h>
5 #include <Python.h>
7 typedef struct {
8 PyObject_HEAD
9 ogg_packet op;
10 } py_ogg_packet;
12 extern PyTypeObject py_ogg_packet_type;
14 #define PY_OGG_PACKET(x) (&(((py_ogg_packet *) (x))->op))
16 PyObject *py_ogg_packet_from_packet(ogg_packet *);
18 #endif /* PYOGGPACKET_H */