1 /*
2  * Copyright (c) 2020-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 POLICY_REGISTRY_H
17 #define POLICY_REGISTRY_H
18 
19 #include "policy_define.h"
20 
21 FeaturePolicy regSvc1Feature[] = {
22     {
23         "feature1",
24         {
25             {
26                 .type = RANGE,
27                 .uidMin = 100,
28                 .uidMax = 110
29             },
30             {
31                 .type = FIXED,
32                 .fixedUid = {75, 85, 95}
33             },
34             {
35                 .type = BUNDLENAME,
36                 .bundleName = "OHOS"
37             },
38         }
39     },
40     {
41         "feature2",
42         {
43             {
44                 .type = RANGE,
45                 .uidMin = 100,
46                 .uidMax = 110
47             },
48             {
49                 .type = FIXED,
50                 .fixedUid = {75, 85, 95}
51             },
52             {
53                 .type = BUNDLENAME,
54                 .bundleName = "OHOS"
55             },
56         }
57     },
58 };
59 
60 static PolicySetting g_registryPolicies[] = {
61     {"regSvc1", regSvc1Feature, 2},
62 };
63 
64 static int g_regPoliciesSize = sizeof(g_registryPolicies) / sizeof(PolicySetting);
65 
66 #endif // POLICY_REGISTRY_H
67