chiark / gitweb /
[PATCH] move all of the DBUS logic into one file and remove all of the #ifdef crud...
[elogind.git] / udev-add.c
index ddf432bbc7229312a7522372207898f0709786a1..8d45b26077878b3664875e1f448dbf634ce0677b 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "udev.h"
 #include "udev_version.h"
+#include "udev_dbus.h"
 #include "namedev.h"
 #include "udevdb.h"
 #include "libsysfs/libsysfs.h"
@@ -323,6 +324,9 @@ int udev_add_device(char *path, char *subsystem)
        dbg("name='%s'", dev.name);
        retval = create_node(&dev);
 
+       if (retval == 0)
+               sysbus_send_create(&dev, path);
+
 exit:
        if (class_dev)
                sysfs_close_class_device(class_dev);