mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
modify interface param
Signed-off-by: zwtmichael <zhuwentao5@huawei.com>
This commit is contained in:
parent
f22f09ce25
commit
c35ce38163
@ -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
|
||||
};
|
||||
|
@ -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.
|
||||
|
@ -53,7 +53,7 @@
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_PreferencesOption_SetFilePath"
|
||||
"name": "OH_PreferencesOption_SetFileName"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
|
Loading…
Reference in New Issue
Block a user