Sophie

Sophie

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

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>Resource limits related code</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>Resource limits related code<br>
<small>
[<a class="el" href="group__DBusInternals.html">D-BUS internal implementation details</a>]</small>
</h1><a class="el" href="structDBusCounter.html">DBusCounter</a> and other stuff related to resource limits. 
<a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__DBusResources.html#a0">_dbus_counter_new</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Creates a new <a class="el" href="structDBusCounter.html">DBusCounter</a>.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__DBusResources.html#a1">_dbus_counter_ref</a> (<a class="el" href="structDBusCounter.html">DBusCounter</a> *counter)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Increments refcount of the counter.</em> <a href="#a1">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__DBusResources.html#a2">_dbus_counter_unref</a> (<a class="el" href="structDBusCounter.html">DBusCounter</a> *counter)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Decrements refcount of the counter and possibly finalizes the counter.</em> <a href="#a2">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__DBusResources.html#a3">_dbus_counter_adjust</a> (<a class="el" href="structDBusCounter.html">DBusCounter</a> *counter, long delta)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Adjusts the value of the counter by the given delta which may be positive or negative.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>long&nbsp;</td><td valign=bottom><a class="el" href="group__DBusResources.html#a4">_dbus_counter_get_value</a> (<a class="el" href="structDBusCounter.html">DBusCounter</a> *counter)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the current value of the counter.</em> <a href="#a4">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__DBusResources.html#a5">_dbus_counter_set_notify</a> (<a class="el" href="structDBusCounter.html">DBusCounter</a> *counter, long guard_value, DBusCounterNotifyFunction function, void *user_data)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the notify function for this counter; the notify function is called whenever the counter's value crosses the guard value in either direction (moving up, or moving down).</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="structDBusCounter.html">DBusCounter</a> and other stuff related to resource limits.
<p>

<p>
 Types and functions related to tracking resource limits, such as the maximum amount of memory a connection can use for messages, etc. <hr><h2>Function Documentation</h2>
<a name="a3" doxytag="dbus-resources.c::_dbus_counter_adjust"></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_counter_adjust </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>counter</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>long&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>delta</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>
Adjusts the value of the counter by the given delta which may be positive or negative.
<p>
Calls the notify function from <a class="el" href="group__DBusResources.html#a5">_dbus_counter_set_notify</a>() if that function has been specified.<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>counter</em>&nbsp;</td><td>
the counter </td></tr>
<tr><td valign=top><em>delta</em>&nbsp;</td><td>
value to add to the counter's current value </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00141">141</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00060">DBusCounter::notify_data</a>, <a class="el" href="dbus-resources_8c-source.html#l00059">DBusCounter::notify_function</a>, <a class="el" href="dbus-resources_8c-source.html#l00058">DBusCounter::notify_guard_value</a>, and <a class="el" href="dbus-resources_8c-source.html#l00056">DBusCounter::value</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="dbus-resources.c::_dbus_counter_get_value"></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"> long _dbus_counter_get_value </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>counter</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Gets the current value of the counter.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>counter</em>&nbsp;</td><td>
the counter </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
its current value </dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00168">168</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00056">DBusCounter::value</a>.    </td>
  </tr>
</table>
<a name="a0" doxytag="dbus-resources.c::_dbus_counter_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="structDBusCounter.html">DBusCounter</a>* _dbus_counter_new </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Creates a new <a class="el" href="structDBusCounter.html">DBusCounter</a>.
<p>
<a class="el" href="structDBusCounter.html">DBusCounter</a> is used to count usage of some resource such as memory.
<p>
<dl compact><dt><b>
Returns: </b><dd>
new counter or <a class="el" href="group__DBusMacros.html#a4">NULL</a> on failure </dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00077">77</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00060">DBusCounter::notify_data</a>, <a class="el" href="dbus-resources_8c-source.html#l00059">DBusCounter::notify_function</a>, <a class="el" href="dbus-resources_8c-source.html#l00058">DBusCounter::notify_guard_value</a>, <a class="el" href="dbus-resources_8c-source.html#l00054">DBusCounter::refcount</a>, and <a class="el" href="dbus-resources_8c-source.html#l00056">DBusCounter::value</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="dbus-resources.c::_dbus_counter_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="structDBusCounter.html">DBusCounter</a>* _dbus_counter_ref </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>counter</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Increments refcount of the counter.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>counter</em>&nbsp;</td><td>
the counter </td></tr>
</table>
</dl><dl compact><dt><b>
Returns: </b><dd>
the counter </dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00102">102</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00054">DBusCounter::refcount</a>.    </td>
  </tr>
</table>
<a name="a5" doxytag="dbus-resources.c::_dbus_counter_set_notify"></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_counter_set_notify </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>counter</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>long&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>guard_value</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>DBusCounterNotifyFunction&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>function</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>void *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>user_data</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>
Sets the notify function for this counter; the notify function is called whenever the counter's value crosses the guard value in either direction (moving up, or moving down).
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>counter</em>&nbsp;</td><td>
the counter </td></tr>
<tr><td valign=top><em>guard_value</em>&nbsp;</td><td>
the value we're notified if the counter crosses </td></tr>
<tr><td valign=top><em>function</em>&nbsp;</td><td>
function to call in order to notify </td></tr>
<tr><td valign=top><em>user_data</em>&nbsp;</td><td>
data to pass to the function </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00184">184</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00060">DBusCounter::notify_data</a>, <a class="el" href="dbus-resources_8c-source.html#l00059">DBusCounter::notify_function</a>, and <a class="el" href="dbus-resources_8c-source.html#l00058">DBusCounter::notify_guard_value</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="dbus-resources.c::_dbus_counter_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_counter_unref </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structDBusCounter.html">DBusCounter</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>counter</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
Decrements refcount of the counter and possibly finalizes the counter.
<p>
<dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>counter</em>&nbsp;</td><td>
the counter </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="dbus-resources_8c-source.html#l00118">118</a> of file <a class="el" href="dbus-resources_8c-source.html">dbus-resources.c</a>.
<p>
References <a class="el" href="dbus-resources_8c-source.html#l00054">DBusCounter::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>