diff PyOutputDescriptor.h @ 31:4f1894c7591b vampy2

Created Vampy2 branch
author fazekasgy
date Sun, 20 Sep 2009 17:31:20 +0000
parents
children c905122f79e7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PyOutputDescriptor.h	Sun Sep 20 17:31:20 2009 +0000
@@ -0,0 +1,22 @@
+#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
\ No newline at end of file