diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-15 17:12:47 -0700 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-15 17:12:47 -0700 |
commit | 8753fadf2a6ecead372e71b8bf9336cf29f9c958 (patch) | |
tree | 9032f1a046db6a757234ddc19bfcd798b04ec0a2 /udev/lib/libudev-private.h | |
parent | 9a8047fa290f05d0b2dcf7e7dbe8539c6e3d325e (diff) |
libudev: switch API from devpath to syspath
Diffstat (limited to 'udev/lib/libudev-private.h')
-rw-r--r-- | udev/lib/libudev-private.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h index f28bd9acfc..1756be5f25 100644 --- a/udev/lib/libudev-private.h +++ b/udev/lib/libudev-private.h @@ -55,7 +55,7 @@ extern const char *udev_get_rules_path(struct udev *udev); extern int udev_get_run(struct udev *udev); /* libudev-device */ -extern int device_set_devpath(struct udev_device *udev_device, const char *devpath); +extern int device_set_syspath(struct udev_device *udev_device, const char *syspath); extern int device_set_subsystem(struct udev_device *udev_device, const char *subsystem); extern int device_set_devname(struct udev_device *udev_device, const char *devname); extern int device_add_devlink(struct udev_device *udev_device, const char *devlink); @@ -114,9 +114,9 @@ struct util_name_entry { char *value; int *i; }; -extern ssize_t util_get_sys_subsystem(struct udev *udev, const char *devpath, char *subsystem, size_t size); -extern ssize_t util_get_sys_driver(struct udev *udev, const char *devpath, char *driver, size_t size); -extern int util_resolve_sys_link(struct udev *udev, char *devpath, size_t size); +extern ssize_t util_get_sys_subsystem(struct udev *udev, const char *syspath, char *subsystem, size_t size); +extern ssize_t util_get_sys_driver(struct udev *udev, const char *syspath, char *driver, size_t size); +extern int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size); extern struct util_name_entry *util_name_list_add(struct udev *udev, struct list_head *name_list, const char *name, const char *value, int sort); extern void util_name_list_cleanup(struct udev *udev, struct list_head *name_list); @@ -127,5 +127,4 @@ extern void util_remove_trailing_chars(char *path, char c); extern size_t util_strlcpy(char *dst, const char *src, size_t size); extern size_t util_strlcat(char *dst, const char *src, size_t size); extern int util_replace_chars(char *str, const char *white); -extern char *util_sysattr_get_value(struct udev *udev, const char *devpath, const char *attr_name); #endif |