Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
zones-manager-config.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Contact: Jan Olszak <j.olszak@samsung.com>
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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
17  */
18 
26 #ifndef SERVER_ZONES_MANAGER_CONFIG_HPP
27 #define SERVER_ZONES_MANAGER_CONFIG_HPP
28 
29 #include "cargo/fields.hpp"
30 #include "input-monitor-config.hpp"
31 #include "proxy-call-config.hpp"
32 
33 #include <string>
34 #include <vector>
35 
36 
37 namespace vasum {
38 
40 
44  std::string dbPath;
45 
49  std::string zonesPath;
50 
55 
60  std::string zoneImagePath;
61 
65  std::string zoneTemplateDir;
66 
70  int hostVT;
71 
75  std::vector<int> availableVTs;
76 
77  /*
78  * Parameters describing input device used to switch between zones
79  */
81 
85  std::string runMountPointPrefix;
86 
90  std::vector<ProxyCallRule> proxyCallRules;
91 
93  (
94  dbPath,
95  zonesPath,
99  hostVT,
100  availableVTs,
101  inputConfig,
104  )
105 };
106 
108 
112  std::vector<std::string> zoneIds;
113 
117  std::string defaultId;
118 
120  (
121  zoneIds,
122  defaultId
123  )
124 };
125 
126 } // namespace vasum
127 
128 
129 #endif // SERVER_ZONES_MANAGER_CONFIG_HPP
InputConfig inputConfig
Definition: zones-manager-config.hpp:80
Definition: input-monitor-config.hpp:37
std::string runMountPointPrefix
Prefix added to a path of "run" tmpfs mount point for each zone.
Definition: zones-manager-config.hpp:85
std::string zonesPath
A path where the zones mount points reside.
Definition: zones-manager-config.hpp:49
Declaration of the struct for storing proxy call configuration.
int hostVT
Host VT.
Definition: zones-manager-config.hpp:70
std::string dbPath
Path to config database.
Definition: zones-manager-config.hpp:44
std::string defaultId
An ID of default zone.
Definition: zones-manager-config.hpp:117
std::vector< std::string > zoneIds
A list of created zones.
Definition: zones-manager-config.hpp:112
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
std::string zoneTemplateDir
A dir where template configuration files for new zones reside.
Definition: zones-manager-config.hpp:65
bool cleanUpZonesPath
If set then all files not related with existing containers will be removed.
Definition: zones-manager-config.hpp:54
Definition: zones-manager-config.hpp:107
std::vector< int > availableVTs
VTs available for zones.
Definition: zones-manager-config.hpp:75
std::string zoneImagePath
A path where the zones image reside.
Definition: zones-manager-config.hpp:60
std::vector< ProxyCallRule > proxyCallRules
Proxy call rules.
Definition: zones-manager-config.hpp:90
Declaration of the struct for storing input monitor configuration.
Definition: zones-manager-config.hpp:39