X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Futil.hpp;h=95407721b6329b136e9ed7def7e336de0f524422;hb=refs%2Fchanges%2F69%2F21169%2F1;hp=65b29e0fdb0761ab6840e48f3c1cf080a993864c;hpb=05b4c23fbf153fee1c3bda1450c45d2c66b72bae;p=apps%2Fagl-service-windowmanager.git diff --git a/src/util.hpp b/src/util.hpp index 65b29e0..9540772 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2017 TOYOTA MOTOR CORPORATION + * Copyright (c) 2018 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +20,7 @@ #include #include +#include #include #include @@ -117,4 +119,18 @@ class rectangle long _bottom; }; -#endif // !WM_UTIL_HPP +// Configuration file path helper +std::string get_file_path(const char *file_name, const char *root_path = NULL); + +typedef struct ChangeAreaReq { + std::string appname; + std::unordered_map area_req; + bool save; + std::unordered_map update_app2area; + ChangeAreaReq() = default; + ~ChangeAreaReq() = default; + ChangeAreaReq(const ChangeAreaReq& val) = default; + void dump(); +} ChangeAreaReq; + +#endif // WM_UTIL_HPP