1 /*
2  * Copyright (c) 2023 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 FOUNDATION_ACE_FRAMEWORKS_CORE_COMMON_CONTAINER_CONSTS_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMMON_CONTAINER_CONSTS_H
18 
19 #include <cstdint>
20 
21 namespace OHOS::Ace {
22 enum ContainerType {
23     STAGE_CONTAINER = 1,
24     FA_CONTAINER,
25     PA_SERVICE_CONTAINER,
26     PA_DATA_CONTAINER,
27     PA_FORM_CONTAINER,
28     FA_SUBWINDOW_CONTAINER,
29     COMPONENT_SUBWINDOW_CONTAINER = 10,
30     PLUGIN_SUBCONTAINER = 20,
31 };
32 
33 constexpr int32_t INSTANCE_ID_UNDEFINED = -1;
34 constexpr int32_t INSTANCE_ID_PLATFORM = -2;
35 constexpr int32_t CONTAINER_ID_DIVIDE_SIZE = 100000;
36 constexpr int32_t MIN_PLUGIN_SUBCONTAINER_ID = PLUGIN_SUBCONTAINER * CONTAINER_ID_DIVIDE_SIZE;
37 constexpr int32_t MIN_SUBCONTAINER_ID = COMPONENT_SUBWINDOW_CONTAINER * CONTAINER_ID_DIVIDE_SIZE;
38 constexpr int32_t MIN_PA_SERVICE_ID = PA_SERVICE_CONTAINER * CONTAINER_ID_DIVIDE_SIZE;
39 } // namespace OHOS::Ace
40 
41 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMMON_CONTAINER_CONSTS_H
42