Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 187676b5433787923dfa2cdd6900c6cd > files > 55

lib64pulseaudio-devel-0.9.15-2.0.7mdv2009.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>PulseAudio: ext-stream-restore.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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</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>Globals</span></a></li>
    </ul>
  </div>
<h1>ext-stream-restore.h</h1><a href="ext-stream-restore_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef foopulseextstreamrestorehfoo</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define foopulseextstreamrestorehfoo</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/***</span>
<a name="l00005"></a>00005 <span class="comment">  This file is part of PulseAudio.</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">  Copyright 2008 Lennart Poettering</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00010"></a>00010 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00011"></a>00011 <span class="comment">  by the Free Software Foundation; either version 2.1 of the License,</span>
<a name="l00012"></a>00012 <span class="comment">  or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00015"></a>00015 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00017"></a>00017 <span class="comment">  General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"></span>
<a name="l00019"></a>00019 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00020"></a>00020 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00022"></a>00022 <span class="comment">  USA.</span>
<a name="l00023"></a>00023 <span class="comment">***/</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="context_8h.html" title="Connection contexts for asynchrononous communication with a server.">pulse/context.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="version_8h.html" title="Define header version.">pulse/version.h</a>&gt;</span>
<a name="l00027"></a>00027 
<a name="l00033"></a>00033 PA_C_DECL_BEGIN
<a name="l00034"></a>00034 
<a name="l00037"></a><a class="code" href="structpa__ext__stream__restore__info.html">00037</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structpa__ext__stream__restore__info.html" title="Stores information about one entry in the stream database that is maintained by module-stream-restor...">pa_ext_stream_restore_info</a> {
<a name="l00038"></a><a class="code" href="structpa__ext__stream__restore__info.html#c63ef1427cc1e701d9b48015290107d4">00038</a>     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structpa__ext__stream__restore__info.html#c63ef1427cc1e701d9b48015290107d4" title="Identifier string of the stream.">name</a>;            
<a name="l00039"></a><a class="code" href="structpa__ext__stream__restore__info.html#6cc81e09087838b188903ea4b2387abb">00039</a>     <a class="code" href="structpa__channel__map.html" title="A channel map which can be used to attach labels to specific channels of a stream...">pa_channel_map</a> <a class="code" href="structpa__ext__stream__restore__info.html#6cc81e09087838b188903ea4b2387abb" title="The channel map for the volume field, if applicable.">channel_map</a>;  
<a name="l00040"></a><a class="code" href="structpa__ext__stream__restore__info.html#c4347e3ef8aba48ecc3a58f178e0802b">00040</a>     <a class="code" href="structpa__cvolume.html" title="A structure encapsulating a per-channel volume.">pa_cvolume</a> <a class="code" href="structpa__ext__stream__restore__info.html#c4347e3ef8aba48ecc3a58f178e0802b" title="The volume of the stream when it was seen last, if applicable and saved.">volume</a>;           
<a name="l00041"></a><a class="code" href="structpa__ext__stream__restore__info.html#c05ad3aa1a0b557f38781c7503c6f6c9">00041</a>     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structpa__ext__stream__restore__info.html#c05ad3aa1a0b557f38781c7503c6f6c9" title="The sink/source of the stream when it was last seen, if applicable and saved.">device</a>;          
<a name="l00042"></a><a class="code" href="structpa__ext__stream__restore__info.html#130e90ee7751ef01724e9b6426b76da7">00042</a>     <span class="keywordtype">int</span> <a class="code" href="structpa__ext__stream__restore__info.html#130e90ee7751ef01724e9b6426b76da7" title="The boolean mute state of the stream when it was last seen, if applicable and saved...">mute</a>;                    
<a name="l00043"></a>00043 } <a class="code" href="structpa__ext__stream__restore__info.html" title="Stores information about one entry in the stream database that is maintained by module-stream-restor...">pa_ext_stream_restore_info</a>;
<a name="l00044"></a>00044 
<a name="l00046"></a><a class="code" href="ext-stream-restore_8h.html#8f7f37ee7ba6c363141f75dec793beb7">00046</a> <span class="keyword">typedef</span> void (*<a class="code" href="ext-stream-restore_8h.html#8f7f37ee7ba6c363141f75dec793beb7" title="Callback prototype for pa_ext_stream_restore_test().">pa_ext_stream_restore_test_cb_t</a>)(
<a name="l00047"></a>00047         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00048"></a>00048         uint32_t version,
<a name="l00049"></a>00049         <span class="keywordtype">void</span> *userdata);
<a name="l00050"></a>00050 
<a name="l00052"></a>00052 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="ext-stream-restore_8h.html#89d7350f477c53928f4121e6ac6cb897" title="Test if this extension module is available in the server.">pa_ext_stream_restore_test</a>(
<a name="l00053"></a>00053         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00054"></a>00054         <a class="code" href="ext-stream-restore_8h.html#8f7f37ee7ba6c363141f75dec793beb7" title="Callback prototype for pa_ext_stream_restore_test().">pa_ext_stream_restore_test_cb_t</a> cb,
<a name="l00055"></a>00055         <span class="keywordtype">void</span> *userdata);
<a name="l00056"></a>00056 
<a name="l00058"></a><a class="code" href="ext-stream-restore_8h.html#4a25bef02874538acb98e1c1729d60eb">00058</a> <span class="keyword">typedef</span> void (*<a class="code" href="ext-stream-restore_8h.html#4a25bef02874538acb98e1c1729d60eb" title="Callback prototype for pa_ext_stream_restore_read().">pa_ext_stream_restore_read_cb_t</a>)(
<a name="l00059"></a>00059         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00060"></a>00060         <span class="keyword">const</span> <a class="code" href="structpa__ext__stream__restore__info.html" title="Stores information about one entry in the stream database that is maintained by module-stream-restor...">pa_ext_stream_restore_info</a> *info,
<a name="l00061"></a>00061         <span class="keywordtype">int</span> eol,
<a name="l00062"></a>00062         <span class="keywordtype">void</span> *userdata);
<a name="l00063"></a>00063 
<a name="l00065"></a>00065 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="ext-stream-restore_8h.html#3e83c1723e241f9e308be4097e1d3973" title="Read all entries from the stream database.">pa_ext_stream_restore_read</a>(
<a name="l00066"></a>00066         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00067"></a>00067         <a class="code" href="ext-stream-restore_8h.html#4a25bef02874538acb98e1c1729d60eb" title="Callback prototype for pa_ext_stream_restore_read().">pa_ext_stream_restore_read_cb_t</a> cb,
<a name="l00068"></a>00068         <span class="keywordtype">void</span> *userdata);
<a name="l00069"></a>00069 
<a name="l00071"></a>00071 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="ext-stream-restore_8h.html#8f8e9e4c630294aff45a38bf1a417831" title="Store entries in the stream database.">pa_ext_stream_restore_write</a>(
<a name="l00072"></a>00072         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00073"></a>00073         <a class="code" href="proplist_8h.html#4b73cd513add16a26378a7941a9f1fd9" title="Update mode enum for pa_proplist_update().">pa_update_mode_t</a> mode,
<a name="l00074"></a>00074         <span class="keyword">const</span> <a class="code" href="structpa__ext__stream__restore__info.html" title="Stores information about one entry in the stream database that is maintained by module-stream-restor...">pa_ext_stream_restore_info</a> data[],
<a name="l00075"></a>00075         <span class="keywordtype">unsigned</span> n,
<a name="l00076"></a>00076         <span class="keywordtype">int</span> apply_immediately,
<a name="l00077"></a>00077         <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb,
<a name="l00078"></a>00078         <span class="keywordtype">void</span> *userdata);
<a name="l00079"></a>00079 
<a name="l00081"></a>00081 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="ext-stream-restore_8h.html#68ce13da0f217d144813ae0f87505365" title="Delete entries from the stream database.">pa_ext_stream_restore_delete</a>(
<a name="l00082"></a>00082         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00083"></a>00083         <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> s[],
<a name="l00084"></a>00084         <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb,
<a name="l00085"></a>00085         <span class="keywordtype">void</span> *userdata);
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="ext-stream-restore_8h.html#c383f6a26d3776658dd60bcf262edcf3" title="Subscribe to changes in the stream database.">pa_ext_stream_restore_subscribe</a>(
<a name="l00089"></a>00089         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00090"></a>00090         <span class="keywordtype">int</span> enable,
<a name="l00091"></a>00091         <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb,
<a name="l00092"></a>00092         <span class="keywordtype">void</span> *userdata);
<a name="l00093"></a>00093 
<a name="l00095"></a><a class="code" href="ext-stream-restore_8h.html#6ec8bdc7e4aebfdde7727c7d053382fb">00095</a> <span class="keyword">typedef</span> void (*<a class="code" href="ext-stream-restore_8h.html#6ec8bdc7e4aebfdde7727c7d053382fb" title="Callback prototype for pa_ext_stream_restore_set_subscribe_cb().">pa_ext_stream_restore_subscribe_cb_t</a>)(
<a name="l00096"></a>00096         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00097"></a>00097         <span class="keywordtype">void</span> *userdata);
<a name="l00098"></a>00098 
<a name="l00101"></a>00101 <span class="keywordtype">void</span> <a class="code" href="ext-stream-restore_8h.html#415cbef4cbfc37b62def1ff47d70d7b2" title="Set the subscription callback that is called when pa_ext_stream_restore_subscribe()...">pa_ext_stream_restore_set_subscribe_cb</a>(
<a name="l00102"></a>00102         <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c,
<a name="l00103"></a>00103         <a class="code" href="ext-stream-restore_8h.html#6ec8bdc7e4aebfdde7727c7d053382fb" title="Callback prototype for pa_ext_stream_restore_set_subscribe_cb().">pa_ext_stream_restore_subscribe_cb_t</a> cb,
<a name="l00104"></a>00104         <span class="keywordtype">void</span> *userdata);
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 PA_C_DECL_END
<a name="l00107"></a>00107 
<a name="l00108"></a>00108 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 2 04:18:19 2009 for PulseAudio by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>