<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>SLV2: port.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>port.h</h1> </div> </div> <div class="contents"> <div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* SLV2</span> <a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net></span> <a name="l00003"></a>00003 <span class="comment"> *</span> <a name="l00004"></a>00004 <span class="comment"> * This library is free software; you can redistribute it and/or modify it</span> <a name="l00005"></a>00005 <span class="comment"> * under the terms of the GNU General Public License as published by the Free</span> <a name="l00006"></a>00006 <span class="comment"> * Software Foundation; either version 2 of the License, or (at your option)</span> <a name="l00007"></a>00007 <span class="comment"> * any later version.</span> <a name="l00008"></a>00008 <span class="comment"> *</span> <a name="l00009"></a>00009 <span class="comment"> * This library is distributed in the hope that it will be useful, but WITHOUT</span> <a name="l00010"></a>00010 <span class="comment"> * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or</span> <a name="l00011"></a>00011 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License</span> <a name="l00012"></a>00012 <span class="comment"> * for more details.</span> <a name="l00013"></a>00013 <span class="comment"> *</span> <a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU General Public License along</span> <a name="l00015"></a>00015 <span class="comment"> * with this program; if not, write to the Free Software Foundation, Inc.,</span> <a name="l00016"></a>00016 <span class="comment"> * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.</span> <a name="l00017"></a>00017 <span class="comment"> */</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <span class="preprocessor">#ifndef __SLV2_PORT_H__</span> <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __SLV2_PORT_H__</span> <a name="l00021"></a>00021 <span class="preprocessor"></span> <a name="l00022"></a>00022 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00023"></a>00023 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00024"></a>00024 <span class="preprocessor">#endif</span> <a name="l00025"></a>00025 <span class="preprocessor"></span> <a name="l00026"></a>00026 <span class="preprocessor">#include "slv2/types.h"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "slv2/plugin.h"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "slv2/port.h"</span> <a name="l00029"></a>00029 <span class="preprocessor">#include "slv2/collections.h"</span> <a name="l00030"></a>00030 <a name="l00040"></a>00040 SLV2Values <a name="l00041"></a>00041 <a class="code" href="group__slv2__data.html#ga7ce418aff549039c0fa253b177a81b74" title="Port analog of slv2_plugin_get_value.">slv2_port_get_value</a>(SLV2Plugin plugin, <a name="l00042"></a>00042 SLV2Port port, <a name="l00043"></a>00043 SLV2Value predicate); <a name="l00044"></a>00044 <a name="l00045"></a>00045 <a name="l00050"></a>00050 SLV2Values <a name="l00051"></a>00051 <a class="code" href="group__slv2__data.html#ga3c9b004fe5b56b29f2dd77c100d1e2a1" title="Port analog of slv2_plugin_get_value_by_qname.">slv2_port_get_value_by_qname</a>(SLV2Plugin plugin, <a name="l00052"></a>00052 SLV2Port port, <a name="l00053"></a>00053 <span class="keyword">const</span> <span class="keywordtype">char</span>* property_uri); <a name="l00054"></a>00054 <a name="l00055"></a>00055 <a name="l00060"></a>00060 SLV2Values <a name="l00061"></a>00061 <a class="code" href="group__slv2__data.html#ga3d3df4185cfc3c60bdcb27395d9b44d0" title="Port analog of slv2_plugin_get_value_by_qname_i18n.">slv2_port_get_value_by_qname_i18n</a>(SLV2Plugin plugin, <a name="l00062"></a>00062 SLV2Port port, <a name="l00063"></a>00063 <span class="keyword">const</span> <span class="keywordtype">char</span>* property_uri); <a name="l00064"></a>00064 <a name="l00065"></a>00065 <a name="l00070"></a>00070 SLV2Values <a name="l00071"></a>00071 <a class="code" href="group__slv2__data.html#ga67b89db0cca5e2f633a463c723a33f3d" title="Return the LV2 port properties of a port.">slv2_port_get_properties</a>(SLV2Plugin plugin, <a name="l00072"></a>00072 SLV2Port port); <a name="l00073"></a>00073 <a name="l00074"></a>00074 <a name="l00079"></a>00079 <span class="keywordtype">bool</span> <a name="l00080"></a>00080 <a class="code" href="group__slv2__data.html#ga16cbdd22f76d0b1f8beb02287262ec9f" title="Return whether a port has a certain property.">slv2_port_has_property</a>(SLV2Plugin p, <a name="l00081"></a>00081 SLV2Port port, <a name="l00082"></a>00082 SLV2Value property_uri); <a name="l00083"></a>00083 <a name="l00084"></a>00084 <a name="l00089"></a>00089 <span class="keywordtype">bool</span> <a name="l00090"></a>00090 <a class="code" href="group__slv2__data.html#ga54bb3559ac93874ce3a6210789b82f95" title="Return whether a port is an event port and supports a certain event type.">slv2_port_supports_event</a>(SLV2Plugin p, <a name="l00091"></a>00091 SLV2Port port, <a name="l00092"></a>00092 SLV2Value event_uri); <a name="l00093"></a>00093 <a name="l00094"></a>00094 <a name="l00102"></a>00102 SLV2Value <a name="l00103"></a>00103 <a class="code" href="group__slv2__data.html#ga2b9a23c54874286e10f614ef4d699f73" title="Get the symbol of a port.">slv2_port_get_symbol</a>(SLV2Plugin plugin, <a name="l00104"></a>00104 SLV2Port port); <a name="l00105"></a>00105 <a name="l00114"></a>00114 SLV2Value <a name="l00115"></a>00115 <a class="code" href="group__slv2__data.html#gad44f389d27c2a3335c3131ce4ab9e6eb" title="Get the name of a port.">slv2_port_get_name</a>(SLV2Plugin plugin, <a name="l00116"></a>00116 SLV2Port port); <a name="l00117"></a>00117 <a name="l00118"></a>00118 <a name="l00129"></a>00129 SLV2Values <a name="l00130"></a>00130 <a class="code" href="group__slv2__data.html#ga51f2169263094d12c025f70a5fb2d1c9" title="Get all the classes of a port.">slv2_port_get_classes</a>(SLV2Plugin plugin, <a name="l00131"></a>00131 SLV2Port port); <a name="l00132"></a>00132 <a name="l00133"></a>00133 <a name="l00145"></a>00145 <span class="keywordtype">bool</span> <a name="l00146"></a>00146 <a class="code" href="group__slv2__data.html#ga6be0f93a2d1f1df096b96a6f97de3956" title="Determine if a port is of a given class (input, output, audio, etc).">slv2_port_is_a</a>(SLV2Plugin plugin, <a name="l00147"></a>00147 SLV2Port port, <a name="l00148"></a>00148 SLV2Value port_class); <a name="l00149"></a>00149 <a name="l00150"></a>00150 <a name="l00160"></a>00160 <span class="keywordtype">void</span> <a name="l00161"></a>00161 <a class="code" href="group__slv2__data.html#ga883fcd25d26fe72d007688a1b6a5dccb" title="Get the default, minimum, and maximum values of a port.">slv2_port_get_range</a>(SLV2Plugin plugin, <a name="l00162"></a>00162 SLV2Port port, <a name="l00163"></a>00163 SLV2Value* def, <a name="l00164"></a>00164 SLV2Value* min, <a name="l00165"></a>00165 SLV2Value* max); <a name="l00166"></a>00166 <a name="l00167"></a>00167 <a name="l00176"></a>00176 SLV2ScalePoints <a name="l00177"></a>00177 <a class="code" href="group__slv2__data.html#ga2ab76b6b880ae09a9ed2d531addef0bf" title="Get the scale points (enumeration values) of a port.">slv2_port_get_scale_points</a>(SLV2Plugin plugin, <a name="l00178"></a>00178 SLV2Port port); <a name="l00179"></a>00179 <a name="l00180"></a>00180 <a name="l00183"></a>00183 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00184"></a>00184 <span class="preprocessor"></span>} <span class="comment">/* extern "C" */</span> <a name="l00185"></a>00185 <span class="preprocessor">#endif</span> <a name="l00186"></a>00186 <span class="preprocessor"></span> <a name="l00187"></a>00187 <span class="preprocessor">#endif </span><span class="comment">/* __SLV2_PORT_H__ */</span> </pre></div></div> </div> <hr size="1"><address style="text-align: right;"><small> Generated for SLV2 by <a href="http://www.doxygen.org/ index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.1</small></address> </body> </html>