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