Remove afb-binding.h inclusion
[src/libhomescreen.git] / include / libhomescreen.hpp
index 5720368..4a92059 100644 (file)
@@ -24,7 +24,6 @@
 #include <systemd/sd-event.h>
 extern "C"
 {
-#include <afb/afb-binding.h>
 #include <afb/afb-wsj1.h>
 #include <afb/afb-ws-client.h>
 }
@@ -38,11 +37,12 @@ public:
     LibHomeScreen(const LibHomeScreen &) = delete;
     LibHomeScreen &operator=(const LibHomeScreen &) = delete;
 
-    using handler_func = std::function<void(const char*)>;
+    using handler_func = std::function<void(json_object*)>;
 
     enum EventType {
         Event_TapShortcut = 1,
-        Event_OnScreenMessage
+        Event_OnScreenMessage,
+        Event_OnScreenReply
     };
 
     static const std::vector<std::string> api_list;
@@ -53,6 +53,7 @@ public:
 
     int tapShortcut(const char* application_name);
     int onScreenMessage(const char* display_message);
+    int onScreenReply(const char* reply_message);
 
     void set_event_handler(enum EventType et, handler_func f);