1 /* 2 * Copyright (c) 2021 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 #ifndef STORAGE_SERVICE_CONSTANTS_H 16 #define STORAGE_SERVICE_CONSTANTS_H 17 18 #include <map> 19 20 namespace OHOS { 21 namespace StorageService { 22 const int START_USER_ID = 100; 23 const int MAX_USER_ID = 1099; 24 } 25 26 namespace StorageDaemon { 27 constexpr uint32_t GLOBAL_USER_ID = 0; 28 29 static const std::string EL1 = "el1"; 30 static const std::string EL2 = "el2"; 31 enum KeyType { 32 EL1_KEY = 1, 33 EL2_KEY = 2, 34 }; 35 static std::map<std::string, KeyType> EL_DIR_MAP = { 36 {EL1, EL1_KEY}, 37 {EL2, EL2_KEY}, 38 }; 39 } 40 } 41 42 #endif // STORAGE_SERVICE_CONSTANTS_H