chiark / gitweb /
dbus: explicitly flush message queue before disconnecting
[elogind.git] / device.c
index f906fd50021dedc822b224bc88a7784167046de5..ddd05b35a08ec090c3768bb2acd60e082fc6d158 100644 (file)
--- a/device.c
+++ b/device.c
@@ -28,6 +28,7 @@
 #include "strv.h"
 #include "log.h"
 #include "unit-name.h"
+#include "dbus-device.h"
 
 static const UnitActiveState state_translation_table[_DEVICE_STATE_MAX] = {
         [DEVICE_DEAD] = UNIT_INACTIVE,
@@ -451,6 +452,7 @@ const UnitVTable device_vtable = {
 
         .no_requires = true,
         .no_instances = true,
+        .no_snapshots = true,
 
         .init = device_init,
         .load = unit_load_fragment_and_dropin_optional,
@@ -462,6 +464,8 @@ const UnitVTable device_vtable = {
         .active_state = device_active_state,
         .sub_state_to_string = device_sub_state_to_string,
 
+        .bus_message_handler = bus_device_message_handler,
+
         .enumerate = device_enumerate,
         .shutdown = device_shutdown
 };