summaryrefslogtreecommitdiff
path: root/libudev/libudev-util.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-08-17 21:03:05 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-08-17 21:03:05 +0200
commitcdfdc85fb5728c844460c67641bea7197e104b12 (patch)
tree97227f6276f219845c946f768c2b9714c03d8ee6 /libudev/libudev-util.c
parentac03072310d66f36da3d2a2f97df8c06095fc47e (diff)
libudev: util_get_sys_(subsystem,driver}() -> util_get_sys_core_link_value()
Diffstat (limited to 'libudev/libudev-util.c')
-rw-r--r--libudev/libudev-util.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libudev/libudev-util.c b/libudev/libudev-util.c
index 48eea0b898..a600b0a881 100644
--- a/libudev/libudev-util.c
+++ b/libudev/libudev-util.c
@@ -24,7 +24,7 @@
#include "libudev.h"
#include "libudev-private.h"
-static ssize_t get_sys_link(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size)
+ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, char *value, size_t size)
{
char path[UTIL_PATH_SIZE];
char target[UTIL_PATH_SIZE];
@@ -44,16 +44,6 @@ static ssize_t get_sys_link(struct udev *udev, const char *slink, const char *sy
return util_strscpy(value, size, pos);
}
-ssize_t util_get_sys_subsystem(struct udev *udev, const char *syspath, char *subsystem, size_t size)
-{
- return get_sys_link(udev, "subsystem", syspath, subsystem, size);
-}
-
-ssize_t util_get_sys_driver(struct udev *udev, const char *syspath, char *driver, size_t size)
-{
- return get_sys_link(udev, "driver", syspath, driver, size);
-}
-
int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size)
{
char link_target[UTIL_PATH_SIZE];