diff options
author | Kay Sievers <kay@vrfy.org> | 2013-07-01 22:34:43 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-07-01 22:34:43 +0200 |
commit | 67410e9f73a6cdd8453c78b966451b5151def14a (patch) | |
tree | 1e232d31e4f386b8790bfd62fe4f2d64cbbd2782 /src/libudev | |
parent | d9b17672ebf335292228fb193a842f410560d7a5 (diff) |
hwdb: add --device=<device-id> and --filter=<key name glob>
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-device.c | 2 | ||||
-rw-r--r-- | src/libudev/libudev.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index 6bb2e41510..eb43668c56 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -780,7 +780,7 @@ _public_ struct udev_device *udev_device_new_from_devnum(struct udev *udev, char * * Returns: a new udev device, or #NULL, if it does not exist **/ -_public_ struct udev_device *udev_device_new_from_device_id(struct udev *udev, char *id) +_public_ struct udev_device *udev_device_new_from_device_id(struct udev *udev, const char *id) { char type; int maj, min; diff --git a/src/libudev/libudev.h b/src/libudev/libudev.h index 61567b1d67..b9b8f13e44 100644 --- a/src/libudev/libudev.h +++ b/src/libudev/libudev.h @@ -81,7 +81,7 @@ struct udev *udev_device_get_udev(struct udev_device *udev_device); struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum); struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname); -struct udev_device *udev_device_new_from_device_id(struct udev *udev, char *id); +struct udev_device *udev_device_new_from_device_id(struct udev *udev, const char *id); struct udev_device *udev_device_new_from_environment(struct udev *udev); /* udev_device_get_parent_*() does not take a reference on the returned device, it is automatically unref'd with the parent */ struct udev_device *udev_device_get_parent(struct udev_device *udev_device); |