Mercurial > hg > vampy
view PyParameterDescriptor.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 |
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 _PYPARAMETERDESCRIPTOR_H_ #define _PYPARAMETERDESCRIPTOR_H_ #include "vamp-sdk/Plugin.h" typedef struct { PyObject_HEAD PyObject *dict; } ParameterDescriptorObject; PyAPI_DATA(PyTypeObject) ParameterDescriptor_Type; #define PyParameterDescriptor_CheckExact(v) ((v)->ob_type == &ParameterDescriptor_Type) #define PyParameterDescriptor_Check(v) PyObject_TypeCheck(v, &ParameterDescriptor_Type) /* PyParameterDescriptor C++ API */ ///fast macro version as per API convention #define PyParameterDescriptor_AS_DICT(v) ((const ParameterDescriptorObject* const) (v))->dict #endif