diff --git a/interfaces/innerkits/include/iupdate_service.h b/interfaces/innerkits/include/iupdate_service.h index 326b169da91297911c0ce1d18e54578d6aceec56..8a9547f9beaa3ee51ab886c531e60db61710f310 100755 --- a/interfaces/innerkits/include/iupdate_service.h +++ b/interfaces/innerkits/include/iupdate_service.h @@ -43,6 +43,7 @@ public: }; DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Updater.IUpdateService"); + public: virtual int32_t RegisterUpdateCallback(const UpdateContext &ctx, const sptr& updateCallback) = 0; @@ -56,7 +57,7 @@ public: virtual int32_t GetNewVersion(VersionInfo &versionInfo) = 0; - virtual int32_t GetUpgradeStatus (UpgradeInfo &info) = 0; + virtual int32_t GetUpgradeStatus(UpgradeInfo &info) = 0; virtual int32_t SetUpdatePolicy(const UpdatePolicy &policy) = 0; diff --git a/interfaces/innerkits/include/update_helper.h b/interfaces/innerkits/include/update_helper.h index 83e4ccb2b13e4b6243835e53c78888b613a0831e..ebe548b40cdbca75e8328cc24ceaaa3d4ef0ba80 100755 --- a/interfaces/innerkits/include/update_helper.h +++ b/interfaces/innerkits/include/update_helper.h @@ -212,6 +212,6 @@ private: exper; \ } \ } while (0) -} +} // namespace update_engine } // namespace OHOS #endif // UPDATER_HELPER_H \ No newline at end of file diff --git a/interfaces/innerkits/include/update_service_kits.h b/interfaces/innerkits/include/update_service_kits.h index 43f5c6c02769f567afaafc3a365da96239edf9ee..9c198f87c0f9c517ecfa643e70e2ad0966c68eff 100755 --- a/interfaces/innerkits/include/update_service_kits.h +++ b/interfaces/innerkits/include/update_service_kits.h @@ -47,7 +47,7 @@ public: virtual int32_t GetNewVersion(VersionInfo &versionInfo) = 0; - virtual int32_t GetUpgradeStatus (UpgradeInfo &info) = 0; + virtual int32_t GetUpgradeStatus(UpgradeInfo &info) = 0; virtual int32_t SetUpdatePolicy(const UpdatePolicy &policy) = 0;