chiark / gitweb /
dbus: greatly extend dbus coverage
[elogind.git] / unit.h
diff --git a/unit.h b/unit.h
index 4dc53a1a687ca6ab1425035b9515753a01967d0e..b3c75ce20a7e5451a2e35653f308eee755d00bc2 100644 (file)
--- a/unit.h
+++ b/unit.h
@@ -264,6 +264,9 @@ struct UnitVTable {
         /* Called whenever a bus PID lookup finishes */
         void (*bus_query_pid_done)(Unit *u, const char *name, pid_t pid);
 
+        /* Called for each message received on the bus */
+        DBusHandlerResult (*bus_message_handler)(Unit *u, DBusMessage *message);
+
         /* This is called for each unit type and should be used to
          * enumerate existing devices and load them. However,
          * everything that is loaded here should still stay in