comparison host/pyRealTime.h @ 11:4610f2b8477d

added pyRealTime object impl to host
author fazekasgy
date Mon, 16 Jun 2008 09:44:48 +0000
parents
children
comparison
equal deleted inserted replaced
10:8e9fbe4dc94d 11:4610f2b8477d
1 #ifndef _PYREALTIME_H_
2 #define _PYREALTIME_H_
3
4 #include "vamp-sdk/Plugin.h"
5
6 /* RealTime Type Object's structure */
7 /* Doc:: 10.2 Common Object Structures */
8 typedef struct {
9 PyObject_HEAD
10 /*PyObject *rt_attrs;*/
11 Vamp::RealTime::RealTime *rt;
12 } RealTimeObject;
13
14 PyAPI_DATA(PyTypeObject) RealTime_Type;
15
16 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type)
17 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
18
19 /* pyRealTime C API functions */
20 // Example from Python's stringobject.h
21 // PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 PyAPI_FUNC(PyObject *)
28 PyRealTime_FromRealTime(Vamp::RealTime *rt);
29
30 PyAPI_FUNC(Vamp::RealTime::RealTime *)
31 PyRealTime_AsPointer (PyObject *self);
32
33 /* PyRealTime Module functions */
34
35 PyAPI_FUNC(PyObject *)
36 RealTime_new(PyObject *ignored, PyObject *args);
37
38 PyAPI_FUNC(PyObject *)
39 RealTime_frame2RealTime(PyObject *ignored, PyObject *args);
40
41 #ifdef __cplusplus
42 }
43 #endif
44 #endif /* _PYREALTIME_H_ */