<!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: Event Subscription</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 Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="main.html">main</a> » <a class="el" href="async.html">Asynchronous API</a> </div> </div> <div class="contents"> <h1><a class="anchor" name="subscribe">Event Subscription </a></h1><h2><a class="anchor" name="overv_sec"> Overview</a></h2> The application can be notified, asynchronously, whenever the internal layout of the server changes. Possible notifications are desribed in the <a class="el" href="def_8h.html#6bedfa147a9565383f1f44642cfef6a3">pa_subscription_event_type</a> and <a class="el" href="def_8h.html#d4e7f11f879e8c77ae5289145ecf6947">pa_subscription_mask</a> enumerations.<p> The application sets the notification mask using <a class="el" href="subscribe_8h.html#be684246fd5cb640b0199bcfe7f801b0" title="Enable event notification.">pa_context_subscribe()</a> and the function that will be called whenever a notification occurs using <a class="el" href="subscribe_8h.html#55281f798863e7b37594d347be7ad98c" title="Set the context specific call back function that is called whenever the state of...">pa_context_set_subscribe_callback()</a>. </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Mar 26 12:02:40 2008 for PulseAudio by <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>