diff --git a/global/resource_management/include/resourcemanager/resmgr_common.h b/global/resource_management/include/resourcemanager/resmgr_common.h index 13b49689ca2ea6f28f16fc2ac7e9a3919dc27b5b..66d54160e08f510950728862b7672bffcfb4d115 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