pkgUdevCdromDevices::pkgUdevCdromDevices()
- : libudev_handle(NULL), Dlopened(false)
+ : libudev_handle(NULL)
{
}
pkgUdevCdromDevices::Dlopen()
{
// alread open
- if(Dlopened)
+ if(libudev_handle != NULL)
return true;
// see if we can get libudev
udev_list_entry_get_next = (udev_list_entry* (*)(udev_list_entry*))dlsym(h, "udev_list_entry_get_next");
udev_device_get_property_value = (const char* (*)(udev_device *, const char *))dlsym(h, "udev_device_get_property_value");
- Dlopened = true;
return true;
}