htc: implement remaining htclow::HtclowManagerImpl funcs (mux impls pending)
This commit is contained in:
1 parent
e20c2450ce
commit
87165e0f08
11 files changed
+190
-34
No files matched your search
@@ -49,9 +49,17 @@ namespace ams::htclow::driver {
|
||||
return htclow::ResultUnknownDriverType();
|
||||
}
|
||||
|
||||
/* Set the driver type. */
|
||||
m_driver_type = driver_type;
|
||||
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
impl::DriverType DriverManager::GetDriverType() {
|
||||
/* Lock ourselves. */
|
||||
return m_driver_type.value_or(impl::DriverType::Unknown);
|
||||
}
|
||||
|
||||
IDriver *DriverManager::GetCurrentDriver() {
|
||||
/* Lock ourselves. */
|
||||
std::scoped_lock lk(m_mutex);
|
||||
|
||||
@@ -34,6 +34,8 @@ namespace ams::htclow::driver {
|
||||
|
||||
Result OpenDriver(impl::DriverType driver_type);
|
||||
|
||||
impl::DriverType GetDriverType();
|
||||
|
||||
IDriver *GetCurrentDriver();
|
||||
|
||||
void SetDebugDriver(IDriver *driver);
|
||||
|
||||
Reference in new issue
Block a user