DevMgr: Move at/detachSenseDevs[FromSpecs] into DeviceMgr::
This is logically cleaner and it begins preparing our next set of restructuring changes. To wit: we're revamping the device manager to distinguish between devices and their roles.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <componentThread.h>
|
||||
#include <mind.h>
|
||||
#include <senseApis/senseApiManager.h>
|
||||
#include <deviceManager/deviceManager.h>
|
||||
|
||||
namespace smo {
|
||||
namespace body {
|
||||
@@ -77,8 +78,7 @@ public:
|
||||
std::cout << __func__ << ": About to attachAllSenseDevicesFromSpecs"
|
||||
<< '\n';
|
||||
}
|
||||
sense_api::SenseApiManager::getInstance()
|
||||
.attachAllSenseDevicesFromSpecsReq(
|
||||
device::DeviceManager::getInstance().attachAllSenseDevicesFromSpecsReq(
|
||||
{context, std::bind(
|
||||
&InitializeReq::initializeReq2,
|
||||
context.get(), context,
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
}
|
||||
|
||||
std::cout << "Mrntt: About to detach all sense devices." << "\n";
|
||||
sense_api::SenseApiManager::getInstance().detachAllSenseDevicesReq(
|
||||
device::DeviceManager::getInstance().detachAllSenseDevicesReq(
|
||||
{context, std::bind(
|
||||
&FinalizeReq::finalizeReq2,
|
||||
context.get(), context,
|
||||
|
||||
Reference in New Issue
Block a user