From cc835244eca07785cd762c7a79d9bbdeb01f24cb Mon Sep 17 00:00:00 2001 From: renjiecui Date: Mon, 27 Nov 2023 09:55:04 +0800 Subject: [PATCH] modify code Signed-off-by: renjiecui --- .../relational_store/include/relational_store.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/distributeddatamgr/relational_store/include/relational_store.h b/distributeddatamgr/relational_store/include/relational_store.h index 3a1f4771794..fbf6758af29 100644 --- a/distributeddatamgr/relational_store/include/relational_store.h +++ b/distributeddatamgr/relational_store/include/relational_store.h @@ -737,15 +737,6 @@ typedef struct Rdb_ProgressDetails { */ Rdb_TableDetails *OH_Rdb_GetTableDetails(Rdb_ProgressDetails *progress, int32_t version); -/** - * @brief The callback function of sync. - * - * @param progressDetails The details of the sync progress. - * @see Rdb_ProgressDetails. - * @since 11 - */ -typedef void (*Rdb_SyncCallback)(Rdb_ProgressDetails *progressDetails); - /** * @brief Sync data to cloud. * @@ -753,14 +744,14 @@ typedef void (*Rdb_SyncCallback)(Rdb_ProgressDetails *progressDetails); * @param mode Represents the {@link Rdb_SyncMode} of sync progress. * @param tables Indicates the names of tables to sync. * @param count The count of tables to sync. If value equals 0, sync all tables of the store. - * @param callback The {@link Rdb_SyncCallback} of cloud sync progress. + * @param observer The {@link Rdb_ProgressObserver} of cloud sync progress. * @return Returns the status code of the execution. See {@link OH_Rdb_ErrCode}. * @see OH_Rdb_Store. - * @see Rdb_SyncCallback. + * @see Rdb_ProgressObserver. * @since 11 */ int OH_Rdb_CloudSync(OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables[], uint32_t count, - Rdb_SyncCallback *callback); + const Rdb_ProgressObserver *observer); #ifdef __cplusplus }; #endif -- Gitee