<!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.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>PulseAudio: operation.h Source File</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="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">PulseAudio  <span id="projectnumber">10.0.0-1.1.mga6</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',false,false,'search.php','Search'); }); </script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('operation_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">operation.h</div> </div> </div><!--header--> <div class="contents"> <a href="operation_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef foooperationhfoo</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define foooperationhfoo</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/***</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> This file is part of PulseAudio.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright 2004-2006 Lennart Poettering</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> PulseAudio is free software; you can redistribute it and/or modify</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> it under the terms of the GNU Lesser General Public License as published</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> by the Free Software Foundation; either version 2.1 of the License,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> or (at your option) any later version.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> PulseAudio is distributed in the hope that it will be useful, but</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> General Public License for more details.</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">***/</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <pulse/cdecl.h></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="def_8h.html">pulse/def.h</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="version_8h.html">pulse/version.h</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> PA_C_DECL_BEGIN</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c"> 33</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> <a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="operation_8h.html#a17b3ad7cd9302460790fe3bd194f0d59"> 36</a></span> <span class="keyword">typedef</span> void (*<a class="code" href="operation_8h.html#a17b3ad7cd9302460790fe3bd194f0d59">pa_operation_notify_cb_t</a>) (<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o, <span class="keywordtype">void</span> *userdata);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *<a class="code" href="operation_8h.html#a7a3c7d92ccff6291242c5ba44e98d648">pa_operation_ref</a>(<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">void</span> <a class="code" href="operation_8h.html#a8d2ef9bb2ff961ee31675882bf125227">pa_operation_unref</a>(<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">void</span> <a class="code" href="operation_8h.html#a2629761f072c1ffa8114dd85220768f6">pa_operation_cancel</a>(<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <a class="code" href="def_8h.html#a7690ad935f83aee30828308c8e63bda4">pa_operation_state_t</a> <a class="code" href="operation_8h.html#acabeaea114e87658e1dadc214d7a2c35">pa_operation_get_state</a>(<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">void</span> <a class="code" href="operation_8h.html#aa4ed26ddfbe9c2d5adbc81cf9cc8f8f7">pa_operation_set_state_callback</a>(<a class="code" href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a> *o, <a class="code" href="operation_8h.html#a17b3ad7cd9302460790fe3bd194f0d59">pa_operation_notify_cb_t</a> cb, <span class="keywordtype">void</span> *userdata);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> PA_C_DECL_END</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="def_8h_html_a7690ad935f83aee30828308c8e63bda4"><div class="ttname"><a href="def_8h.html#a7690ad935f83aee30828308c8e63bda4">pa_operation_state_t</a></div><div class="ttdeci">enum pa_operation_state pa_operation_state_t</div><div class="ttdoc">The state of an operation. </div></div> <div class="ttc" id="def_8h_html"><div class="ttname"><a href="def_8h.html">def.h</a></div><div class="ttdoc">Global definitions. </div></div> <div class="ttc" id="operation_8h_html_a5614a07f2e7a129e4cb16596ed452a0c"><div class="ttname"><a href="operation_8h.html#a5614a07f2e7a129e4cb16596ed452a0c">pa_operation</a></div><div class="ttdeci">struct pa_operation pa_operation</div><div class="ttdoc">An asynchronous operation object. </div><div class="ttdef"><b>Definition:</b> operation.h:33</div></div> <div class="ttc" id="operation_8h_html_acabeaea114e87658e1dadc214d7a2c35"><div class="ttname"><a href="operation_8h.html#acabeaea114e87658e1dadc214d7a2c35">pa_operation_get_state</a></div><div class="ttdeci">pa_operation_state_t pa_operation_get_state(pa_operation *o)</div><div class="ttdoc">Return the current status of the operation. </div></div> <div class="ttc" id="operation_8h_html_a2629761f072c1ffa8114dd85220768f6"><div class="ttname"><a href="operation_8h.html#a2629761f072c1ffa8114dd85220768f6">pa_operation_cancel</a></div><div class="ttdeci">void pa_operation_cancel(pa_operation *o)</div><div class="ttdoc">Cancel the operation. </div></div> <div class="ttc" id="operation_8h_html_a7a3c7d92ccff6291242c5ba44e98d648"><div class="ttname"><a href="operation_8h.html#a7a3c7d92ccff6291242c5ba44e98d648">pa_operation_ref</a></div><div class="ttdeci">pa_operation * pa_operation_ref(pa_operation *o)</div><div class="ttdoc">Increase the reference count by one. </div></div> <div class="ttc" id="version_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div><div class="ttdoc">Define header version. </div></div> <div class="ttc" id="operation_8h_html_a8d2ef9bb2ff961ee31675882bf125227"><div class="ttname"><a href="operation_8h.html#a8d2ef9bb2ff961ee31675882bf125227">pa_operation_unref</a></div><div class="ttdeci">void pa_operation_unref(pa_operation *o)</div><div class="ttdoc">Decrease the reference count by one. </div></div> <div class="ttc" id="operation_8h_html_aa4ed26ddfbe9c2d5adbc81cf9cc8f8f7"><div class="ttname"><a href="operation_8h.html#aa4ed26ddfbe9c2d5adbc81cf9cc8f8f7">pa_operation_set_state_callback</a></div><div class="ttdeci">void pa_operation_set_state_callback(pa_operation *o, pa_operation_notify_cb_t cb, void *userdata)</div><div class="ttdoc">Set the callback function that is called when the operation state changes. </div></div> <div class="ttc" id="operation_8h_html_a17b3ad7cd9302460790fe3bd194f0d59"><div class="ttname"><a href="operation_8h.html#a17b3ad7cd9302460790fe3bd194f0d59">pa_operation_notify_cb_t</a></div><div class="ttdeci">void(* pa_operation_notify_cb_t)(pa_operation *o, void *userdata)</div><div class="ttdoc">A callback for operation state changes. </div><div class="ttdef"><b>Definition:</b> operation.h:36</div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_ec5b0a79aff2db41fe5d1b9326f09c28.html">pulse</a></li><li class="navelem"><a class="el" href="operation_8h.html">operation.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> </ul> </div> </body> </html>