From a16e83f45d33ae5f3bd5966416c57c8ad4448ae8 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 24 Jan 2003 23:51:59 +0000 Subject: 2003-01-25 Anders Carlsson * bus/connection.c: (bus_connection_foreach): * bus/connection.h: Add new bus_connection_foreach function. * bus/driver.c: (send_one_message), (bus_driver_broadcast_message): Add function that broadcasts a message to all clients. (bus_driver_send_service_created), (bus_driver_handle_hello), (bus_driver_send_welcome_message), (bus_driver_handle_list_services), (bus_driver_message_handler): Implement functions that take care of listing services, and notifying clients when new services are created. * bus/services.c: (bus_services_list): * bus/services.h: Add new function that returns an array of strings with the currently registered services. * glib/dbus-glib.h: * glib/dbus-gmain.c: Update copyright year. --- bus/connection.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bus/connection.c') diff --git a/bus/connection.c b/bus/connection.c index 4a805731..0fcfdbe2 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -224,3 +224,10 @@ bus_connection_get_name (DBusConnection *connection) return d->name; } + +void +bus_connection_foreach (BusConnectionForeachFunction function, + void *data) +{ + _dbus_list_foreach (&connections, function, data); +} -- cgit