Mercurial > hg > vampy
comparison PyOutputDescriptor.h @ 37:27bab3a16c9a vampy2final
new branch Vampy2final
author | fazekasgy |
---|---|
date | Mon, 05 Oct 2009 11:28:00 +0000 |
parents | |
children | f5c028376bf9 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 37:27bab3a16c9a |
---|---|
1 /* | |
2 | |
3 * Vampy : This plugin is a wrapper around the Vamp plugin API. | |
4 * It allows for writing Vamp plugins in Python. | |
5 | |
6 * Centre for Digital Music, Queen Mary University of London. | |
7 * Copyright (C) 2008-2009 Gyorgy Fazekas, QMUL. (See Vamp sources | |
8 * for licence information.) | |
9 | |
10 */ | |
11 | |
12 #ifndef _PYOUTPUTDESCRIPTOR_H_ | |
13 #define _PYOUTPUTDESCRIPTOR_H_ | |
14 | |
15 #include "vamp-sdk/Plugin.h" | |
16 | |
17 typedef struct { | |
18 PyObject_HEAD | |
19 PyObject *dict; | |
20 } OutputDescriptorObject; | |
21 | |
22 PyAPI_DATA(PyTypeObject) OutputDescriptor_Type; | |
23 | |
24 #define PyOutputDescriptor_CheckExact(v) ((v)->ob_type == &OutputDescriptor_Type) | |
25 #define PyOutputDescriptor_Check(v) PyObject_TypeCheck(v, &OutputDescriptor_Type) | |
26 | |
27 /* PyOutputDescriptor C++ API */ | |
28 | |
29 | |
30 ///fast macro version as per API convention | |
31 #define PyOutputDescriptor_AS_DICT(v) ((const OutputDescriptorObject* const) (v))->dict | |
32 | |
33 #endif |