Declare IAgentPlugin::isIdle() to implement exit-on-idle of the context-agent 73/141773/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 1 Aug 2017 10:30:45 +0000 (19:30 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 1 Aug 2017 10:30:45 +0000 (19:30 +0900)
Change-Id: Ia9e8916b6d6ea2ac45cc5a16337651c9d3d0de10
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/IAgentPlugin.h

index f72441d..4b8004a 100644 (file)
@@ -48,6 +48,9 @@ namespace ctx {
 
                virtual bool doAction(uint8_t length, const void* command) = 0;
 
+               // true, if the agent it not running.
+               virtual bool isIdle() = 0;
+
        };
 
        typedef IAgentPlugin** (*create_plugins_t)(IAgentUtil* agentUtil);