aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb_binding_api.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-19 13:35:55 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-12-19 17:48:19 +0900
commitd4b51c94f4c096f17f6a6f79d4d973715c4c1a07 (patch)
treea3f3a6eb74ed5b0b93ed8baa69fe864dfb8078a6 /src/afb_binding_api.hpp
parentaea325bfd3f449416cc3954e84ad4471885d93ec (diff)
Remove automatic code generation
To handle the request from binder(applications) more flexibly, we have to remove automatic code generation. Change-Id: Id14ab749cca68b5aa30376ba3ac543372df87233 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
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
+