<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>DBusTimeout implementation details</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.15 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>DBusTimeout implementation details<br> <small> [<a class="el" href="group__DBusInternals.html">D-BUS internal implementation details</a>]</small> </h1>implementation details for <a class="el" href="structDBusTimeout.html">DBusTimeout</a>. <a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Data Structures</h2></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structDBusTimeout.html">DBusTimeout</a></td></tr> <tr><td> </td><td><font size=-1><em>Internals of DBusTimeout.</em> <a href="structDBusTimeout.html#_details">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a></td></tr> <tr><td> </td><td><font size=-1><em>DBusTimeoutList implementation details.</em> <a href="structDBusTimeoutList.html#_details">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Typedefs</h2></td></tr> <tr><td nowrap align=right valign=top>typedef DBusTimeoutList </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a11">DBusTimeoutList</a></td></tr> <tr><td> </td><td><font size=-1><em>Opaque data type representing a list of timeouts and a set of DBusAddTimeoutFunction/DBusRemoveTimeoutFunction.</em> <a href="#a11">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a0">_dbus_timeout_new</a> (int interval, DBusTimeoutHandler handler, void *data, <a class="el" href="group__DBusMemory.html#a8">DBusFreeFunction</a> free_data_function)</td></tr> <tr><td> </td><td><font size=-1><em>Creates a new <a class="el" href="structDBusTimeout.html">DBusTimeout</a>, enabled by default.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a1">_dbus_timeout_ref</a> (<a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr> <tr><td> </td><td><font size=-1><em>Increments the reference count of a <a class="el" href="structDBusTimeout.html">DBusTimeout</a> object.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a2">_dbus_timeout_unref</a> (<a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr> <tr><td> </td><td><font size=-1><em>Decrements the reference count of a <a class="el" href="structDBusTimeout.html">DBusTimeout</a> object and finalizes the object if the count reaches zero.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a3">_dbus_timeout_set_interval</a> (<a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout, int interval)</td></tr> <tr><td> </td><td><font size=-1><em>Changes the timeout interval.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a4">_dbus_timeout_set_enabled</a> (<a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout, <a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> enabled)</td></tr> <tr><td> </td><td><font size=-1><em>Changes the timeout's enabled-ness.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a5">_dbus_timeout_list_new</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Creates a new timeout list.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a6">_dbus_timeout_list_free</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *timeout_list)</td></tr> <tr><td> </td><td><font size=-1><em>Frees a <a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a>.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a7">_dbus_timeout_list_set_functions</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *timeout_list, DBusAddTimeoutFunction add_function, DBusRemoveTimeoutFunction remove_function, DBusTimeoutToggledFunction toggled_function, void *data, <a class="el" href="group__DBusMemory.html#a8">DBusFreeFunction</a> free_data_function)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the timeout functions.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a8">_dbus_timeout_list_add_timeout</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *timeout_list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr> <tr><td> </td><td><font size=-1><em>Adds a new timeout to the timeout list, invoking the application DBusAddTimeoutFunction if appropriate.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a9">_dbus_timeout_list_remove_timeout</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *timeout_list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout)</td></tr> <tr><td> </td><td><font size=-1><em>Removes a timeout from the timeout list, invoking the application's DBusRemoveTimeoutFunction if appropriate.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__DBusTimeoutInternals.html#a10">_dbus_timeout_list_toggle_timeout</a> (<a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> *timeout_list, <a class="el" href="structDBusTimeout.html">DBusTimeout</a> *timeout, <a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> enabled)</td></tr> <tr><td> </td><td><font size=-1><em>Sets a timeout to the given enabled state, invoking the application's DBusTimeoutToggledFunction if appropriate.</em> <a href="#a10">More...</a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> implementation details for <a class="el" href="structDBusTimeout.html">DBusTimeout</a>. <p> <p> <hr><h2>Typedef Documentation</h2> <a name="a11" doxytag="dbus-timeout.h::DBusTimeoutList"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> DBusTimeoutList </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Opaque data type representing a list of timeouts and a set of DBusAddTimeoutFunction/DBusRemoveTimeoutFunction. <p> Automatically handles removing/re-adding timeouts when the DBusAddTimeoutFunction is updated or changed. Holds a reference count to each timeout. <p> Definition at line <a class="el" href="dbus-timeout_8h-source.html#l00031">31</a> of file <a class="el" href="dbus-timeout_8h-source.html">dbus-timeout.h</a>. </td> </tr> </table> <hr><h2>Function Documentation</h2> <a name="a8" doxytag="dbus-timeout.c::_dbus_timeout_list_add_timeout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> _dbus_timeout_list_add_timeout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td> <td class="mdname" nowrap> <em>timeout_list</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname" nowrap> <em>timeout</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Adds a new timeout to the timeout list, invoking the application DBusAddTimeoutFunction if appropriate. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout_list</em> </td><td> the timeout list. </td></tr> <tr><td valign=top><em>timeout</em> </td><td> the timeout to add. </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> <a class="el" href="group__DBusMacros.html#a2">TRUE</a> on success, <a class="el" href="group__DBusMacros.html#a3">FALSE</a> If no memory. </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00309">309</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00179">DBusTimeoutList::add_timeout_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00182">DBusTimeoutList::timeout_data</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00177">DBusTimeoutList::timeouts</a>. </td> </tr> </table> <a name="a6" doxytag="dbus-timeout.c::_dbus_timeout_list_free"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_list_free </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td> <td class="mdname1" valign="top" nowrap> <em>timeout_list</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Frees a <a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a>. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout_list</em> </td><td> the timeout list. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00210">210</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00177">DBusTimeoutList::timeouts</a>. </td> </tr> </table> <a name="a5" doxytag="dbus-timeout.c::_dbus_timeout_list_new"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a>* _dbus_timeout_list_new </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Creates a new timeout list. <p> Returns <a class="el" href="group__DBusMacros.html#a4">NULL</a> if insufficient memory exists. <p> <dl compact><dt><b> Returns: </b><dd> the new timeout list, or <a class="el" href="group__DBusMacros.html#a4">NULL</a> on failure. </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00193">193</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. </td> </tr> </table> <a name="a9" doxytag="dbus-timeout.c::_dbus_timeout_list_remove_timeout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_list_remove_timeout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td> <td class="mdname" nowrap> <em>timeout_list</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname" nowrap> <em>timeout</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Removes a timeout from the timeout list, invoking the application's DBusRemoveTimeoutFunction if appropriate. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout_list</em> </td><td> the timeout list. </td></tr> <tr><td valign=top><em>timeout</em> </td><td> the timeout to remove. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00339">339</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00180">DBusTimeoutList::remove_timeout_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00182">DBusTimeoutList::timeout_data</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00177">DBusTimeoutList::timeouts</a>. </td> </tr> </table> <a name="a7" doxytag="dbus-timeout.c::_dbus_timeout_list_set_functions"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> _dbus_timeout_list_set_functions </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td> <td class="mdname" nowrap> <em>timeout_list</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>DBusAddTimeoutFunction </td> <td class="mdname" nowrap> <em>add_function</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>DBusRemoveTimeoutFunction </td> <td class="mdname" nowrap> <em>remove_function</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>DBusTimeoutToggledFunction </td> <td class="mdname" nowrap> <em>toggled_function</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>data</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__DBusMemory.html#a8">DBusFreeFunction</a> </td> <td class="mdname" nowrap> <em>free_data_function</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the timeout functions. <p> This function is the "backend" for <a class="el" href="group__DBusConnection.html#a37">dbus_connection_set_timeout_functions</a>().<dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout_list</em> </td><td> the timeout list </td></tr> <tr><td valign=top><em>add_function</em> </td><td> the add timeout function. </td></tr> <tr><td valign=top><em>remove_function</em> </td><td> the remove timeout function. </td></tr> <tr><td valign=top><em>toggled_function</em> </td><td> toggle notify function, or <a class="el" href="group__DBusMacros.html#a4">NULL</a> </td></tr> <tr><td valign=top><em>data</em> </td><td> the data for those functions. </td></tr> <tr><td valign=top><em>free_data_function</em> </td><td> the function to free the data. </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> <a class="el" href="group__DBusMacros.html#a3">FALSE</a> if no memory </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00238">238</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00179">DBusTimeoutList::add_timeout_function</a>, <a class="el" href="dbus-list_8h-source.html#l00039">DBusList::data</a>, <a class="el" href="dbus-timeout_8c-source.html#l00180">DBusTimeoutList::remove_timeout_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00182">DBusTimeoutList::timeout_data</a>, <a class="el" href="dbus-timeout_8c-source.html#l00183">DBusTimeoutList::timeout_free_data_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00181">DBusTimeoutList::timeout_toggled_function</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00177">DBusTimeoutList::timeouts</a>. </td> </tr> </table> <a name="a10" doxytag="dbus-timeout.c::_dbus_timeout_list_toggle_timeout"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_list_toggle_timeout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeoutList.html">DBusTimeoutList</a> * </td> <td class="mdname" nowrap> <em>timeout_list</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname" nowrap> <em>timeout</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> </td> <td class="mdname" nowrap> <em>enabled</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets a timeout to the given enabled state, invoking the application's DBusTimeoutToggledFunction if appropriate. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout_list</em> </td><td> the timeout list. </td></tr> <tr><td valign=top><em>timeout</em> </td><td> the timeout to toggle. </td></tr> <tr><td valign=top><em>enabled</em> </td><td> <a class="el" href="group__DBusMacros.html#a2">TRUE</a> to enable </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00361">361</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00050">DBusTimeout::enabled</a>, <a class="el" href="dbus-timeout_8c-source.html#l00182">DBusTimeoutList::timeout_data</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00181">DBusTimeoutList::timeout_toggled_function</a>. </td> </tr> </table> <a name="a0" doxytag="dbus-timeout.c::_dbus_timeout_new"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="structDBusTimeout.html">DBusTimeout</a>* _dbus_timeout_new </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>interval</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>DBusTimeoutHandler </td> <td class="mdname" nowrap> <em>handler</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>data</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__DBusMemory.html#a8">DBusFreeFunction</a> </td> <td class="mdname" nowrap> <em>free_data_function</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Creates a new <a class="el" href="structDBusTimeout.html">DBusTimeout</a>, enabled by default. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>interval</em> </td><td> the timeout interval in milliseconds. </td></tr> <tr><td valign=top><em>handler</em> </td><td> function to call when the timeout occurs. </td></tr> <tr><td valign=top><em>data</em> </td><td> data to pass to the handler </td></tr> <tr><td valign=top><em>free_data_function</em> </td><td> function to be called to free the data. </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> the new <a class="el" href="structDBusTimeout.html">DBusTimeout</a> object, </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00062">62</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00050">DBusTimeout::enabled</a>, <a class="el" href="dbus-timeout_8c-source.html#l00046">DBusTimeout::free_handler_data_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00044">DBusTimeout::handler</a>, <a class="el" href="dbus-timeout_8c-source.html#l00045">DBusTimeout::handler_data</a>, <a class="el" href="dbus-timeout_8c-source.html#l00042">DBusTimeout::interval</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00041">DBusTimeout::refcount</a>. </td> </tr> </table> <a name="a1" doxytag="dbus-timeout.c::_dbus_timeout_ref"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="structDBusTimeout.html">DBusTimeout</a>* _dbus_timeout_ref </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname1" valign="top" nowrap> <em>timeout</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Increments the reference count of a <a class="el" href="structDBusTimeout.html">DBusTimeout</a> object. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout</em> </td><td> the timeout object. </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> the timeout object. </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00092">92</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00041">DBusTimeout::refcount</a>. </td> </tr> </table> <a name="a4" doxytag="dbus-timeout.c::_dbus_timeout_set_enabled"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_set_enabled </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname" nowrap> <em>timeout</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="group__DBusTypes.html#a2">dbus_bool_t</a> </td> <td class="mdname" nowrap> <em>enabled</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Changes the timeout's enabled-ness. <p> Note that you should use <a class="el" href="group__DBusConnectionInternals.html#a22">_dbus_connection_toggle_timeout</a>() etc. instead, if the timeout is passed out to an application main loop. i.e. you can't use this function in the D-BUS library, it's only used in the message bus daemon implementation.<dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout</em> </td><td> the timeout </td></tr> <tr><td valign=top><em>enabled</em> </td><td> <a class="el" href="group__DBusMacros.html#a2">TRUE</a> if timeout should be enabled. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00152">152</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00050">DBusTimeout::enabled</a>. </td> </tr> </table> <a name="a3" doxytag="dbus-timeout.c::_dbus_timeout_set_interval"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_set_interval </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname" nowrap> <em>timeout</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>interval</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Changes the timeout interval. <p> Note that you have to disable and re-enable the timeout using the timeout toggle function (<a class="el" href="group__DBusConnectionInternals.html#a22">_dbus_connection_toggle_timeout</a>() etc.) to notify the application of this change.<dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout</em> </td><td> the timeout </td></tr> <tr><td valign=top><em>interval</em> </td><td> the new interval </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00133">133</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00042">DBusTimeout::interval</a>. </td> </tr> </table> <a name="a2" doxytag="dbus-timeout.c::_dbus_timeout_unref"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void _dbus_timeout_unref </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structDBusTimeout.html">DBusTimeout</a> * </td> <td class="mdname1" valign="top" nowrap> <em>timeout</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Decrements the reference count of a <a class="el" href="structDBusTimeout.html">DBusTimeout</a> object and finalizes the object if the count reaches zero. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>timeout</em> </td><td> the timeout object. </td></tr> </table> </dl> <p> Definition at line <a class="el" href="dbus-timeout_8c-source.html#l00106">106</a> of file <a class="el" href="dbus-timeout_8c-source.html">dbus-timeout.c</a>. <p> References <a class="el" href="dbus-timeout_8c-source.html#l00046">DBusTimeout::free_handler_data_function</a>, <a class="el" href="dbus-timeout_8c-source.html#l00045">DBusTimeout::handler_data</a>, and <a class="el" href="dbus-timeout_8c-source.html#l00041">DBusTimeout::refcount</a>. </td> </tr> </table> <hr><address align="right"><small>Generated on Wed Jun 9 05:01:28 2004 for D-BUS by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address> </body> </html>