xcbXorg: Parse devSpec params, connect to Xorg displays

This patch adds some nicely weighty code for connecting to X displays
and managing those connections. Attaching devices will automatically
connect to their required X display. Removing all devices dependent
on a given X display connection will also disconnect from that
Xdisplay.
This commit is contained in:
2025-01-14 14:13:56 -04:00
parent cfdeb17639
commit 091d7ceeba
3 changed files with 246 additions and 55 deletions
+2 -2
View File
@@ -228,7 +228,7 @@ void SenseApiManager::attachSenseDevice(const device::SenseDeviceSpec& spec)
std::string(__func__) + ": attachDeviceReq() is NULL for library '"
+ lib.libraryPath + "'");
}
lib.senseApiDesc.sal_mgmt_libOps.attachDeviceReq(&spec);
lib.senseApiDesc.sal_mgmt_libOps.attachDeviceReq(spec);
}
void SenseApiManager::detachSenseDevice(const device::SenseDeviceSpec& spec)
@@ -247,7 +247,7 @@ void SenseApiManager::detachSenseDevice(const device::SenseDeviceSpec& spec)
std::string(__func__) + ": detachDeviceReq() is NULL for library '"
+ lib.libraryPath + "'");
}
lib.senseApiDesc.sal_mgmt_libOps.detachDeviceReq(&spec);
lib.senseApiDesc.sal_mgmt_libOps.detachDeviceReq(spec);
}
void SenseApiManager::attachAllSenseDevicesFromSpecs(void)