view PyOutputDescriptor.h @ 104:325fc01e00aa

x64 target
author Chris Cannam
date Tue, 05 Feb 2019 09:41:05 +0000
parents f5c028376bf9
children
line wrap: on
line source
/*

 * Vampy : This plugin is a wrapper around the Vamp plugin API.
 * It allows for writing Vamp plugins in Python.

 * Centre for Digital Music, Queen Mary University of London.
 * Copyright (C) 2008-2009 Gyorgy Fazekas, QMUL. (See Vamp sources 
 * for licence information.)

*/

#ifndef _PYOUTPUTDESCRIPTOR_H_
#define _PYOUTPUTDESCRIPTOR_H_

#include "vamp-sdk/Plugin.h"

typedef struct {
		PyObject_HEAD
		PyObject *dict;
} OutputDescriptorObject; 

extern 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