Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 926d2d1e3111287cee1b0a4fad4fb4f6 > files > 193

lib64dbus-1_3-devel-0.92-6mdv2007.0.x86_64.rpm

<!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>DBusMessageHandler 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> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>DBusMessageHandler implementation details<br>
<small>
[<a class="el" href="group__DBusInternals.html">D-BUS internal implementation details</a>]</small>
</h1><a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> private implementation details. 
<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 &nbsp;</td><td valign=bottom><a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Internals of DBusMessageHandler.</em> <a href="structDBusMessageHandler.html#_details">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="group__DBusTypes.html#a2">dbus_bool_t</a>&nbsp;</td><td valign=bottom><a class="el" href="group__DBusMessageHandlerInternals.html#a0">_dbus_message_handler_add_connection</a> (<a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *handler, <a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Add this connection to the list used by this message handler.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__DBusMessageHandlerInternals.html#a1">_dbus_message_handler_remove_connection</a> (<a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *handler, <a class="el" href="structDBusConnection.html">DBusConnection</a> *connection)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Reverses the effect of <a class="el" href="group__DBusMessageHandlerInternals.html#a0">_dbus_message_handler_add_connection</a>().</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>DBusHandlerResult&nbsp;</td><td valign=bottom><a class="el" href="group__DBusMessageHandlerInternals.html#a2">_dbus_message_handler_handle_message</a> (<a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *handler, <a class="el" href="structDBusConnection.html">DBusConnection</a> *connection, <a class="el" href="structDBusMessage.html">DBusMessage</a> *message)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Handles the given message, by dispatching the handler function for this <a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a>, if any.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> private implementation details.
<p>

<p>
 The guts of <a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> and its methods. <hr><h2>Function Documentation</h2>
<a name="a0" doxytag="dbus-message-handler.c::_dbus_message_handler_add_connection"></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_message_handler_add_connection </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>handler</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>connection</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add this connection to the list used by this message handler.
<p>
When the message handler goes away, the connection will be notified.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>handler</em>&nbsp;</td><td>
the message handler </td></tr>
<tr><td valign=top><em>connection</em>&nbsp;</td><td>
the connection </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
<a class="el" href="group__DBusMacros.html#a3">FALSE</a> if not enough memory </dl>
<p>
Definition at line <a class="el" href="dbus-message-handler_8c-source.html#l00069">69</a> of file <a class="el" href="dbus-message-handler_8c-source.html">dbus-message-handler.c</a>.
<p>
References <a class="el" href="dbus-message-handler_8c-source.html#l00056">DBusMessageHandler::connections</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="dbus-message-handler.c::_dbus_message_handler_handle_message"></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"> DBusHandlerResult _dbus_message_handler_handle_message </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>handler</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>connection</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusMessage.html">DBusMessage</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>message</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Handles the given message, by dispatching the handler function for this <a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a>, if any.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>handler</em>&nbsp;</td><td>
the handler </td></tr>
<tr><td valign=top><em>connection</em>&nbsp;</td><td>
the connection that received the message </td></tr>
<tr><td valign=top><em>message</em>&nbsp;</td><td>
the message</td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
what to do with the message </dl>
<p>
Definition at line <a class="el" href="dbus-message-handler_8c-source.html#l00115">115</a> of file <a class="el" href="dbus-message-handler_8c-source.html">dbus-message-handler.c</a>.
<p>
References <a class="el" href="dbus-message-handler_8c-source.html#l00052">DBusMessageHandler::function</a>, and <a class="el" href="dbus-message-handler_8c-source.html#l00053">DBusMessageHandler::user_data</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="dbus-message-handler.c::_dbus_message_handler_remove_connection"></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_message_handler_remove_connection </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusMessageHandler.html">DBusMessageHandler</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>handler</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="structDBusConnection.html">DBusConnection</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>connection</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Reverses the effect of <a class="el" href="group__DBusMessageHandlerInternals.html#a0">_dbus_message_handler_add_connection</a>().
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>handler</em>&nbsp;</td><td>
the message handler </td></tr>
<tr><td valign=top><em>connection</em>&nbsp;</td><td>
the connection </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-message-handler_8c-source.html#l00094">94</a> of file <a class="el" href="dbus-message-handler_8c-source.html">dbus-message-handler.c</a>.
<p>
References <a class="el" href="dbus-message-handler_8c-source.html#l00056">DBusMessageHandler::connections</a>.    </td>
  </tr>
</table>
<hr><address align="right"><small>Generated on Wed Jun 2 06:01:35 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>