diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-19 16:16:24 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-19 16:16:24 +0000 |
commit | 983200f912f41ba75a873c011bfbcd3b0285bf4c (patch) | |
tree | 794516f892061dbbcfb036110d69850885edda3d /bus/connection.h | |
parent | d3fb6f35716ff1d6f6644dea2043d539007811de (diff) |
2003-04-19 Havoc Pennington <hp@pobox.com>
* bus/driver.c (bus_driver_handle_hello): check limits and
return an error if they are exceeded.
* bus/connection.c: maintain separate lists of active and inactive
connections, and a count of each. Maintain count of completed
connections per user. Implement code to check connection limits.
* dbus/dbus-list.c (_dbus_list_unlink): export
* bus/bus.c (bus_context_check_security_policy): enforce a maximum
number of bytes in the message queue for a connection
Diffstat (limited to 'bus/connection.h')
-rw-r--r-- | bus/connection.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bus/connection.h b/bus/connection.h index c429007b..0d4d3a10 100644 --- a/bus/connection.h +++ b/bus/connection.h @@ -40,12 +40,18 @@ dbus_bool_t bus_connections_setup_connection (BusConnections * void bus_connections_foreach (BusConnections *connections, BusConnectionForeachFunction function, void *data); +void bus_connections_foreach_active (BusConnections *connections, + BusConnectionForeachFunction function, + void *data); BusContext* bus_connections_get_context (BusConnections *connections); - -BusContext* bus_connection_get_context (DBusConnection *connection); +BusContext* bus_connection_get_context (DBusConnection *connection); BusConnections* bus_connection_get_connections (DBusConnection *connection); BusRegistry* bus_connection_get_registry (DBusConnection *connection); BusActivation* bus_connection_get_activation (DBusConnection *connection); +dbus_bool_t bus_connections_check_limits (BusConnections *connections, + DBusConnection *requesting_completion, + DBusError *error); + dbus_bool_t bus_connection_is_active (DBusConnection *connection); |