view PyRealTime.h @ 34:c905122f79e7 vampy2

* Fixes from OpenSolaris build
author cannam
date Wed, 23 Sep 2009 12:07:32 +0000
parents 4f1894c7591b
children
line wrap: on
line source
#ifndef _PYREALTIME_H_
#define _PYREALTIME_H_

#include "vamp-sdk/Plugin.h"

typedef struct {
		PyObject_HEAD
		Vamp::RealTime *rt;
} RealTimeObject; 

PyAPI_DATA(PyTypeObject) RealTime_Type;

#define PyRealTime_CheckExact(v)	((v)->ob_type == &RealTime_Type)
#define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
///fast macro version as per API convention
#define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt

/*		  		 	  PyRealTime C++ API  	  		  				*/


PyAPI_FUNC(PyObject *) 
PyRealTime_FromRealTime(Vamp::RealTime&);

PyAPI_FUNC(const Vamp::RealTime*) 
PyRealTime_AsRealTime (PyObject *self);


#endif