chiark / gitweb /
manager: properly return newly created job in transaction_add_job_and_dependencies()
[elogind.git] / dbus.h
diff --git a/dbus.h b/dbus.h
index 51023b08bad951aa9b4e3c21cedf640712c876e1..aaae89de11df74b9522fd3e81a500444a0b30a24 100644 (file)
--- a/dbus.h
+++ b/dbus.h
@@ -3,6 +3,25 @@
 #ifndef foodbushfoo
 #define foodbushfoo
 
+/***
+  This file is part of systemd.
+
+  Copyright 2010 Lennart Poettering
+
+  systemd 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.
+
+  systemd 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 systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
+
 #include <dbus/dbus.h>
 
 #include "manager.h"
@@ -40,7 +59,7 @@ typedef struct BusProperty {
 int bus_init(Manager *m);
 void bus_done(Manager *m);
 
-void bus_dispatch(Manager *m);
+unsigned bus_dispatch(Manager *m);
 
 void bus_watch_event(Manager *m, Watch *w, int events);
 void bus_timeout_event(Manager *m, Watch *w, int events);
@@ -59,4 +78,10 @@ extern const DBusObjectPathVTable bus_manager_vtable;
 extern const DBusObjectPathVTable bus_job_vtable;
 extern const DBusObjectPathVTable bus_unit_vtable;
 
+void bus_unit_send_change_signal(Unit *u);
+void bus_unit_send_removed_signal(Unit *u);
+
+void bus_job_send_change_signal(Job *j);
+void bus_job_send_removed_signal(Job *j);
+
 #endif