Sophie

Sophie

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

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: context.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>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">/***</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 2004-2006 Lennart Poettering</span>
<a name="l00008"></a>00008 <span class="comment">  Copyright 2006 Pierre Ossman &lt;ossman@cendio.se&gt; for Cendio AB</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">  PulseAudio is free software; you can redistribute it and/or modify</span>
<a name="l00011"></a>00011 <span class="comment">  it under the terms of the GNU Lesser General Public License as published</span>
<a name="l00012"></a>00012 <span class="comment">  by the Free Software Foundation; either version 2.1 of the License,</span>
<a name="l00013"></a>00013 <span class="comment">  or (at your option) any later version.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">  PulseAudio is distributed in the hope that it will be useful, but</span>
<a name="l00016"></a>00016 <span class="comment">  WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00017"></a>00017 <span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00018"></a>00018 <span class="comment">  General Public License for more details.</span>
<a name="l00019"></a>00019 <span class="comment"></span>
<a name="l00020"></a>00020 <span class="comment">  You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00021"></a>00021 <span class="comment">  along with PulseAudio; if not, write to the Free Software</span>
<a name="l00022"></a>00022 <span class="comment">  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307</span>
<a name="l00023"></a>00023 <span class="comment">  USA.</span>
<a name="l00024"></a>00024 <span class="comment">***/</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <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="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="def_8h.html" title="Global definitions.">pulse/def.h</a>&gt;</span>
<a name="l00028"></a>00028 <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="l00029"></a>00029 <span class="preprocessor">#include &lt;pulse/cdecl.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="operation_8h.html" title="Asynchronous operations.">pulse/operation.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="proplist_8h.html">pulse/proplist.h</a>&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="version_8h.html" title="Define header version.">pulse/version.h</a>&gt;</span>
<a name="l00033"></a>00033 
<a name="l00156"></a>00156 PA_C_DECL_BEGIN
<a name="l00157"></a>00157 
<a name="l00159"></a><a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a">00159</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="l00160"></a>00160 
<a name="l00162"></a><a class="code" href="context_8h.html#f198b84bc26cbc941313b1d75289e210">00162</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="l00163"></a>00163 
<a name="l00165"></a><a class="code" href="context_8h.html#010aff61766ac2d9585d78a164c0fc9a">00165</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="l00166"></a>00166 
<a name="l00172"></a><a class="code" href="context_8h.html#4deb826e0352e583d6d38f9c93153544">00172</a> <span class="keyword">typedef</span> void (*<a class="code" href="context_8h.html#4deb826e0352e583d6d38f9c93153544" title="A callback for asynchronous meta/policy event messages.">pa_context_event_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="keyword">const</span> <span class="keywordtype">char</span> *name, <a class="code" href="proplist_8h.html#cdf756a6014b6fae3b358b2c934c3426" title="A property list object.">pa_proplist</a> *p, <span class="keywordtype">void</span> *userdata);
<a name="l00173"></a>00173 
<a name="l00177"></a>00177 <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="l00178"></a>00178 
<a name="l00182"></a>00182 <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#38182a2cd9439cd29d3cade7eb724405" title="Instantiate a new connection context with an abstract mainloop API and an application...">pa_context_new_with_proplist</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 class="code" href="proplist_8h.html#cdf756a6014b6fae3b358b2c934c3426" title="A property list object.">pa_proplist</a> *proplist);
<a name="l00183"></a>00183 
<a name="l00185"></a>00185 <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="l00186"></a>00186 
<a name="l00188"></a>00188 <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="l00189"></a>00189 
<a name="l00191"></a>00191 <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="l00192"></a>00192 
<a name="l00195"></a>00195 <span class="keywordtype">void</span> <a class="code" href="context_8h.html#c4b3e8eaac460fb1b8109b0e3689c510" title="Set a callback function that is called whenver a meta/policy control event is received...">pa_context_set_event_callback</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *p, <a class="code" href="context_8h.html#4deb826e0352e583d6d38f9c93153544" title="A callback for asynchronous meta/policy event messages.">pa_context_event_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);
<a name="l00196"></a>00196 
<a name="l00198"></a>00198 <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="l00199"></a>00199 
<a name="l00201"></a>00201 <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="l00202"></a>00202 
<a name="l00204"></a>00204 <a class="code" href="def_8h.html#696774cc2f758448c5ab10c2dd786c9d" title="The state of a connection context.">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="l00205"></a>00205 
<a name="l00214"></a>00214 <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" title="Some special flags for contexts.">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="l00215"></a>00215 
<a name="l00217"></a>00217 <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="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#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="l00221"></a>00221 
<a name="l00225"></a>00225 <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="l00226"></a>00226 
<a name="l00228"></a>00228 <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="l00229"></a>00229 
<a name="l00231"></a>00231 <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="l00232"></a>00232 
<a name="l00234"></a>00234 <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="l00235"></a>00235 
<a name="l00237"></a>00237 <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="l00238"></a>00238 
<a name="l00240"></a>00240 <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="l00241"></a>00241 
<a name="l00243"></a>00243 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="l00244"></a>00244 
<a name="l00246"></a>00246 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="l00247"></a>00247 
<a name="l00253"></a>00253 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="context_8h.html#c119e0902d7c3bf0a89f11ff10f9dc37" title="Update the property list of the client, adding new entries.">pa_context_proplist_update</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="proplist_8h.html#4b73cd513add16a26378a7941a9f1fd9" title="Update mode enum for pa_proplist_update().">pa_update_mode_t</a> mode, <a class="code" href="proplist_8h.html#cdf756a6014b6fae3b358b2c934c3426" title="A property list object.">pa_proplist</a> *p, <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="l00254"></a>00254 
<a name="l00256"></a>00256 <a class="code" href="operation_8h.html#5614a07f2e7a129e4cb16596ed452a0c" title="An asynchronous operation object.">pa_operation</a> *<a class="code" href="context_8h.html#e81552ae12b6609cd086e2c17b96299c" title="Update the property list of the client, remove entries.">pa_context_proplist_remove</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> *<span class="keyword">const</span> keys[], <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="l00257"></a>00257 
<a name="l00261"></a>00261 uint32_t <a class="code" href="context_8h.html#406a75aeea9d97dcaa217d150b557581" title="Return the client index this context is identified in the server with.">pa_context_get_index</a>(<a class="code" href="context_8h.html#ff56e9b3dd442a88227da084bb5c380a" title="An opaque connection context to a daemon.">pa_context</a> *s);
<a name="l00262"></a>00262 
<a name="l00263"></a>00263 PA_C_DECL_END
<a name="l00264"></a>00264 
<a name="l00265"></a>00265 <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>