diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-09 14:37:36 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-09 14:37:36 +0200 |
commit | 37372bbc38d8542f482d90b26c90714429584421 (patch) | |
tree | 6d9b5771febda2f97eca3e22a96ac090e0f24337 /udev/lib/libudev-device.c | |
parent | 8a4c287d150e56a2bf57163edaee7c487896418f (diff) |
libudev: monitor - add event properties to udev_device
Diffstat (limited to 'udev/lib/libudev-device.c')
-rw-r--r-- | udev/lib/libudev-device.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index bec0d69af3..fd7c962d3a 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -47,6 +47,7 @@ struct udev_device { char *physdevpath; int timeout; dev_t devnum; + long long int seqnum; }; struct udev_device *device_init(struct udev *udev) @@ -360,6 +361,13 @@ const char *udev_device_get_action(struct udev_device *udev_device) return udev_device->action; } +unsigned long long int udev_device_get_seqnum(struct udev_device *udev_device) +{ + if (udev_device == NULL) + return 0; + return udev_device->seqnum; +} + int device_set_devpath(struct udev_device *udev_device, const char *devpath) { if (asprintf(&udev_device->syspath, "%s%s", udev_get_sys_path(udev_device->udev), devpath) < 0) @@ -457,6 +465,12 @@ int device_set_timeout(struct udev_device *udev_device, int timeout) return 0; } +int device_set_seqnum(struct udev_device *udev_device, unsigned long long int seqnum) +{ + udev_device->seqnum = seqnum; + return 0; +} + int device_set_devnum(struct udev_device *udev_device, dev_t devnum) { udev_device->devnum = devnum; |