From b3bd48edfc1aab0a9dc64bfa4c380d845d218e73 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 25 Apr 2003 23:50:34 +0000 Subject: 2003-04-25 Havoc Pennington test suite is slightly hosed at the moment, will fix soon * bus/connection.c (bus_connections_expire_incomplete): fix to properly disable the timeout when required (bus_connection_set_name): check whether we can remove incomplete connections timeout after we complete each connection. * dbus/dbus-mainloop.c (check_timeout): fix this up a bit, probably still broken. * bus/services.c (bus_registry_acquire_service): implement max number of services owned, and honor allow/deny rules on which services a connection can own. * bus/connection.c (bus_connection_get_policy): report errors here * bus/activation.c: implement limit on number of pending activations --- bus/connection.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bus/connection.h') diff --git a/bus/connection.h b/bus/connection.h index fe5a3769..ebfe2ad2 100644 --- a/bus/connection.h +++ b/bus/connection.h @@ -68,7 +68,7 @@ void bus_connection_remove_owned_service (DBusConnection *connection, BusService *service); void bus_connection_add_owned_service_link (DBusConnection *connection, DBusList *link); - +int bus_connection_get_n_services_owned (DBusConnection *connection); /* called by driver.c */ dbus_bool_t bus_connection_set_name (DBusConnection *connection, @@ -83,7 +83,8 @@ dbus_bool_t bus_connection_is_in_group (DBusConnection *connection, dbus_bool_t bus_connection_get_groups (DBusConnection *connection, unsigned long **groups, int *n_groups); -BusClientPolicy* bus_connection_get_policy (DBusConnection *connection); +BusClientPolicy* bus_connection_get_policy (DBusConnection *connection, + DBusError *error); /* transaction API so we can send or not send a block of messages as a whole */ -- cgit