Mercurial > hg > vampy
comparison PyRealTime.h @ 31:4f1894c7591b vampy2
Created Vampy2 branch
author | fazekasgy |
---|---|
date | Sun, 20 Sep 2009 17:31:20 +0000 |
parents | |
children | c905122f79e7 |
comparison
equal
deleted
inserted
replaced
28:5139bf30f208 | 31:4f1894c7591b |
---|---|
1 #ifndef _PYREALTIME_H_ | |
2 #define _PYREALTIME_H_ | |
3 | |
4 #include "vamp-sdk/Plugin.h" | |
5 | |
6 typedef struct { | |
7 PyObject_HEAD | |
8 Vamp::RealTime::RealTime *rt; | |
9 } RealTimeObject; | |
10 | |
11 PyAPI_DATA(PyTypeObject) RealTime_Type; | |
12 | |
13 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type) | |
14 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) | |
15 ///fast macro version as per API convention | |
16 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt | |
17 | |
18 /* PyRealTime C++ API */ | |
19 | |
20 | |
21 PyAPI_FUNC(PyObject *) | |
22 PyRealTime_FromRealTime(Vamp::RealTime&); | |
23 | |
24 PyAPI_FUNC(const Vamp::RealTime::RealTime*) | |
25 PyRealTime_AsRealTime (PyObject *self); | |
26 | |
27 | |
28 #endif |