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 Host's internal IPC messages declaration
26 #ifndef COMMON_API_MESSAGES
27 #define COMMON_API_MESSAGES
29 #include "config/fields.hpp"
60 struct VectorOfStrings {
61 std::vector<std::string> values;
69 struct VectorOfStringPairs {
70 std::vector<api::StringPair> values;
78 typedef api::String ZoneId;
79 typedef api::String Declaration;
80 typedef api::String FileMoveRequestStatus;
81 typedef api::StringPair GetNetDevAttrsIn;
82 typedef api::StringPair CreateNetDevPhysIn;
83 typedef api::StringPair RemoveDeclarationIn;
84 typedef api::StringPair CreateZoneIn;
85 typedef api::StringPair RevokeDeviceIn;
86 typedef api::StringPair DestroyNetDevIn;
87 typedef api::StringPair ConnectionState;
88 typedef api::StringPair NotifActiveZoneIn;
89 typedef api::StringPair FileMoveRequestIn;
90 typedef api::VectorOfStrings ZoneIds;
91 typedef api::VectorOfStrings Declarations;
92 typedef api::VectorOfStrings NetDevList;
93 typedef api::VectorOfStringPairs Connections;
94 typedef api::VectorOfStringPairs GetNetDevAttrs;
100 std::string rootPath;
111 struct SetNetDevAttrsIn {
112 std::string id; // Zone's id
114 std::vector<StringPair> attrs;
124 struct CreateNetDevVethIn {
137 struct CreateNetDevMacvlanIn {
152 struct DeleteNetdevIpAddressIn {
165 struct DeclareFileIn {
182 struct DeclareMountIn {
232 std::string application;
246 #endif // COMMON_API_MESSAGES