Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 30caf3d0c6d7c0f38ba374ec477939e9 > files > 36

slv2-0.6.6-12.mga5.i586.rpm

<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>SLV2: Global library state</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SLV2
   &#160;<span id="projectnumber">0.6.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Global library state</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga994e0c72ea68695a53e58062142265c4"><td class="memItemLeft" align="right" valign="top">SLV2World&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga994e0c72ea68695a53e58062142265c4">slv2_world_new</a> ()</td></tr>
<tr class="separator:ga994e0c72ea68695a53e58062142265c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga659baac5e9a3959dd4c2b6a660bce372"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga659baac5e9a3959dd4c2b6a660bce372">slv2_world_free</a> (SLV2World world)</td></tr>
<tr class="separator:ga659baac5e9a3959dd4c2b6a660bce372"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1511da527acc874e83287206d9f07c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#gad1511da527acc874e83287206d9f07c0">slv2_world_load_all</a> (SLV2World world)</td></tr>
<tr class="separator:gad1511da527acc874e83287206d9f07c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8d1cf0231b1765930850d1d728f33888"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga8d1cf0231b1765930850d1d728f33888">slv2_world_load_bundle</a> (SLV2World world, SLV2Value bundle_uri)</td></tr>
<tr class="separator:ga8d1cf0231b1765930850d1d728f33888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6da06ff9500eb1675d37570b4d82b90b"><td class="memItemLeft" align="right" valign="top">SLV2PluginClass&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga6da06ff9500eb1675d37570b4d82b90b">slv2_world_get_plugin_class</a> (SLV2World world)</td></tr>
<tr class="separator:ga6da06ff9500eb1675d37570b4d82b90b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2f288d8a323e2f834b029da0e4254e63"><td class="memItemLeft" align="right" valign="top">SLV2PluginClasses&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga2f288d8a323e2f834b029da0e4254e63">slv2_world_get_plugin_classes</a> (SLV2World world)</td></tr>
<tr class="separator:ga2f288d8a323e2f834b029da0e4254e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9b095ba2f57f83510caa01dfc5a42cd7"><td class="memItemLeft" align="right" valign="top">SLV2Plugins&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga9b095ba2f57f83510caa01dfc5a42cd7">slv2_world_get_all_plugins</a> (SLV2World world)</td></tr>
<tr class="separator:ga9b095ba2f57f83510caa01dfc5a42cd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67db64e62f7bdade9de8e3eaeb4d219b"><td class="memItemLeft" align="right" valign="top">SLV2Plugins&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__slv2__world.html#ga67db64e62f7bdade9de8e3eaeb4d219b">slv2_world_get_plugins_by_filter</a> (SLV2World world, bool(*include)(SLV2Plugin))</td></tr>
<tr class="separator:ga67db64e62f7bdade9de8e3eaeb4d219b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Plugins (and plugin extensions) and the LV2 specification (and LV2 extensions) itself can be queried from the world for use.</p>
<p>Normal hosts which just want to easily load plugins by URI are strongly recommended to simply call <a class="el" href="group__slv2__world.html#gad1511da527acc874e83287206d9f07c0">slv2_world_load_all</a> to find all installed data in the recommended way.</p>
<p>Normal hosts should NOT have to refer to bundles directly under normal circumstances. However, functions are provided to load individual bundles explicitly, intended for hosts which depend on a specific bundle (which is shipped with the application). </p>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga994e0c72ea68695a53e58062142265c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SLV2World slv2_world_new </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a new, empty world. </p>
<p>If initialization fails, NULL is returned. </p>

</div>
</div>
<a class="anchor" id="ga659baac5e9a3959dd4c2b6a660bce372"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void slv2_world_free </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy the world, mwahaha. </p>
<p>NB: Destroying the world will leave dangling references in any plugin lists, plugins, etc. Do not destroy the world until you are finished with all objects that came from it. </p>

</div>
</div>
<a class="anchor" id="gad1511da527acc874e83287206d9f07c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void slv2_world_load_all </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load all installed LV2 bundles on the system. </p>
<p>This is the recommended way for hosts to load LV2 data. It does the most reasonable thing to find all installed plugins, extensions, etc. on the system. The environment variable LV2_PATH may be used to set the directories inside which this function will look for bundles. Otherwise a sensible, standard default will be used.</p>
<p>Use of other functions for loading bundles is <em>highly</em> discouraged without a special reason to do so - use this one.</p>
<p>Time = Query </p>

</div>
</div>
<a class="anchor" id="ga8d1cf0231b1765930850d1d728f33888"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void slv2_world_load_bundle </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SLV2Value&#160;</td>
          <td class="paramname"><em>bundle_uri</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load a specific bundle. </p>
<ul>
<li>bundle_uri A fully qualified URI to the bundle directory, with the trailing slash, eg. <a href="file:///usr/lib/lv2/someBundle/">file:///usr/lib/lv2/someBundle/</a></li>
</ul>
<p>Normal hosts should not use this function.</p>
<p>Hosts should <b>never</b> attach any long-term significance to bundle paths as there are no guarantees they will remain consistent whatsoever. Plugins (and other things) are identified by URIs, <b>not</b> bundle or file names.</p>
<p>This function should only be used by apps which ship with a special bundle (which it knows exists at some path because the bundle is shipped with the application).</p>
<p>Time = Query </p>

</div>
</div>
<a class="anchor" id="ga6da06ff9500eb1675d37570b4d82b90b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SLV2PluginClass slv2_world_get_plugin_class </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the parent of all other plugin classes, lv2:Plugin. </p>
<p>Time = O(1) </p>

</div>
</div>
<a class="anchor" id="ga2f288d8a323e2f834b029da0e4254e63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SLV2PluginClasses slv2_world_get_plugin_classes </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a list of all found plugin classes. </p>
<p>Returned list is owned by world and must not be freed by the caller.</p>
<p>Time = O(1) </p>

</div>
</div>
<a class="anchor" id="ga9b095ba2f57f83510caa01dfc5a42cd7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SLV2Plugins slv2_world_get_all_plugins </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a list of all found plugins. </p>
<p>The returned list contains just enough references to query or instantiate plugins. The data for a particular plugin will not be loaded into memory until a call to an slv2_plugin_* function results in a query (at which time the data is cached with the SLV2Plugin so future queries are very fast).</p>
<p>Returned list must be freed by user with slv2_plugins_free. The contained plugins are owned by <em>world</em> and must not be freed by caller.</p>
<p>Time = O(1) </p>

</div>
</div>
<a class="anchor" id="ga67db64e62f7bdade9de8e3eaeb4d219b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SLV2Plugins slv2_world_get_plugins_by_filter </td>
          <td>(</td>
          <td class="paramtype">SLV2World&#160;</td>
          <td class="paramname"><em>world</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool(*)(SLV2Plugin)&#160;</td>
          <td class="paramname"><em>include</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a list of found plugins filtered by a user-defined filter function. </p>
<p>All plugins currently found in <em>world</em> that return true when passed to <em>include</em> (a pointer to a function which takes an SLV2Plugin and returns a bool) will be in the returned list.</p>
<p>Returned list must be freed by user with slv2_plugins_free. The contained plugins are owned by <em>world</em> and must not be freed by caller.</p>
<p>Time = O(n * Time(include)) </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Oct 18 2014 14:30:57 for SLV2 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>