Functions | |
DBusCounter * | _dbus_counter_new (void) |
Creates a new DBusCounter. More... | |
DBusCounter * | _dbus_counter_ref (DBusCounter *counter) |
Increments refcount of the counter. More... | |
void | _dbus_counter_unref (DBusCounter *counter) |
Decrements refcount of the counter and possibly finalizes the counter. More... | |
void | _dbus_counter_adjust (DBusCounter *counter, long delta) |
Adjusts the value of the counter by the given delta which may be positive or negative. More... | |
long | _dbus_counter_get_value (DBusCounter *counter) |
Gets the current value of the counter. More... | |
void | _dbus_counter_set_notify (DBusCounter *counter, long guard_value, DBusCounterNotifyFunction function, void *user_data) |
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). More... |
Types and functions related to tracking resource limits, such as the maximum amount of memory a connection can use for messages, etc.
|
Adjusts the value of the counter by the given delta which may be positive or negative. Calls the notify function from _dbus_counter_set_notify() if that function has been specified.
Definition at line 141 of file dbus-resources.c. References DBusCounter::notify_data, DBusCounter::notify_function, DBusCounter::notify_guard_value, and DBusCounter::value. |
|
Gets the current value of the counter.
Definition at line 168 of file dbus-resources.c. References DBusCounter::value. |
|
Creates a new DBusCounter. DBusCounter is used to count usage of some resource such as memory.
Definition at line 77 of file dbus-resources.c. References DBusCounter::notify_data, DBusCounter::notify_function, DBusCounter::notify_guard_value, DBusCounter::refcount, and DBusCounter::value. |
|
Increments refcount of the counter.
Definition at line 102 of file dbus-resources.c. References DBusCounter::refcount. |
|
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).
Definition at line 184 of file dbus-resources.c. References DBusCounter::notify_data, DBusCounter::notify_function, and DBusCounter::notify_guard_value. |
|
Decrements refcount of the counter and possibly finalizes the counter.
Definition at line 118 of file dbus-resources.c. References DBusCounter::refcount. |