view PyOutputDescriptor.h @ 36:03b10edc5f78 vampy2

* Update VC++ project file to build with NumPy -- appears to work.
author cannam
date Thu, 24 Sep 2009 09:35:08 +0000
parents c905122f79e7
children
line wrap: on
line source
#ifndef _PYOUTPUTDESCRIPTOR_H_
#define _PYOUTPUTDESCRIPTOR_H_

#include "vamp-sdk/Plugin.h"

typedef struct {
		PyObject_HEAD
		PyObject *dict;
} OutputDescriptorObject; 

PyAPI_DATA(PyTypeObject) OutputDescriptor_Type;

#define PyOutputDescriptor_CheckExact(v)	((v)->ob_type == &OutputDescriptor_Type)
#define PyOutputDescriptor_Check(v) PyObject_TypeCheck(v, &OutputDescriptor_Type)

/*			  		 PyOutputDescriptor C++ API  	  	  	  		*/


///fast macro version as per API convention
#define PyOutputDescriptor_AS_DICT(v) ((const OutputDescriptorObject* const) (v))->dict

#endif