summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-03-04 21:17:00 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-03-04 21:17:00 +0100
commitb7bc31eb0bd71e2a3466df334a52a2c37c444d40 (patch)
treef7be90d49873b8e0d01d5dcd7b0398159796a45f
parentcfba4f6908927f46289f9fd945af02f12ee74412 (diff)
downloadapt-b7bc31eb0bd71e2a3466df334a52a2c37c444d40.tar.gz
apt-pkg/cdrom.{cc,h}: add udev_enumerate_add_match_sysattr to the libudev class
-rw-r--r--apt-pkg/cdrom.cc1
-rw-r--r--apt-pkg/cdrom.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc
index 04ace10a6..3dc7e9924 100644
--- a/apt-pkg/cdrom.cc
+++ b/apt-pkg/cdrom.cc
@@ -854,6 +854,7 @@ pkgUdevCdromDevices::Dlopen() /*{{{*/
libudev_handle = h;
udev_new = (udev* (*)(void)) dlsym(h, "udev_new");
udev_enumerate_add_match_property = (int (*)(udev_enumerate*, const char*, const char*))dlsym(h, "udev_enumerate_add_match_property");
+ udev_enumerate_add_match_sysattr = (int (*)(udev_enumerate*, const char*, const char*))dlsym(h, "udev_enumerate_add_match_sysattr");
udev_enumerate_scan_devices = (int (*)(udev_enumerate*))dlsym(h, "udev_enumerate_scan_devices");
udev_enumerate_get_list_entry = (udev_list_entry* (*)(udev_enumerate*))dlsym(h, "udev_enumerate_get_list_entry");
udev_device_new_from_syspath = (udev_device* (*)(udev*, const char*))dlsym(h, "udev_device_new_from_syspath");
diff --git a/apt-pkg/cdrom.h b/apt-pkg/cdrom.h
index 14ca1d810..0fcdb6f1a 100644
--- a/apt-pkg/cdrom.h
+++ b/apt-pkg/cdrom.h
@@ -83,6 +83,7 @@ class pkgUdevCdromDevices /*{{{*/
void *libudev_handle;
struct udev* (*udev_new)(void);
int (*udev_enumerate_add_match_property)(struct udev_enumerate *udev_enumerate, const char *property, const char *value);
+ int (*udev_enumerate_add_match_sysattr)(struct udev_enumerate *udev_enumerate, const char *property, const char *value);
int (*udev_enumerate_scan_devices)(struct udev_enumerate *udev_enumerate);
struct udev_list_entry* (*udev_enumerate_get_list_entry)(struct udev_enumerate *udev_enumerate);
struct udev_device* (*udev_device_new_from_syspath)(struct udev *udev, const char *syspath);