annotate pyRealTime.h @ 11:e5b575d69b01 lf-numpy-arrays

changed a comment
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 20 Mar 2013 11:07:24 +0000
parents cb0d3af1be4d
children
rev   line source
Chris@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@0 2 #ifndef _PYREALTIME_H_
Chris@0 3 #define _PYREALTIME_H_
Chris@0 4
Chris@1 5 #include "vamp-hostsdk/Plugin.h"
Chris@0 6
Chris@0 7 /* RealTime Type Object's structure */
Chris@0 8 /* Doc:: 10.2 Common Object Structures */
Chris@0 9 typedef struct {
Chris@0 10 PyObject_HEAD
Chris@0 11 /*PyObject *rt_attrs;*/
Chris@1 12 Vamp::RealTime *rt;
Chris@0 13 } RealTimeObject;
Chris@0 14
Chris@0 15 PyAPI_DATA(PyTypeObject) RealTime_Type;
Chris@0 16
Chris@1 17 #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type)
Chris@0 18 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
Chris@0 19
Chris@0 20 /* pyRealTime C API functions */
Chris@0 21 // Example from Python's stringobject.h
Chris@0 22 // PyAPI_FUNC(PyObject *) PyString_FromString(const char *);
Chris@0 23
Chris@0 24 #ifdef __cplusplus
Chris@0 25 extern "C" {
Chris@0 26 #endif
Chris@0 27
Chris@0 28 /* PyRealTime C API functions */
Chris@0 29
Chris@0 30 PyAPI_FUNC(PyObject *)
Chris@0 31 PyRealTime_FromRealTime(Vamp::RealTime *rt);
Chris@0 32
Chris@1 33 PyAPI_FUNC(Vamp::RealTime *)
Chris@1 34 PyRealTime_AsPointer(PyObject *self);
Chris@0 35
Chris@0 36 /* PyRealTime Module functions */
Chris@0 37
Chris@0 38 PyAPI_FUNC(PyObject *)
Chris@0 39 RealTime_new(PyObject *ignored, PyObject *args);
Chris@0 40
Chris@0 41 PyAPI_FUNC(PyObject *)
Chris@0 42 RealTime_frame2RealTime(PyObject *ignored, PyObject *args);
Chris@0 43
Chris@0 44 #ifdef __cplusplus
Chris@0 45 }
Chris@0 46 #endif
Chris@0 47 #endif /* _PYREALTIME_H_ */