diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-11 15:18:42 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 628df48e0238391658dab54f81dfa1c62dbfb3ec (patch) | |
tree | 9f12ca0c00abc5e5d3e201e5052308ca640fe86f /src/main.cpp | |
parent | 675184e57e4b1a04f871babc2bc777c6f53e7b6f (diff) |
main/app: started to move things to app
Started implementing App, as the actual implementation, that is, to
pull out all the stuff that is actually the application and only have
glue code reside in main.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4593f22..5c9df33 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include "json_helper.hpp" #include "util.hpp" #include "wayland.hpp" +#include "app.hpp" #include <algorithm> #include <json.h> @@ -211,6 +212,12 @@ void debug_status(struct afb_req req) { // Quick and dirty, dump current surfaces and layers AFB_REQ_DEBUG(req, "status"); + // auto r = g_afb_instance->app.api.debug_status(); + // if (r.is_err()) { + // afb_req_fail(req, "failed", r.e.value()); + // return; + // } + auto o = json_object_new_object(); json_object_object_add(o, "surfaces", to_json(g_afb_instance->controller->sprops)); |