summaryrefslogtreecommitdiffstats
path: root/src/afb_binding_api.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb_binding_api.hpp')
-rw-r--r--src/afb_binding_api.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/afb_binding_api.hpp b/src/afb_binding_api.hpp
new file mode 100644
index 0000000..ba6b1d1
--- /dev/null
+++ b/src/afb_binding_api.hpp
@@ -0,0 +1,29 @@
+#include "result.hpp"
+
+#include <json-c/json.h>
+
+namespace wm {
+
+struct App;
+
+struct binding_api {
+ typedef wm::result<json_object *> result_type;
+ struct wm::App *app;
+ void send_event(char const *evname, char const *label);
+ void send_event(char const *evname, char const *label, char const *area);
+ result_type requestsurface(char const* drawing_name);
+ result_type requestsurfacexdg(char const* drawing_name, char const* ivi_id);
+ result_type activatesurface(char const* drawing_name, char const* drawing_area);
+ result_type deactivatesurface(char const* drawing_name);
+ result_type enddraw(char const* drawing_name);
+ result_type wm_subscribe();
+ result_type list_drawing_names();
+ result_type ping();
+ result_type debug_status();
+ result_type debug_layers();
+ result_type debug_surfaces();
+ result_type debug_terminate();
+};
+
+} // namespace wm
+