Mercurial > hg > vampy
annotate PyFeatureSet.h @ 53:7e59caea821b
* Make a better job of preloading Python, especially when it's in a
framework. Go for the Python file in the frameworks directory in
preference to any libpythonX.Y.dylib. Particularly, don't try to
preload any library without an absolute path until we've exhausted
all our framework possibilities (so as to avoid picking up an
ancient system library).
author | cannam |
---|---|
date | Fri, 09 Oct 2009 13:48:25 +0000 |
parents | 27bab3a16c9a |
children | f5c028376bf9 |
rev | line source |
---|---|
fazekasgy@37 | 1 /* |
fazekasgy@37 | 2 |
fazekasgy@37 | 3 * Vampy : This plugin is a wrapper around the Vamp plugin API. |
fazekasgy@37 | 4 * It allows for writing Vamp plugins in Python. |
fazekasgy@37 | 5 |
fazekasgy@37 | 6 * Centre for Digital Music, Queen Mary University of London. |
fazekasgy@37 | 7 * Copyright (C) 2008-2009 Gyorgy Fazekas, QMUL. (See Vamp sources |
fazekasgy@37 | 8 * for licence information.) |
fazekasgy@37 | 9 |
fazekasgy@37 | 10 */ |
fazekasgy@37 | 11 |
fazekasgy@37 | 12 #ifndef _PYFEATURESET_H_ |
fazekasgy@37 | 13 #define _PYFEATURESET_H_ |
fazekasgy@37 | 14 |
fazekasgy@37 | 15 #include <Python.h> |
fazekasgy@37 | 16 |
fazekasgy@37 | 17 typedef struct { |
fazekasgy@37 | 18 PyDictObject dict; |
fazekasgy@37 | 19 } FeatureSetObject; |
fazekasgy@37 | 20 |
fazekasgy@37 | 21 PyAPI_DATA(PyTypeObject) FeatureSet_Type; |
fazekasgy@37 | 22 |
fazekasgy@37 | 23 #define PyFeatureSet_CheckExact(v) ((v)->ob_type == &FeatureSet_Type) |
fazekasgy@37 | 24 #define PyFeatureSet_Check(v) PyObject_TypeCheck(v, &FeatureSet_Type) |
fazekasgy@37 | 25 |
fazekasgy@37 | 26 void initFeatureSetType(void); |
fazekasgy@37 | 27 |
fazekasgy@37 | 28 #endif |