2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Contact: Jan Olszak <j.olszak@samsung.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License
21 * @author Jan Olszak (j.olszak@samsung.com)
22 * @brief Declaration of the class for storing zone manager configuration
26 #ifndef SERVER_ZONES_MANAGER_CONFIG_HPP
27 #define SERVER_ZONES_MANAGER_CONFIG_HPP
29 #include "config/fields.hpp"
30 #include "input-monitor-config.hpp"
31 #include "proxy-call-config.hpp"
39 struct ZonesManagerConfig {
42 * Path to config database.
47 * A path where the zones mount points reside.
49 std::string zonesPath;
52 * If set then all files not related with existing containers will be removed
54 bool cleanUpZonesPath;
57 * A path where the zones image reside. Empty path means that zones image won't be
58 * copied to zonesPath when creating new zone.
60 std::string zoneImagePath;
63 * A dir where template configuration files for new zones reside
65 std::string zoneTemplateDir;
73 * VTs available for zones
75 std::vector<int> availableVTs;
78 * Parameters describing input device used to switch between zones
80 InputConfig inputConfig;
83 * Prefix added to a path of "run" tmpfs mount point for each zone.
85 std::string runMountPointPrefix;
90 std::vector<ProxyCallRule> proxyCallRules;
107 struct ZonesManagerDynamicConfig {
110 * A list of created zones.
112 std::vector<std::string> zoneIds;
115 * An ID of default zone.
117 std::string defaultId;
129 #endif // SERVER_ZONES_MANAGER_CONFIG_HPP