summaryrefslogtreecommitdiffstats
path: root/bus/connection.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-01-24 23:51:59 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-01-24 23:51:59 +0000
commita16e83f45d33ae5f3bd5966416c57c8ad4448ae8 (patch)
tree255683e91ebf0f19bd737bf66161bf64c05e8f04 /bus/connection.h
parentdc6a61a15b2d9cdc6504753fa9eb0a718f99d6d8 (diff)
2003-01-25 Anders Carlsson <andersca@codefactory.se>
* 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.
Diffstat (limited to 'bus/connection.h')
-rw-r--r--bus/connection.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/bus/connection.h b/bus/connection.h
index 1a23867b..8a6b6641 100644
--- a/bus/connection.h
+++ b/bus/connection.h
@@ -27,6 +27,9 @@
#include <dbus/dbus.h>
#include "services.h"
+typedef void (* BusConnectionForeachFunction) (DBusConnection *connection,
+ void *data);
+
dbus_bool_t bus_connection_init (void);
dbus_bool_t bus_connection_setup (DBusConnection *connection);
@@ -38,9 +41,11 @@ void bus_connection_remove_owned_service (DBusConnection *connection,
BusService *service);
/* called by driver.c */
-dbus_bool_t bus_connection_set_name (DBusConnection *connection,
- const DBusString *name);
-const char *bus_connection_get_name (DBusConnection *connection);
+dbus_bool_t bus_connection_set_name (DBusConnection *connection,
+ const DBusString *name);
+const char *bus_connection_get_name (DBusConnection *connection);
+void bus_connection_foreach (BusConnectionForeachFunction function,
+ void *data);
#endif /* BUS_CONNECTION_H */