app: use config to determine json config file names
[staging/windowmanager.git] / src / app.hpp
index 512f272..5bbd2db 100644 (file)
@@ -9,11 +9,12 @@
 #include <memory>
 
 #include "afb_binding_api.hpp"
-#include "result.hpp"
-#include "wayland.hpp"
-#include "layout.hpp"
 #include "controller_hooks.hpp"
 #include "layers.hpp"
+#include "layout.hpp"
+#include "result.hpp"
+#include "wayland.hpp"
+#include "config.hpp"
 
 namespace wl {
 struct display;
@@ -35,8 +36,10 @@ struct App {
    std::unique_ptr<struct genivi::controller> controller;
    std::vector<std::unique_ptr<struct wl::output>> outputs;
 
+   struct config config;
+
    layouts_type layouts;
-   surface_id_to_layer_map surface2layer;
+   layer_map layers;
 
    App(wl::display *d);
    ~App();