summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-private.h
diff options
context:
space:
mode:
authorRobert Milasan <rmilasan@suse.com>2014-09-13 15:18:37 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-18 15:28:07 +0200
commit572016d1c2c5a679ea3ac95ff15ce9f3508020f3 (patch)
tree2f6ef6f531cd34d48e78f9a56fdbed527c64ae1c /src/libudev/libudev-private.h
parentc2fa048c4a70c8386c6d8fe939e5ea9edecf1e98 (diff)
udev: fix path for database names on 'change' event
If a device does not have a major/minor number attached, we use different database names than if it does. On "change" events, we didn't copy the devnum over, therefore, we used different paths than on 'add' or 'remove' events (where devnum was properly copied). Fix this by always copying the devnum into the udev-device. (David: added commit-log from email)
Diffstat (limited to 'src/libudev/libudev-private.h')
-rw-r--r--src/libudev/libudev-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h
index 2f74bc0883..7e11f7326d 100644
--- a/src/libudev/libudev-private.h
+++ b/src/libudev/libudev-private.h
@@ -59,6 +59,7 @@ uid_t udev_device_get_devnode_uid(struct udev_device *udev_device);
gid_t udev_device_get_devnode_gid(struct udev_device *udev_device);
int udev_device_set_subsystem(struct udev_device *udev_device, const char *subsystem);
int udev_device_set_syspath(struct udev_device *udev_device, const char *syspath);
+int udev_device_set_devnum(struct udev_device *udev_device, dev_t devnum);
int udev_device_add_devlink(struct udev_device *udev_device, const char *devlink);
void udev_device_cleanup_devlinks_list(struct udev_device *udev_device);
struct udev_list_entry *udev_device_add_property(struct udev_device *udev_device, const char *key, const char *value);