Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
namespaces-config.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Contact: Dariusz Michaluk <d.michaluk@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 
25 #ifndef NAMESPACES_CONFIG_HPP
26 #define NAMESPACES_CONFIG_HPP
27 
28 #include "config.hpp"
29 #include "cargo/fields.hpp"
30 
31 #include <string>
32 #include <vector>
33 
34 namespace vasum {
35 
37 
42  std::string type;
43 
47  std::string path;
48 
50  (
51  type,
52  path
53  )
54 };
55 
56 typedef std::vector<NamespaceConfig> NamespacesConfig;
57 
58 struct IDMap {
59 
65  int hostID;
67  int size;
68 
70  (
71  hostID,
73  size
74  )
75 };
76 
77 typedef std::vector<IDMap> IDMapConfig;
78 
79 } // namespace vasum
80 
81 
82 #endif // NAMESPACES_CONFIG_HPP
std::vector< NamespaceConfig > NamespacesConfig
Definition: namespaces-config.hpp:56
Configuration file for the code.
Definition: namespaces-config.hpp:36
int hostID
Describe the user namespace mappings from the host to the container.
Definition: namespaces-config.hpp:65
int containerID
Definition: namespaces-config.hpp:66
#define CARGO_REGISTER(...)
Registers cargo fields within class.
Definition: fields.hpp:74
std::string type
Namespace type.
Definition: namespaces-config.hpp:42
std::string path
Path to namespace file.
Definition: namespaces-config.hpp:47
int size
Definition: namespaces-config.hpp:67
Definition: namespaces-config.hpp:58
std::vector< IDMap > IDMapConfig
Definition: namespaces-config.hpp:77