diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-06-13 09:48:03 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-06-13 09:48:03 +0900 |
commit | ca16fef732febe6cc7f86875929fa205024c0116 (patch) | |
tree | a1e29ed229833c1ba7109fc257212db48c1d8bbf /include/libhomescreen.hpp | |
parent | 478ad89b8da9d5bc68755433cab4963b7d0c8b96 (diff) |
Add restriction event for als2018sandbox/zheng_wenlong/als2018
Diffstat (limited to 'include/libhomescreen.hpp')
-rw-r--r-- | include/libhomescreen.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libhomescreen.hpp b/include/libhomescreen.hpp index 4a92059..7785b74 100644 --- a/include/libhomescreen.hpp +++ b/include/libhomescreen.hpp @@ -42,7 +42,9 @@ public: enum EventType { Event_TapShortcut = 1, Event_OnScreenMessage, - Event_OnScreenReply + Event_OnScreenReply, + Event_AllocateRestriction, + Event_ReleaseRestriction }; static const std::vector<std::string> api_list; @@ -66,7 +68,8 @@ 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); private: int initialize_websocket(); |