diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-01 18:52:22 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-01 18:52:22 +0200 |
commit | 11d543c1ee886ef30c3ef66d7176149d0b126fa5 (patch) | |
tree | 7416f487b3f1035e7ea8e4d583d0271fd6f14b84 /udev/lib/libudev-private.h | |
parent | b98fd8400542472bd0989a4f03358d403fb71f35 (diff) |
libudev: add udev_device_get_syspath()
Diffstat (limited to 'udev/lib/libudev-private.h')
-rw-r--r-- | udev/lib/libudev-private.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/udev/lib/libudev-private.h b/udev/lib/libudev-private.h index 6331f99d5b..ffdf571513 100644 --- a/udev/lib/libudev-private.h +++ b/udev/lib/libudev-private.h @@ -43,16 +43,16 @@ void udev_log(struct udev *udev, #define log_err(format, arg...) do { } while (0) #endif -struct udev_device { - int refcount; - struct udev *udev; - char *devpath; - char *devname; - char *subsystem; - struct list_head link_list; - struct list_head env_list; -}; - +/* libudev */ extern struct udev_device *device_init(struct udev *udev); + +/* libudev-device */ +extern int device_set_devpath(struct udev_device *udev_device, const char *devpath); +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); +extern int device_add_property(struct udev_device *udev_device, const char *property); + +/* libudev-utils */ extern ssize_t util_get_sys_subsystem(struct udev *udev, const char *devpath, char *subsystem, size_t size); #endif |