Mind: Implement initialize/finalizeBodyReq()
We've done a lot of general work on the init sequencing.
This commit is contained in:
@@ -23,6 +23,11 @@ public:
|
||||
return instance;
|
||||
}
|
||||
|
||||
void initialize(void)
|
||||
{};
|
||||
void finalize(void)
|
||||
{};
|
||||
|
||||
std::string readDapSpecFile(const std::string& filename);
|
||||
void collateAllDapSpecs(void);
|
||||
void parseAllDapSpecs(void);
|
||||
|
||||
@@ -23,6 +23,8 @@ public:
|
||||
typedef std::function<void(bool)> mindLifetimeMgmtOpCbFn;
|
||||
void initializeReq(mindLifetimeMgmtOpCbFn callback);
|
||||
void finalizeReq(mindLifetimeMgmtOpCbFn callback);
|
||||
void initializeBodyReq(mindLifetimeMgmtOpCbFn callback);
|
||||
void finalizeBodyReq(mindLifetimeMgmtOpCbFn callback);
|
||||
|
||||
// ComponentThread access methods
|
||||
std::shared_ptr<ComponentThread> getComponentThread(
|
||||
@@ -77,6 +79,8 @@ private:
|
||||
|
||||
class MindLifetimeMgmtOp;
|
||||
class MindThreadLifetimeMgmtOp;
|
||||
class InitializeBodyReq;
|
||||
class FinalizeBodyReq;
|
||||
};
|
||||
|
||||
// Global Mind instance will be defined in marionette.cpp
|
||||
|
||||
@@ -7,10 +7,8 @@
|
||||
|
||||
namespace smo {
|
||||
|
||||
typedef std::function<void(bool)> initializeSalmanoffCbFn;
|
||||
typedef initializeSalmanoffCbFn shutdownSalmanoffCbFn;
|
||||
void initializeSalmanoff(initializeSalmanoffCbFn callback);
|
||||
void shutdownSalmanoff(shutdownSalmanoffCbFn callback);
|
||||
void initializeSalmanoff(void);
|
||||
void shutdownSalmanoff(void);
|
||||
|
||||
} // namespace smo
|
||||
|
||||
|
||||
@@ -24,9 +24,14 @@ public:
|
||||
return instance;
|
||||
}
|
||||
|
||||
void initialize(void)
|
||||
{};
|
||||
void finalize(void)
|
||||
{};
|
||||
|
||||
SenseApiLib& loadSenseApiLib(
|
||||
const std::string& libraryPath,
|
||||
std::shared_ptr<ComponentThread>& componentThread);
|
||||
const std::shared_ptr<ComponentThread>& componentThread);
|
||||
|
||||
std::optional<std::shared_ptr<SenseApiLib>> getSenseApiLib(
|
||||
const std::string& libraryPath);
|
||||
@@ -38,7 +43,7 @@ public:
|
||||
void finalizeSenseApiLib(SenseApiLib& lib);
|
||||
|
||||
void loadAllSenseApiLibsFromOptions(
|
||||
std::shared_ptr<ComponentThread>& componentThread);
|
||||
const std::shared_ptr<ComponentThread>& componentThread);
|
||||
|
||||
void unloadAllSenseApiLibs(void);
|
||||
void initializeAllSenseApiLibs(void);
|
||||
|
||||
Reference in New Issue
Block a user