Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > fba57c789abf4ed3484c767370e6ce0d > files > 46

lib64pulseaudio-devel-0.9.9-7mdv2008.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: context.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.5 -->
<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="classes.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>
<h1>context.h</h1><a href="context_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 foocontexthfoo</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define foocontexthfoo</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/* $Id: context.h 1426 2007-02-13 15:35:19Z ossman $ */</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">/***</span>
<a name="l00007"></a>00007 <span class="comment">  This file is part of PulseAudio.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">  Copyright 2004-2006 Lennart Poettering</span>
<a name="l00010"></a>00010 <span class="comment">  Copyright 2006 Pierre Ossman &lt;ossman@cendio.se&gt; for Cendio AB</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00013"></a>00013 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00014"></a>00014 <span class="comment">  by the Free Software Foundation; either version 2 of the License,</span>
<a name="l00015"></a>00015 <span class="comment">  or (at your option) any later version.</span>
<a name="l00016"></a>00016 <span class="comment"></span>
<a name="l00017"></a>00017 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00018"></a>00018 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00019"></a>00019 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00020"></a>00020 <span class="comment">  General Public License for more details.</span>
<a name="l00021"></a>00021 <span class="comment"></span>
<a name="l00022"></a>00022 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00023"></a>00023 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00024"></a>00024 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00025"></a>00025 <span class="comment">  USA.</span>
<a name="l00026"></a>00026 <span class="comment">***/</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="sample_8h.html" title="Constants and routines for sample type handling.">pulse/sample.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="def_8h.html" title="Global definitions.">pulse/def.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="mainloop-api_8h.html" title="Main loop abstraction layer.">pulse/mainloop-api.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;pulse/cdecl.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="operation_8h.html" title="Asynchronous operations.">pulse/operation.h</a>&gt;</span>
<a name="l00033"></a>00033 
<a name="l00157"></a>00157 PA_C_DECL_BEGIN
<a name="l00158"></a>00158 
<a name="l00160"></a><a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a">00160</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a>;
<a name="l00161"></a>00161 
<a name="l00163"></a><a class="code" href="context_8h.html#f198b84bc26cbc941313b1d75289e210">00163</a> <span class="keyword">typedef</span> void (*<a class="code" href="context_8h.html#f198b84bc26cbc941313b1d75289e210" title="Generic notification callback prototype.">pa_context_notify_cb_t</a>)(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keywordtype">void</span> *userdata);
<a name="l00164"></a>00164 
<a name="l00166"></a><a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a">00166</a> <span class="keyword">typedef</span> void (*<a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a>) (<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keywordtype">int</span> success, <span class="keywordtype">void</span> *userdata);
<a name="l00167"></a>00167 
<a name="l00170"></a>00170 <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *<a class="code" href="context_8h.html#2784c754947a97f02c78b73d7b1c2d5f" title="Instantiate a new connection context with an abstract mainloop API and an application...">pa_context_new</a>(<a class="code" href="structpa__mainloop__api.html" title="An abstract mainloop API vtable.">pa_mainloop_api</a> *mainloop, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00171"></a>00171 
<a name="l00173"></a>00173 <span class="keywordtype">void</span> <a class="code" href="context_8h.html#344c4ccf14d6a8842e83154a0aa99311" title="Decrease the reference counter of the context by one.">pa_context_unref</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00174"></a>00174 
<a name="l00176"></a>00176 <a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a>* <a class="code" href="context_8h.html#4ba151a2c3b6b469d0b8bb1f905d6589" title="Increase the reference counter of the context by one.">pa_context_ref</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00177"></a>00177 
<a name="l00179"></a>00179 <span class="keywordtype">void</span> <a class="code" href="context_8h.html#eb7b395fd3a345fc181d6bfcdbe5f3d8" title="Set a callback function that is called whenever the context status changes.">pa_context_set_state_callback</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <a class="code" href="context_8h.html#f198b84bc26cbc941313b1d75289e210" title="Generic notification callback prototype.">pa_context_notify_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00180"></a>00180 
<a name="l00182"></a>00182 <span class="keywordtype">int</span> <a class="code" href="context_8h.html#a8262c715ef8c48bcd2fbc5ae57a6df9" title="Return the error number of the last failed operation.">pa_context_errno</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00183"></a>00183 
<a name="l00185"></a>00185 <span class="keywordtype">int</span> <a class="code" href="context_8h.html#d33a71b4d3b61e678b14091bdcfe98aa" title="Return non-zero if some data is pending to be written to the connection.">pa_context_is_pending</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00186"></a>00186 
<a name="l00188"></a>00188 <a class="code" href="def_8h.html#696774cc2f758448c5ab10c2dd786c9d">pa_context_state_t</a> <a class="code" href="context_8h.html#439b9a712321194390584737a0a7003f" title="Return the current context status.">pa_context_get_state</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00189"></a>00189 
<a name="l00197"></a>00197 <span class="keywordtype">int</span> <a class="code" href="context_8h.html#983ce13d45c5f4b0db8e1a34e21f9fce" title="Connect the context to the specified server.">pa_context_connect</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keyword">const</span> <span class="keywordtype">char</span> *server, <a class="code" href="def_8h.html#a330581bb9b282e6f6a28a3a2b4b634a">pa_context_flags_t</a> flags, <span class="keyword">const</span> <a class="code" href="structpa__spawn__api.html" title="A structure for the spawn api.">pa_spawn_api</a> *api);
<a name="l00198"></a>00198 
<a name="l00200"></a>00200 <span class="keywordtype">void</span> <a class="code" href="context_8h.html#154b9d8057adfbb2cecfbd9406a27660" title="Terminate the context connection immediately.">pa_context_disconnect</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00201"></a>00201 
<a name="l00203"></a>00203 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a>* <a class="code" href="context_8h.html#b94b42b05c233e010432888b7c496c50" title="Drain the context.">pa_context_drain</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <a class="code" href="context_8h.html#f198b84bc26cbc941313b1d75289e210" title="Generic notification callback prototype.">pa_context_notify_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00204"></a>00204 
<a name="l00208"></a>00208 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a>* <a class="code" href="context_8h.html#9f664306d9e9be7603cd80e811b3c29a" title="Tell the daemon to exit.">pa_context_exit_daemon</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00209"></a>00209 
<a name="l00211"></a>00211 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a>* <a class="code" href="context_8h.html#0710abf20bd14d140c77daded9b99dd1" title="Set the name of the default sink.">pa_context_set_default_sink</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00212"></a>00212 
<a name="l00214"></a>00214 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a>* <a class="code" href="context_8h.html#c70ec892113745dc85d4045234fd0a33" title="Set the name of the default source.">pa_context_set_default_source</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00215"></a>00215 
<a name="l00217"></a>00217 <span class="keywordtype">int</span> <a class="code" href="context_8h.html#e5cb66d55f916f30b5ea13bd5d5c755a" title="Returns 1 when the connection is to a local daemon.">pa_context_is_local</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00218"></a>00218 
<a name="l00220"></a>00220 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a>* <a class="code" href="context_8h.html#e50c0e777b009d2bdcd32a07a91b735a" title="Set a different application name for context on the server.">pa_context_set_name</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a" title="A generic callback for operation completion.">pa_context_success_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00221"></a>00221 
<a name="l00223"></a>00223 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="context_8h.html#f5708e81def9f3d08610f7b40815288b" title="Return the server name this context is connected to.">pa_context_get_server</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00224"></a>00224 
<a name="l00226"></a>00226 uint32_t <a class="code" href="context_8h.html#4fb9f8705d000461b2be83626e9d5635" title="Return the protocol version of the library.">pa_context_get_protocol_version</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00227"></a>00227 
<a name="l00229"></a>00229 uint32_t <a class="code" href="context_8h.html#012b6b7fcef6fc05676ee7f57c4b5a54" title="Return the protocol version of the connected server.">pa_context_get_server_protocol_version</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *c);
<a name="l00230"></a>00230 
<a name="l00231"></a>00231 PA_C_DECL_END
<a name="l00232"></a>00232 
<a name="l00233"></a>00233 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 26 12:02:40 2008 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.5 </small></address>
</body>
</html>