Start app and get runnables list by homescreen
[apps/agl-service-homescreen.git] / src / hs-clientmanager.h
index 99c6c0b..efc36de 100644 (file)
@@ -18,7 +18,6 @@
 #define HOMESCREEN_CLIENTMANAGER_H
 
 #include <string>
-#include <vector>
 #include <mutex>
 #include <memory>
 #include <unordered_map>
@@ -46,10 +45,9 @@ public:
 
     static HS_ClientManager* instance(void);
     int init(void);
-    HS_Client* find(std::string appid);
-    HS_Client* getClient(afb_req_t req, std::string appid);
-    std::vector<HS_Client*> getAllClient(void);
-    void removeClientCtxt(void *data);
+    int handleRequest(afb_req_t request, const char *verb, const char *appid = nullptr);
+    int pushEvent(const char *event, struct json_object *param, std::string appid = "");
+    void removeClientCtxt(void *data);  // don't use, internal only
 
 private:
     HS_ClientCtxt* createClientCtxt(afb_req_t req, std::string appid);