modify interface param

Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
This commit is contained in:
zwtmichael 2024-09-10 12:15:07 +08:00
parent f22f09ce25
commit c35ce38163
3 changed files with 7 additions and 7 deletions

View File

@ -230,7 +230,7 @@ int OH_Preferences_Delete(OH_Preferences *preference, const char *key);
*
* @param preference Pointer to the target {@Link OH_Preferences} instance.
* @param context Pointer to the context of the data observer.
* @param observer Pointer to the {@Link OH_PreferencesDataObserver} to register.
* @param observer the {@Link OH_PreferencesDataObserver} to register.
* @param keys Pointer to the keys to observe.
* @param keyCount Number of keys to observe.
* @return Returns the status code of the execution.
@ -243,14 +243,14 @@ int OH_Preferences_Delete(OH_Preferences *preference, const char *key);
* @since 13
*/
int OH_Preferences_RegisterDataObserver(OH_Preferences *preference, void *context,
const OH_PreferencesDataObserver *observer, const char *keys[], uint32_t keyCount);
OH_PreferencesDataObserver observer, const char *keys[], uint32_t keyCount);
/**
* @brief Unregisters a data observer for a Preferences object.
*
* @param preference Pointer to the target {@Link OH_Preferences} instance.
* @param context Pointer to the context of the data observer.
* @param observer Pointer to the {@Link OH_PreferencesDataObserver} to unregister.
* @param observer the {@Link OH_PreferencesDataObserver} to unregister.
* @param keys Pointer to the keys observed. If this parameter is null, this API unregisters the listening for all keys.
* @param keyCount Number of the keys.
* @return Returns the status code of the execution.
@ -262,7 +262,7 @@ int OH_Preferences_RegisterDataObserver(OH_Preferences *preference, void *contex
* @since 13
*/
int OH_Preferences_UnregisterDataObserver(OH_Preferences *preference, void *context,
const OH_PreferencesDataObserver *observer, const char *keys[], uint32_t keyCount);
OH_PreferencesDataObserver observer, const char *keys[], uint32_t keyCount);
#ifdef __cplusplus
};

View File

@ -66,14 +66,14 @@ OH_PreferencesOption *OH_PreferencesOption_Create(void);
* @brief Sets the file path in an {@Link OH_PreferencesOption} instance.
*
* @param option Pointer to the target {@Link OH_PreferencesOption} instance.
* @param filePath Pointer to the file path to set.
* @param fileName Pointer to the file name to set.
* @return Returns the status code of the execution.
* {@link PREFERENCES_OK} success.
* {@link PREFERENCES_ERROR_INVALID_PARAM} indicates invalid args are passed in.
* @see OH_PreferencesOption.
* @since 13
*/
int OH_PreferencesOption_SetFilePath(OH_PreferencesOption *option, const char *filePath);
int OH_PreferencesOption_SetFileName(OH_PreferencesOption *option, const char *fileName);
/**
* @brief Sets the bundle name in an {@Link OH_PreferencesOption} instance.

View File

@ -53,7 +53,7 @@
},
{
"first_introduced": "13",
"name": "OH_PreferencesOption_SetFilePath"
"name": "OH_PreferencesOption_SetFileName"
},
{
"first_introduced": "13",