aboutsummaryrefslogtreecommitdiffstats
path: root/include/libhomescreen.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/libhomescreen.hpp')
-rw-r--r--include/libhomescreen.hpp8
1 files changed, 7 insertions, 1 deletions
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<void(json_object*)>;
enum EventType {
+ Event_ShowWindow = 1,
Event_TapShortcut = 1,
Event_OnScreenMessage,
- Event_OnScreenReply
+ Event_OnScreenReply,
+ Event_AllocateRestriction,
+ Event_ReleaseRestriction
};
static const std::vector<std::string> 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();