1f6603c60Sopenharmony_ci/*
2f6603c60Sopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd.
3f6603c60Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4f6603c60Sopenharmony_ci * you may not use this file except in compliance with the License.
5f6603c60Sopenharmony_ci * You may obtain a copy of the License at
6f6603c60Sopenharmony_ci *
7f6603c60Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8f6603c60Sopenharmony_ci *
9f6603c60Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10f6603c60Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11f6603c60Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12f6603c60Sopenharmony_ci * See the License for the specific language governing permissions and
13f6603c60Sopenharmony_ci * limitations under the License.
14f6603c60Sopenharmony_ci */
15f6603c60Sopenharmony_ci
16f6603c60Sopenharmony_ci#ifndef XTS_HITS_SAMGR_API_EXPECT_H
17f6603c60Sopenharmony_ci#define XTS_HITS_SAMGR_API_EXPECT_H
18f6603c60Sopenharmony_ci
19f6603c60Sopenharmony_ciconstexpr int SAMGR_API_GROUP_NUM  = 8;
20f6603c60Sopenharmony_ciconstexpr int SAMGR_API_CALL_NUM = 6;
21f6603c60Sopenharmony_ci#define GET_INIT_INDEX(G, pri) ((G)*(SAMGR_API_CALL_NUM)+(pri))
22f6603c60Sopenharmony_ci
23f6603c60Sopenharmony_ciusing SamgrApiGroup = enum TagSamgrApiGroup {
24f6603c60Sopenharmony_ci    CORE_INIT_E = 0,
25f6603c60Sopenharmony_ci    SYS_SERVICE_INIT_E,
26f6603c60Sopenharmony_ci    SYS_FEATURE_INIT_E,
27f6603c60Sopenharmony_ci    APP_SERVICE_INIT_E,
28f6603c60Sopenharmony_ci    SYSEX_SERVICE_INIT_E,
29f6603c60Sopenharmony_ci    APP_FEATURE_INIT_E,
30f6603c60Sopenharmony_ci    SYSEX_FEATURE_INIT,
31f6603c60Sopenharmony_ci    SYS_RUN_E,
32f6603c60Sopenharmony_ci};
33f6603c60Sopenharmony_ci
34f6603c60Sopenharmony_ciusing SamgrApiPri = enum TagSamgrApiPri {
35f6603c60Sopenharmony_ci    API_PRI0 = 0,
36f6603c60Sopenharmony_ci    API_PRI1,
37f6603c60Sopenharmony_ci    API_PRI_DEFAULT,
38f6603c60Sopenharmony_ci    API_PRI2,
39f6603c60Sopenharmony_ci    API_PRI3,
40f6603c60Sopenharmony_ci    API_PRI4,
41f6603c60Sopenharmony_ci    API_PRI_MAX,
42f6603c60Sopenharmony_ci};
43f6603c60Sopenharmony_ci
44f6603c60Sopenharmony_ci#endif  // XTS_HITS_SAMGR_API_EXPECT_H