1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef RESSCHED_SERVICES_RESSCHEDMGR_PLUGINBASE_INCLUDE_CONFIG_INFO_H 17 #define RESSCHED_SERVICES_RESSCHEDMGR_PLUGINBASE_INCLUDE_CONFIG_INFO_H 18 19 #include <list> 20 #include <map> 21 #include <memory> 22 #include <string> 23 24 namespace OHOS { 25 namespace ResourceSchedule { 26 struct SubItem { 27 std::string name; 28 std::string value; 29 std::map<std::string, std::string> properties; 30 }; 31 32 struct Item { 33 std::map<std::string, std::string> itemProperties; 34 std::list<SubItem> subItemList; 35 }; 36 37 struct PluginConfig { 38 std::list<Item> itemList; 39 }; 40 41 using PluginConfigMap = std::map<std::string, PluginConfig>; 42 } // namespace ResourceSchedule 43 } // namespace OHOS 44 45 #endif // RESSCHED_SERVICES_RESSCHEDMGR_PLUGINBASE_INCLUDE_CONFIG_INFO_H 46