Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > 110b7614098f68585a9812e7161c059a > files > 90

libmpdclient-devel-2.3-1mdv2011.0.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"/>
<title>libmpdclient: mpd/player.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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>mpd/player.h</h1><a href="player_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* libmpdclient</span>
<a name="l00002"></a>00002 <span class="comment">   (c) 2003-2010 The Music Player Daemon Project</span>
<a name="l00003"></a>00003 <span class="comment">   This project&#39;s homepage is: http://www.musicpd.org</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">   Redistribution and use in source and binary forms, with or without</span>
<a name="l00006"></a>00006 <span class="comment">   modification, are permitted provided that the following conditions</span>
<a name="l00007"></a>00007 <span class="comment">   are met:</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">   - Redistributions of source code must retain the above copyright</span>
<a name="l00010"></a>00010 <span class="comment">   notice, this list of conditions and the following disclaimer.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">   - Redistributions in binary form must reproduce the above copyright</span>
<a name="l00013"></a>00013 <span class="comment">   notice, this list of conditions and the following disclaimer in the</span>
<a name="l00014"></a>00014 <span class="comment">   documentation and/or other materials provided with the distribution.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span>
<a name="l00017"></a>00017 <span class="comment">   ``AS IS&#39;&#39; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>
<a name="l00018"></a>00018 <span class="comment">   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span>
<a name="l00019"></a>00019 <span class="comment">   A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR</span>
<a name="l00020"></a>00020 <span class="comment">   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00021"></a>00021 <span class="comment">   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00022"></a>00022 <span class="comment">   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00023"></a>00023 <span class="comment">   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span>
<a name="l00024"></a>00024 <span class="comment">   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span>
<a name="l00025"></a>00025 <span class="comment">   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
<a name="l00026"></a>00026 <span class="comment">   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00027"></a>00027 <span class="comment">*/</span>
<a name="l00028"></a>00028 
<a name="l00037"></a>00037 <span class="preprocessor">#ifndef MPD_PLAYER_H</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define MPD_PLAYER_H</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;<a class="code" href="compiler_8h.html" title="Compiler specific definitions.">mpd/compiler.h</a>&gt;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">struct </span><a class="code" href="structmpd__connection.html">mpd_connection</a>;
<a name="l00045"></a>00045 <span class="keyword">struct </span><a class="code" href="structmpd__song.html">mpd_song</a>;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="keywordtype">bool</span>
<a name="l00056"></a>00056 <a class="code" href="player_8h.html#a224885672d064a032352146a9e4136f9">mpd_send_current_song</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00057"></a>00057 
<a name="l00065"></a>00065 mpd_malloc
<a name="l00066"></a>00066 <span class="keyword">struct </span><a class="code" href="structmpd__song.html">mpd_song</a> *
<a name="l00067"></a>00067 <a class="code" href="player_8h.html#af25a1443ba734568104cc92252f1e0a2">mpd_run_current_song</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00068"></a>00068 
<a name="l00074"></a>00074 <span class="keywordtype">bool</span>
<a name="l00075"></a>00075 <a class="code" href="player_8h.html#a8caed9651c1336bf99dd7533fd64169b">mpd_send_play</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keywordtype">bool</span>
<a name="l00078"></a>00078 <a class="code" href="player_8h.html#af61e742a4b7be2af8b3bc39ca671fed6">mpd_run_play</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00079"></a>00079 
<a name="l00087"></a>00087 <span class="keywordtype">bool</span>
<a name="l00088"></a>00088 <a class="code" href="player_8h.html#a39a13563d1275470d9b2109910a92045">mpd_send_play_pos</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> song_pos);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="keywordtype">bool</span>
<a name="l00091"></a>00091 <a class="code" href="player_8h.html#a1f2c0c4921e5d1dd40981f3aa6e3a5fb">mpd_run_play_pos</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> song_pos);
<a name="l00092"></a>00092 
<a name="l00100"></a>00100 <span class="keywordtype">bool</span>
<a name="l00101"></a>00101 <a class="code" href="player_8h.html#a2a58d52cff1c49d79e7303e9455fecda">mpd_send_play_id</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="keywordtype">bool</span>
<a name="l00104"></a>00104 <a class="code" href="player_8h.html#add36253b322de9c208cb9f2e30c523eb">mpd_run_play_id</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> song_id);
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="keywordtype">bool</span>
<a name="l00107"></a>00107 <a class="code" href="player_8h.html#a08c5e92895c4912365a44ae35ecdb576">mpd_send_stop</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00108"></a>00108 
<a name="l00109"></a>00109 <span class="keywordtype">bool</span>
<a name="l00110"></a>00110 <a class="code" href="player_8h.html#aa0fe897bfcb02e53dbc5996bcfc4724a">mpd_run_stop</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00111"></a>00111 
<a name="l00117"></a>00117 <span class="keywordtype">bool</span>
<a name="l00118"></a>00118 <a class="code" href="player_8h.html#aa2901b98dd0888198555ed9e5fdf2e43">mpd_send_toggle_pause</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="keywordtype">bool</span>
<a name="l00121"></a>00121 <a class="code" href="player_8h.html#a6f33f5ba9210a05db978c83353e56573">mpd_run_toggle_pause</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="keywordtype">bool</span>
<a name="l00124"></a>00124 <a class="code" href="player_8h.html#aeb1598c93914dc57b9e92b0d313263b9">mpd_send_pause</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00125"></a>00125 
<a name="l00126"></a>00126 <span class="keywordtype">bool</span>
<a name="l00127"></a>00127 <a class="code" href="player_8h.html#a4fdbc3e5ed4c26e7c20bd5baf5c32ef5">mpd_run_pause</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="keywordtype">bool</span>
<a name="l00130"></a>00130 <a class="code" href="player_8h.html#aff786979399f05e1da5d1d8fb99ad5b9">mpd_send_next</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00131"></a>00131 
<a name="l00132"></a>00132 <span class="keywordtype">bool</span>
<a name="l00133"></a>00133 <a class="code" href="player_8h.html#a4208ab0a37a3db861d81fd10efdbdf86">mpd_run_next</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 <span class="keywordtype">bool</span>
<a name="l00136"></a>00136 <a class="code" href="player_8h.html#a52b37ae78c986c2feb1a5abfa14a5a5a">mpd_send_previous</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 <span class="keywordtype">bool</span>
<a name="l00139"></a>00139 <a class="code" href="player_8h.html#aa01de8b43bd05e1e548824db0626af7c">mpd_run_previous</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection);
<a name="l00140"></a>00140 
<a name="l00149"></a>00149 <span class="keywordtype">bool</span>
<a name="l00150"></a>00150 <a class="code" href="player_8h.html#a1d32c0aa63bd43ee3a4cff8ea92c283d">mpd_send_seek_pos</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection,
<a name="l00151"></a>00151                   <span class="keywordtype">unsigned</span> song_pos, <span class="keywordtype">unsigned</span> t);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 <span class="keywordtype">bool</span>
<a name="l00154"></a>00154 <a class="code" href="player_8h.html#abd55c2d47ec2c97a9b581f34e96ff5d7">mpd_run_seek_pos</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection,
<a name="l00155"></a>00155                  <span class="keywordtype">unsigned</span> song_pos, <span class="keywordtype">unsigned</span> t);
<a name="l00156"></a>00156 
<a name="l00165"></a>00165 <span class="keywordtype">bool</span>
<a name="l00166"></a>00166 <a class="code" href="player_8h.html#ae33b14d8e47a2225fb18a9d47d23cef7">mpd_send_seek_id</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>, <span class="keywordtype">unsigned</span> t);
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 <span class="keywordtype">bool</span>
<a name="l00169"></a>00169 <a class="code" href="player_8h.html#a59d0774a334bb6e81528eee05d7f34aa">mpd_run_seek_id</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection,
<a name="l00170"></a>00170                 <span class="keywordtype">unsigned</span> song_id, <span class="keywordtype">unsigned</span> t);
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 <span class="keywordtype">bool</span>
<a name="l00173"></a>00173 <a class="code" href="player_8h.html#a0f8a01789e468027b1d88ffd813e4d24">mpd_send_repeat</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <span class="keywordtype">bool</span>
<a name="l00176"></a>00176 <a class="code" href="player_8h.html#ad696ffe692c6480a7886a7b48e9a8afe">mpd_run_repeat</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 <span class="keywordtype">bool</span>
<a name="l00179"></a>00179 <a class="code" href="player_8h.html#a2d70b87313f4c7c4b814fa438510221b">mpd_send_random</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 <span class="keywordtype">bool</span>
<a name="l00182"></a>00182 <a class="code" href="player_8h.html#ac3a10128a92b339d0a76603a5bf07497">mpd_run_random</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 <span class="keywordtype">bool</span>
<a name="l00185"></a>00185 <a class="code" href="player_8h.html#a62f91e30fb3f8c385f5cbec8878e5257">mpd_send_single</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="keywordtype">bool</span>
<a name="l00188"></a>00188 <a class="code" href="player_8h.html#a17d49f9bf3542c827bf51259a6529964">mpd_run_single</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 <span class="keywordtype">bool</span>
<a name="l00191"></a>00191 <a class="code" href="player_8h.html#a86ee5587a935e17c67899fab6ac89b99">mpd_send_consume</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="keywordtype">bool</span>
<a name="l00194"></a>00194 <a class="code" href="player_8h.html#a257ed6642f025c1d43746198458c1bfc">mpd_run_consume</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">bool</span> mode);
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <span class="keywordtype">bool</span>
<a name="l00197"></a>00197 <a class="code" href="player_8h.html#a566fb7eb2ba2407b417286141d1d014c">mpd_send_crossfade</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> seconds);
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="keywordtype">bool</span>
<a name="l00200"></a>00200 <a class="code" href="player_8h.html#a2dafb442c82c10d2e71a5d86fb8acf8d">mpd_run_crossfade</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">unsigned</span> seconds);
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="keywordtype">bool</span>
<a name="l00203"></a>00203 <a class="code" href="player_8h.html#a114031b75c05d945a873c9ba19854911">mpd_send_mixrampdb</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">float</span> db);
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 <span class="keywordtype">bool</span>
<a name="l00206"></a>00206 <a class="code" href="player_8h.html#aee94f98080b7d5a6ba1ea4aa86989283">mpd_run_mixrampdb</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">float</span> db);
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 <span class="keywordtype">bool</span>
<a name="l00209"></a>00209 <a class="code" href="player_8h.html#a5a145a732d3c0fa2d2d7d3b4802b2b20">mpd_send_mixrampdelay</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">float</span> seconds);
<a name="l00210"></a>00210 
<a name="l00211"></a>00211 <span class="keywordtype">bool</span>
<a name="l00212"></a>00212 <a class="code" href="player_8h.html#ab15a1a3e3d54ec6eca841c7b05be5d0f">mpd_run_mixrampdelay</a>(<span class="keyword">struct</span> <a class="code" href="structmpd__connection.html">mpd_connection</a> *connection, <span class="keywordtype">float</span> seconds);
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>}
<a name="l00216"></a>00216 <span class="preprocessor">#endif</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span>
<a name="l00218"></a>00218 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Sun Aug 8 15:52:35 2010 for libmpdclient by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>