From 3df260c07102745c5606c313af862558f105f83e Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 18 Apr 2003 04:18:57 +0000 Subject: 2003-04-18 Havoc Pennington * glib/dbus-gmain.c: adapt to watch changes * bus/bus.c, bus/activation.c, etc.: adjust to watch changes * dbus/dbus-server.h: remove dbus_server_handle_watch * dbus/dbus-connection.h: remove dbus_connection_handle_watch * dbus/dbus-watch.c (dbus_watch_handle): change DBusWatch to work like DBusTimeout, so we don't need dbus_connection_handle_watch etc. --- dbus/dbus-server.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'dbus/dbus-server.c') diff --git a/dbus/dbus-server.c b/dbus/dbus-server.c index d739f28e..dd33804c 100644 --- a/dbus/dbus-server.c +++ b/dbus/dbus-server.c @@ -609,34 +609,6 @@ dbus_server_set_timeout_functions (DBusServer *server, data, free_data_function); } -/** - * Called to notify the server when a previously-added watch - * is ready for reading or writing, or has an exception such - * as a hangup. - * - * If this function returns #FALSE, then the file descriptor may still - * be ready for reading or writing, but more memory is needed in order - * to do the reading or writing. If you ignore the #FALSE return, your - * application may spin in a busy loop on the file descriptor until - * memory becomes available, but nothing more catastrophic should - * happen. - * - * @param server the server. - * @param watch the watch. - * @param condition the current condition of the file descriptors being watched. - */ -dbus_bool_t -dbus_server_handle_watch (DBusServer *server, - DBusWatch *watch, - unsigned int condition) -{ - _dbus_assert (server->vtable->handle_watch != NULL); - - _dbus_watch_sanitize_condition (watch, &condition); - - return (* server->vtable->handle_watch) (server, watch, condition); -} - /** * Sets the authentication mechanisms that this server offers * to clients, as a list of SASL mechanisms. This function -- cgit