diff --git a/smocore/component.cpp b/smocore/component.cpp index dc94241..cbe9315 100644 --- a/smocore/component.cpp +++ b/smocore/component.cpp @@ -1,4 +1,5 @@ #include +#include namespace smo { diff --git a/smocore/include/component.h b/smocore/include/component.h index 85ecb4e..dac1094 100644 --- a/smocore/include/component.h +++ b/smocore/include/component.h @@ -34,26 +34,6 @@ public: Mind &parent; }; -namespace mrntt { - -class MarionetteComponent -: public Component -{ -public: - MarionetteComponent(const std::shared_ptr &thread); - ~MarionetteComponent() = default; - -public: - typedef std::function mrnttLifetimeMgmtOpCbFn; - void initializeReq(Callback callback); - void finalizeReq(Callback callback); - -private: - class MrnttLifetimeMgmtOp; -}; - -} // namespace mrntt - } // namespace smo #endif // COMPONENT_H diff --git a/smocore/include/marionette/marionette.h b/smocore/include/marionette/marionette.h index fb716d7..2468d09 100644 --- a/smocore/include/marionette/marionette.h +++ b/smocore/include/marionette/marionette.h @@ -12,6 +12,26 @@ class MarionetteThread; namespace mrntt { +class MarionetteComponent +: public Component +{ +public: + MarionetteComponent(const std::shared_ptr &thread); + ~MarionetteComponent() = default; + +public: + typedef std::function mrnttLifetimeMgmtOpCbFn; + void initializeReq(Callback callback); + void finalizeReq(Callback callback); + + void intrinEventInd(void); + void negtrinEventInd(void); + void postrinEventInd(void); + +private: + class MrnttLifetimeMgmtOp; +}; + extern std::atomic exitCode; void exitMarionetteLoop(); void marionetteFinalizeReqCb(bool success);