X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=include%2Flibhomescreen.hpp;h=417ccdc92cdf9674fbd4c5e7fcf772e75b85a9c6;hb=869d5d3259969836a007c90c20e36eece5aa202b;hp=e51e01c2c9c5f4a3e51a5555d4da9a4473cd9d6e;hpb=44290c49e08fe52d6e3ed80720473577131090f4;p=src%2Flibhomescreen.git diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index e51e01c..417ccdc 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -58,6 +58,7 @@ public: static const std::vector event_list; /* Method */ + int init(const char *hostname, const int port, const char *token); int init(const int port, const std::string& token); int tapShortcut(const char* application_id); @@ -86,6 +87,7 @@ public: private: int initialize_websocket(); + int initialize_websocket(const char *hostname, const int port, const char *token); void (*onEvent)(const std::string& event, struct json_object* event_contents); void (*onReply)(struct json_object* reply); @@ -96,9 +98,6 @@ private: sd_event* mploop; std::string muri; - int mport = 2000; - std::string mtoken = "hs"; - std::map handlers; public: