summaryrefslogtreecommitdiffstats
path: root/bus/dispatch.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-01-25 20:53:53 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-01-25 20:53:53 +0000
commit39dd1fcee640b4a5a9abb453a9ccd5b7e099ba1c (patch)
tree152435396d67fa175d8a27ccb827f1bdb54917ba /bus/dispatch.h
parentfdddf7246da9ea6ce841146e2befe843aede0466 (diff)
2003-01-25 Anders Carlsson <andersca@codefactory.se>
* bus/Makefile.am: * bus/connection.c: (connection_disconnect_handler), (connection_watch_callback), (bus_connection_setup): * bus/dispatch.c: (send_one_message), (bus_dispatch_broadcast_message), (bus_dispatch_message_handler), (bus_dispatch_add_connection), (bus_dispatch_remove_connection): * bus/dispatch.h: * bus/driver.c: (bus_driver_send_service_deleted), (bus_driver_send_service_created), (bus_driver_handle_hello), (bus_driver_send_welcome_message), (bus_driver_handle_list_services), (bus_driver_remove_connection), (bus_driver_handle_message): * bus/driver.h: Refactor code, put the message dispatching in its own file. Use _DBUS_HANDLE_OOM. Also send ServiceDeleted messages when a client is disconnected.
Diffstat (limited to 'bus/dispatch.h')
-rw-r--r--bus/dispatch.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/bus/dispatch.h b/bus/dispatch.h
new file mode 100644
index 00000000..2fe3479c
--- /dev/null
+++ b/bus/dispatch.h
@@ -0,0 +1,34 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* dispatch.h Message dispatcher
+ *
+ * Copyright (C) 2003 CodeFactory AB
+ *
+ * Licensed under the Academic Free License version 1.2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifndef BUS_DISPATCH_H
+#define BUS_DISPATCH_H
+
+#include <dbus/dbus.h>
+
+dbus_bool_t bus_dispatch_add_connection (DBusConnection *connection);
+void bus_dispatch_remove_connection (DBusConnection *connection);
+void bus_dispatch_broadcast_message (DBusMessage *message);
+
+
+#endif /* BUS_DISPATCH_H */