From b98e130e1dbedf7064678a1da4ebfaa0544c99d2 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Tue, 30 Oct 2018 14:29:15 +0900 Subject: add source for ces2019 --- include/libhomescreen.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/libhomescreen.hpp') diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 4a92059..f07e62f 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -40,9 +40,12 @@ public: using handler_func = std::function; enum EventType { + Event_ShowWindow = 1, Event_TapShortcut = 1, Event_OnScreenMessage, - Event_OnScreenReply + Event_OnScreenReply, + Event_AllocateRestriction, + Event_ReleaseRestriction }; static const std::vector api_list; @@ -66,6 +69,9 @@ public: int call(const char* verb, struct json_object* arg); int subscribe(const std::string& event_name); int unsubscribe(const std::string& event_name); + int allocateRestriction(const char* area); + int releaseRestriction(const char* area); + int showWindow(const char* id, json_object* json); private: int initialize_websocket(); -- cgit