!1432 Preferences: change enum name

Merge pull request !1432 from bluhuang/value
This commit is contained in:
openharmony_ci 2024-09-12 12:48:48 +00:00 committed by Gitee
commit 4f793133bc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -55,23 +55,23 @@ typedef enum Preference_ValueType {
/**
* @brief Null.
*/
TYPE_NULL = 0,
PREFERENCE_TYPE_NULL = 0,
/**
* @brief Int.
*/
TYPE_INT,
PREFERENCE_TYPE_INT,
/**
* @brief boolean.
*/
TYPE_BOOL,
PREFERENCE_TYPE_BOOL,
/**
* @brief String.
*/
TYPE_STRING,
PREFERENCE_TYPE_STRING,
/**
* @brief end butt.
*/
TYPE_BUTT
PREFERENCE_TYPE_BUTT
} Preference_ValueType;
/**
@ -117,7 +117,7 @@ const OH_PreferencesValue *OH_PreferencesPair_GetPreferencesValue(const OH_Prefe
*
* @param object Pointer to the target {@Link OH_PreferencesValue} instance.
* @return Returns the value type obtained.
* {@link TYPE_NULL} indicates invalid args are passed in.
* {@link PREFERENCE_TYPE_NULL} indicates invalid args are passed in.
* @see OH_PreferencesValue.
* @since 13
*/