/* SLV2 * Copyright (C) 2007 Dave Robillard * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __SLV2_TYPES_H__ #define __SLV2_TYPES_H__ #include #include #ifdef __cplusplus extern "C" { #endif /** Class (direction and type) of a port * * Note that ports may be of other classes not listed here, this is just * to make the most common case simple. Use slv2_port_get_value(p, "rdf:type") * if you need further class information. */ typedef enum _PortClass { SLV2_UNKNOWN_PORT_CLASS, SLV2_CONTROL_INPUT, /**< One input float per block */ SLV2_CONTROL_OUTPUT, /**< One output float per block */ SLV2_AUDIO_INPUT, /**< One input float per frame */ SLV2_AUDIO_OUTPUT, /**< One output float per frame */ SLV2_MIDI_INPUT, /**< MIDI input (LL extension) */ SLV2_MIDI_OUTPUT /**< MIDI output (LL extension) */ } SLV2PortClass; /** A port on a plugin. Opaque, but valid to compare to NULL. */ typedef struct _Port* SLV2Port; /** A plugin. Opaque, but valid to compare to NULL. */ typedef struct _Plugin* SLV2Plugin; /** The world. Opaque, but valid to compare to NULL. */ typedef struct _World* SLV2World; /** A plugin class. Opaque, but valid to compare to NULL. */ typedef struct _PluginClass* SLV2PluginClass; #ifdef __cplusplus } #endif #endif /* __SLV2_TYPES_H__ */