chiark / gitweb /
libudev: queue - _unref() should return the object
[elogind.git] / libudev / libudev.c
index d96934fba83d5d71c69b3ac06ce0ec4ca6888f2d..6b5c5e9f8481cbf15fd5a5114628dff1861db714 100644 (file)
@@ -411,6 +411,14 @@ const char *udev_get_run_config_path(struct udev *udev)
        return udev->run_config_path;
 }
 
+/**
+ * udev_get_run_path:
+ * @udev: udev library context
+ *
+ * Retrieve the udev runtime directory path. The default is "/run/udev".
+ *
+ * Returns: the runtime directory path
+ **/
 const char *udev_get_run_path(struct udev *udev)
 {
        if (udev->run_path != NULL)
@@ -450,7 +458,7 @@ struct udev_list_entry *udev_add_property(struct udev *udev, const char *key, co
                        udev_list_entry_delete(list_entry);
                return NULL;
        }
-       return udev_list_entry_add(udev, &udev->properties_list, key, value, 1, 0);
+       return udev_list_entry_add(udev, &udev->properties_list, key, value, UDEV_LIST_UNIQUE);
 }
 
 struct udev_list_entry *udev_get_properties_list_entry(struct udev *udev)