Mercurial > hg > vampy
comparison PyOutputDescriptor.h @ 31:4f1894c7591b vampy2
Created Vampy2 branch
author | fazekasgy |
---|---|
date | Sun, 20 Sep 2009 17:31:20 +0000 |
parents | |
children | c905122f79e7 |
comparison
equal
deleted
inserted
replaced
28:5139bf30f208 | 31:4f1894c7591b |
---|---|
1 #ifndef _PYOUTPUTDESCRIPTOR_H_ | |
2 #define _PYOUTPUTDESCRIPTOR_H_ | |
3 | |
4 #include "vamp-sdk/Plugin.h" | |
5 | |
6 typedef struct { | |
7 PyObject_HEAD | |
8 PyObject *dict; | |
9 } OutputDescriptorObject; | |
10 | |
11 PyAPI_DATA(PyTypeObject) OutputDescriptor_Type; | |
12 | |
13 #define PyOutputDescriptor_CheckExact(v) ((v)->ob_type == &OutputDescriptor_Type) | |
14 #define PyOutputDescriptor_Check(v) PyObject_TypeCheck(v, &OutputDescriptor_Type) | |
15 | |
16 /* PyOutputDescriptor C++ API */ | |
17 | |
18 | |
19 ///fast macro version as per API convention | |
20 #define PyOutputDescriptor_AS_DICT(v) ((const OutputDescriptorObject* const) (v))->dict | |
21 | |
22 #endif |