void CUDevProvider::Initialize() { CLog::Log(LOGDEBUG, "Selected UDev as storage provider"); m_udev = udev_new(); if (!m_udev) { CLog::Log(LOGERROR, "%s - failed to allocate udev context", __FUNCTION__); return; } /* set up a devices monitor that listen for any device change */ m_udevMon = udev_monitor_new_from_netlink(m_udev, "udev"); udev_monitor_filter_add_match_subsystem_devtype(m_udevMon, "block", "disk"); udev_monitor_filter_add_match_subsystem_devtype(m_udevMon, "block", "partition"); udev_monitor_enable_receiving(m_udevMon); PumpDriveChangeEvents(NULL); }
CDarwinStorageProvider::CDarwinStorageProvider() { PumpDriveChangeEvents(NULL); }
CAndroidStorageProvider::CAndroidStorageProvider() { m_removableLength = 0; PumpDriveChangeEvents(NULL); }
CPosixMountProvider::CPosixMountProvider() { m_removableLength = 0; PumpDriveChangeEvents(NULL); }
void CHALProvider::Initialize() { CLog::Log(LOGDEBUG, "Selected HAL as storage provider"); g_HalManager.Initialize(); PumpDriveChangeEvents(NULL); }
CAndroidStorageProvider::CAndroidStorageProvider() { PumpDriveChangeEvents(NULL); }