X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-clientmanager.h;h=efc36de51fc8a746116ac9ea5162e880c3e61672;hb=aa43a07d4e86421aefec8c603018d14f5e249087;hp=cb4908821869f93e4e5c0b1de1f1ae6fa917f53e;hpb=ea459cc8988c3e664c3f9d56d3a9929775d8b57b;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-clientmanager.h b/src/hs-clientmanager.h index cb49088..efc36de 100644 --- a/src/hs-clientmanager.h +++ b/src/hs-clientmanager.h @@ -18,7 +18,6 @@ #define HOMESCREEN_CLIENTMANAGER_H #include -#include #include #include #include @@ -46,14 +45,13 @@ public: static HS_ClientManager* instance(void); int init(void); - HS_Client* find(std::string appid); - HS_Client* getClient(afb_req req, std::string appid); - std::vector 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 req, std::string appid); - HS_Client* addClient(afb_req req, std::string appid); + 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); private: