index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
Resource limits related code
[
group__DBusInternals.html
D-BUS internal implementation details
]
structDBusCounter.html
DBusCounter
and other stuff related to resource limits.
#_details
More...
Functions
structDBusCounter.html
DBusCounter
*
group__DBusResources.html#ga0
_dbus_counter_new
(void)
Creates a new
structDBusCounter.html
DBusCounter
.
#ga0
structDBusCounter.html
DBusCounter
*
group__DBusResources.html#ga1
_dbus_counter_ref
(
structDBusCounter.html
DBusCounter
*counter)
Increments refcount of the counter.
#ga1
void
group__DBusResources.html#ga2
_dbus_counter_unref
(
structDBusCounter.html
DBusCounter
*counter)
Decrements refcount of the counter and possibly finalizes the counter.
#ga2
void
group__DBusResources.html#ga3
_dbus_counter_adjust
(
structDBusCounter.html
DBusCounter
*counter, long delta)
Adjusts the value of the counter by the given delta which may be positive or negative.
#ga3
long
group__DBusResources.html#ga4
_dbus_counter_get_value
(
structDBusCounter.html
DBusCounter
*counter)
Gets the current value of the counter.
#ga4
void
group__DBusResources.html#ga5
_dbus_counter_set_notify
(
structDBusCounter.html
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).
#ga5
Detailed Description
structDBusCounter.html
DBusCounter
and other stuff related to resource limits.
Types and functions related to tracking resource limits, such as the maximum amount of memory a connection can use for messages, etc.
Function Documentation
void _dbus_counter_adjust
(
structDBusCounter.html
DBusCounter
*
counter
,
long
delta
)
Adjusts the value of the counter by the given delta which may be positive or negative.
Calls the notify function from
group__DBusResources.html#ga5
_dbus_counter_set_notify()
if that function has been specified.
Parameters:
counter
the counter
delta
value to add to the counter's current value
Definition at line
dbus-resources_8c-source.html#l00141
141
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-resources_8c-source.html#l00060
DBusCounter::notify_data
,
dbus-resources_8c-source.html#l00059
DBusCounter::notify_function
,
dbus-resources_8c-source.html#l00058
DBusCounter::notify_guard_value
,
group__DBusMacros.html#ga4
NULL
, and
dbus-resources_8c-source.html#l00056
DBusCounter::value
.
Referenced by
dbus-message_8c-source.html#l00185
_dbus_message_add_size_counter_link()
, and
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
.
long _dbus_counter_get_value
(
structDBusCounter.html
DBusCounter
*
counter
)
Gets the current value of the counter.
Parameters:
counter
the counter
Returns:
its current value
Definition at line
dbus-resources_8c-source.html#l00168
168
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-resources_8c-source.html#l00056
DBusCounter::value
.
Referenced by
dbus-transport_8c-source.html#l00819
_dbus_transport_get_dispatch_status()
, and
dbus-connection_8c-source.html#l04672
dbus_connection_get_outgoing_size()
.
structDBusCounter.html
DBusCounter
* _dbus_counter_new
(
void
)
Creates a new
structDBusCounter.html
DBusCounter
.
structDBusCounter.html
DBusCounter
is used to count usage of some resource such as memory.
Returns:
new counter or
group__DBusMacros.html#ga4
NULL
on failure
Definition at line
dbus-resources_8c-source.html#l00077
77
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-memory_8h-source.html#l00041
dbus_new
,
dbus-resources_8c-source.html#l00060
DBusCounter::notify_data
,
dbus-resources_8c-source.html#l00059
DBusCounter::notify_function
,
dbus-resources_8c-source.html#l00058
DBusCounter::notify_guard_value
,
group__DBusMacros.html#ga4
NULL
,
dbus-resources_8c-source.html#l00054
DBusCounter::refcount
, and
dbus-resources_8c-source.html#l00056
DBusCounter::value
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
, and
dbus-transport_8c-source.html#l00091
_dbus_transport_init_base()
.
structDBusCounter.html
DBusCounter
* _dbus_counter_ref
(
structDBusCounter.html
DBusCounter
*
counter
)
Increments refcount of the counter.
Parameters:
counter
the counter
Returns:
the counter
Definition at line
dbus-resources_8c-source.html#l00102
102
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
, and
dbus-resources_8c-source.html#l00054
DBusCounter::refcount
.
Referenced by
dbus-message_8c-source.html#l00221
_dbus_message_add_size_counter()
.
void _dbus_counter_set_notify
(
structDBusCounter.html
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).
Parameters:
counter
the counter
guard_value
the value we're notified if the counter crosses
function
function to call in order to notify
user_data
data to pass to the function
Definition at line
dbus-resources_8c-source.html#l00184
184
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-resources_8c-source.html#l00060
DBusCounter::notify_data
,
dbus-resources_8c-source.html#l00059
DBusCounter::notify_function
, and
dbus-resources_8c-source.html#l00058
DBusCounter::notify_guard_value
.
Referenced by
dbus-transport_8c-source.html#l00186
_dbus_transport_finalize_base()
,
dbus-transport_8c-source.html#l00091
_dbus_transport_init_base()
, and
dbus-transport_8c-source.html#l00934
_dbus_transport_set_max_received_size()
.
void _dbus_counter_unref
(
structDBusCounter.html
DBusCounter
*
counter
)
Decrements refcount of the counter and possibly finalizes the counter.
Parameters:
counter
the counter
Definition at line
dbus-resources_8c-source.html#l00118
118
of file
dbus-resources_8c-source.html
dbus-resources.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-memory_8c-source.html#l00612
dbus_free()
, and
dbus-resources_8c-source.html#l00054
DBusCounter::refcount
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
,
dbus-message_8c-source.html#l00245
_dbus_message_remove_size_counter()
,
dbus-transport_8c-source.html#l00186
_dbus_transport_finalize_base()
,
dbus-transport_8c-source.html#l00091
_dbus_transport_init_base()
, and
dbus-connection_8c-source.html#l02128
dbus_connection_free_preallocated_send()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
