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 API_CORE_ENGINEINFO_H 17 #define API_CORE_ENGINEINFO_H 18 19 #include <cstdint> 20 21 #include <base/containers/string.h> 22 #include <core/namespace.h> 23 #include <core/os/intf_platform.h> 24 25 CORE_BEGIN_NAMESPACE() 26 /** \addtogroup group_engineinfo 27 * @{ 28 */ 29 /** Version info */ 30 struct VersionInfo { 31 /** Name, default is "no_name" */ 32 BASE_NS::string name { "no_name" }; 33 /** Major number of version */ 34 uint32_t versionMajor { 0 }; 35 /** Minor number of version */ 36 uint32_t versionMinor { 0 }; 37 /** Patch number of version */ 38 uint32_t versionPatch { 0 }; 39 }; 40 41 /** Context info */ 42 struct ContextInfo {}; 43 44 /** Engine create info */ 45 struct EngineCreateInfo { 46 /** Platform */ 47 PlatformCreateInfo platformCreateInfo; 48 /** Application version */ 49 VersionInfo applicationVersion; 50 /** Application context */ 51 ContextInfo applicationContext; 52 }; 53 /** @} */ 54 CORE_END_NAMESPACE() 55 56 #endif // API_CORE_ENGINEINFO_H 57