Mercurial > hg > vampy
comparison PyRealTime.h @ 79:f5c028376bf9
Some old changes that, I think, probably did not help anything
author | Chris Cannam |
---|---|
date | Wed, 12 Aug 2015 15:25:04 +0100 |
parents | 27bab3a16c9a |
children |
comparison
equal
deleted
inserted
replaced
78:e101ff25d757 | 79:f5c028376bf9 |
---|---|
17 typedef struct { | 17 typedef struct { |
18 PyObject_HEAD | 18 PyObject_HEAD |
19 Vamp::RealTime *rt; | 19 Vamp::RealTime *rt; |
20 } RealTimeObject; | 20 } RealTimeObject; |
21 | 21 |
22 PyAPI_DATA(PyTypeObject) RealTime_Type; | 22 extern PyTypeObject RealTime_Type; |
23 | 23 |
24 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type) | 24 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type) |
25 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) | 25 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) |
26 ///fast macro version as per API convention | 26 ///fast macro version as per API convention |
27 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt | 27 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt |
28 | 28 |
29 /* PyRealTime C++ API */ | 29 /* PyRealTime C++ API */ |
30 | 30 |
31 | 31 |
32 PyAPI_FUNC(PyObject *) | 32 extern PyObject * |
33 PyRealTime_FromRealTime(Vamp::RealTime&); | 33 PyRealTime_FromRealTime(Vamp::RealTime&); |
34 | 34 |
35 PyAPI_FUNC(const Vamp::RealTime*) | 35 extern const Vamp::RealTime* |
36 PyRealTime_AsRealTime (PyObject *self); | 36 PyRealTime_AsRealTime (PyObject *self); |
37 | 37 |
38 | 38 |
39 #endif | 39 #endif |