summaryrefslogtreecommitdiff
path: root/src/libudev/libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-11-13 13:50:01 +0100
committerKay Sievers <kay@vrfy.org>2014-11-13 13:50:01 +0100
commit41b848b0ea674dba135d5d5f82b87d126d967fcf (patch)
treeefae88229c6d8a0b7a0f7350bd9035e7876001ed /src/libudev/libudev.c
parent25e773eeb4f853804e1bf0dbd9a184f23e9b2a97 (diff)
udev: move global property handling from libudev to udevd
Diffstat (limited to 'src/libudev/libudev.c')
-rw-r--r--src/libudev/libudev.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c
index 64fe7c42fd..c237db5e96 100644
--- a/src/libudev/libudev.c
+++ b/src/libudev/libudev.c
@@ -50,7 +50,6 @@ struct udev {
int priority, const char *file, int line, const char *fn,
const char *format, va_list args);
void *userdata;
- struct udev_list properties_list;
};
/**
@@ -100,7 +99,6 @@ _public_ struct udev *udev_new(void) {
if (udev == NULL)
return NULL;
udev->refcount = 1;
- udev_list_init(udev, &udev->properties_list, true);
f = fopen("/etc/udev/udev.conf", "re");
if (f != NULL) {
@@ -211,7 +209,6 @@ _public_ struct udev *udev_unref(struct udev *udev) {
udev->refcount--;
if (udev->refcount > 0)
return udev;
- udev_list_cleanup(&udev->properties_list);
free(udev);
return NULL;
}
@@ -253,20 +250,3 @@ _public_ int udev_get_log_priority(struct udev *udev) {
_public_ void udev_set_log_priority(struct udev *udev, int priority) {
log_set_max_level(priority);
}
-
-struct udev_list_entry *udev_add_property(struct udev *udev, const char *key, const char *value) {
- if (value == NULL) {
- struct udev_list_entry *list_entry;
-
- list_entry = udev_get_properties_list_entry(udev);
- list_entry = udev_list_entry_get_by_name(list_entry, key);
- if (list_entry != NULL)
- udev_list_entry_delete(list_entry);
- return NULL;
- }
- return udev_list_entry_add(&udev->properties_list, key, value);
-}
-
-struct udev_list_entry *udev_get_properties_list_entry(struct udev *udev) {
- return udev_list_get_entry(&udev->properties_list);
-}