From ccd0454c389040cc7889f73ff9da023a0ef13487 Mon Sep 17 00:00:00 2001 From: HanSY Date: Tue, 1 Jul 2025 16:57:47 +0800 Subject: [PATCH] test Signed-off-by: HanSY --- .../include/resourcemanager/resmgr_common.h | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/global/resource_management/include/resourcemanager/resmgr_common.h b/global/resource_management/include/resourcemanager/resmgr_common.h index 13b49689..66d54160 100644 --- a/global/resource_management/include/resourcemanager/resmgr_common.h +++ b/global/resource_management/include/resourcemanager/resmgr_common.h @@ -144,6 +144,7 @@ typedef enum ScreenDensity { * @brief Enumerates device configuration. * * @since 12 + * @deprecated since 20 */ typedef struct ResourceManager_Configuration { /** Indicates the screen direction of the current device. */ @@ -163,6 +164,30 @@ typedef struct ResourceManager_Configuration { /** Reserved attributes. */ uint32_t reserved[20]; } ResourceManager_Configuration; + +/** + * @brief Enumerates device configuration. + * + * @since 20 + */ +typedef struct ResourceManager_Configuration { + /** Indicates the screen direction of the current device. */ + ResourceManager_Direction direction; + /** Indicates the current system language, for example, zh-Hans-CN. */ + char* locale; + /** Indicates the device type. */ + ResourceManager_DeviceType deviceType; + /** Indicates the screen density. */ + ScreenDensity screenDensityDpi; + /** Indicates the color mode. */ + ResourceManager_ColorMode colorMode; + /** Indicates the mcc. */ + uint32_t mcc; + /** Indicates the mnc. */ + uint32_t mnc; + /** Reserved attributes. */ + uint32_t reserved[20]; +} ResourceManager_Configuration; #ifdef __cplusplus }; #endif -- Gitee