aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.hpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-12-20 10:34:08 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2019-01-25 13:36:37 +0900
commitceb1049ca57b0fd0ce41e9eca631557ffa46993a (patch)
treee3627816bb290a727f1da1ccf53e6f9043821f33 /src/util.hpp
parenta33cbe3e083318a4f48d44a645ee24447536e3a6 (diff)
Introduce changeAreaSize and getAreaList
In CES2019 demo, these features are introduced in demo3. 1. changeAreaSize : change area definition on runtime 2. getAreaList : get area definition list v2. fix merge conflict util.hpp util.cpp Bug-AGL : SPEC-2077 Change-Id: I1fa3c9e3648c69e14a3916cbeeb9775ed94c833a Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/util.hpp b/src/util.hpp
index 36e556c..9540772 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -20,6 +20,7 @@
#include <functional>
#include <thread>
+#include <unordered_map>
#include <sys/poll.h>
#include <string.h>
@@ -121,4 +122,15 @@ class rectangle
// Configuration file path helper
std::string get_file_path(const char *file_name, const char *root_path = NULL);
-#endif // !WM_UTIL_HPP
+typedef struct ChangeAreaReq {
+ std::string appname;
+ std::unordered_map<std::string, struct rect> area_req;
+ bool save;
+ std::unordered_map<std::string, std::string> update_app2area;
+ ChangeAreaReq() = default;
+ ~ChangeAreaReq() = default;
+ ChangeAreaReq(const ChangeAreaReq& val) = default;
+ void dump();
+} ChangeAreaReq;
+
+#endif // WM_UTIL_HPP