X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-clientmanager.h;h=af5b4c89c6ee0df6701f14d7f81742a28531e30c;hb=f16e0728c0c9806d9a7c3766028428ed73b5a8cf;hp=efc36de51fc8a746116ac9ea5162e880c3e61672;hpb=0fc1fc7db6ff7cb95ad6cd6f0ef8f2b88f3d08da;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-clientmanager.h b/src/hs-clientmanager.h index efc36de..af5b4c8 100644 --- a/src/hs-clientmanager.h +++ b/src/hs-clientmanager.h @@ -23,6 +23,7 @@ #include #include "hs-helper.h" #include "hs-client.h" +#include "hs-apprecover.h" typedef struct HS_ClientCtxt { @@ -48,17 +49,20 @@ public: 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 + void setAppRecover(HS_AppRecover *recover) {app_recover = recover;} private: HS_ClientCtxt* createClientCtxt(afb_req_t req, std::string appid); HS_Client* addClient(afb_req_t req, std::string appid); void removeClient(std::string appid); + void registerApplication(std::string appid); private: static HS_ClientManager* me; std::unordered_map client_list; std::unordered_map appid2ctxt; std::mutex mtx; + HS_AppRecover *app_recover; }; #endif // HOMESCREEN_CLIENTMANAGER_H \ No newline at end of file