Index: sources/update/Package.h =================================================================== diff -u -r61c46e9379ca82d826fbe7fae018b8362a107d9d -r7cf31f6cfef97bb564a103c263821a3b722c8a2b --- sources/update/Package.h (.../Package.h) (revision 61c46e9379ca82d826fbe7fae018b8362a107d9d) +++ sources/update/Package.h (.../Package.h) (revision 7cf31f6cfef97bb564a103c263821a3b722c8a2b) @@ -19,6 +19,7 @@ #include "UpdateProtocol.h" #include "UiUpdateStatus.h" #include "IDataProvider.h" +#include "IEnterBootLoader.h" #include #include @@ -29,6 +30,7 @@ #include "PackageItem.h" #include "SignRsa.h" + /*! * \brief Utility container for UI */ @@ -251,6 +253,16 @@ // Reboot to run the firmware (both HD and DG) apps if they are valid. void rebootFW(); + + /*! + * \brief Tell this class which interface to use if any to enter bootloader. + * + * \param pIEnterBootLoader Pointer to interface class. + */ + void setEnterBootloader(SwUpdate::IEnterBootLoader *pIEnterBootLoader) { + _pIEnterBL = pIEnterBootLoader; + } + protected: bool parseInternal(FILE *fp); @@ -284,6 +296,7 @@ std::size_t _startData; ///< Where data starts in the file. FILE * _pFileUpdating; ///< File being updated. + SwUpdate::IEnterBootLoader* _pIEnterBL; ///< Command interface for app to enter bootloader. std::vector _streams; ///< Target streams. std::vector _packages; ///< Packages. std::vector _avoid; ///< Avoid these.