X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Flibhomescreen.hpp;h=ea35d1e0197ab2c3d075af24187c28ba54effdce;hb=refs%2Ftags%2Fflounder%2F5.99.3;hp=5720368dfdd58a1f679a79b837f63042420940a2;hpb=06a2777ce769346ba85aee9f38ccb237a2d72915;p=src%2Flibhomescreen.git diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 5720368..ea35d1e 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -24,7 +24,6 @@ #include extern "C" { -#include #include #include } @@ -38,11 +37,12 @@ public: LibHomeScreen(const LibHomeScreen &) = delete; LibHomeScreen &operator=(const LibHomeScreen &) = delete; - using handler_func = std::function; + using handler_func = std::function; enum EventType { Event_TapShortcut = 1, - Event_OnScreenMessage + Event_OnScreenMessage, + Event_OnScreenReply }; static const std::vector api_list; @@ -51,8 +51,9 @@ public: /* Method */ int init(const int port, const std::string& token); - int tapShortcut(const char* application_name); + int tapShortcut(const char* application_id); int onScreenMessage(const char* display_message); + int onScreenReply(const char* reply_message); void set_event_handler(enum EventType et, handler_func f); @@ -76,6 +77,7 @@ private: struct afb_wsj1* sp_websock; struct afb_wsj1_itf minterface; sd_event* mploop; + std::string mapp_id; std::string muri; int mport = 2000;