mlaz commented on a change in pull request #1917: Use SMP/OMP/MCUmgr, remove newtmgr and change OICMGR to use OMP URL: https://github.com/apache/mynewt-core/pull/1917#discussion_r331238704
########## File path: mgmt/imgmgr/include/imgmgr/imgmgr.h ########## @@ -117,6 +80,55 @@ int imgr_my_version(struct image_version *ver); int imgr_get_current_hash(uint8_t *hash, uint16_t hashlen); +int imgmgr_find_best_area_id(void); + +/** + * Reads image information + * + * @param image_slot Slot to read image info from + * @param ver Ptr to image version + * @param hash Ptr to hash of the image read + * @param flags Ptr to flags of the image read + * + * Returns -1 if area is not readable + * Returns 0 if image in slot is ok + * Returns 1 if there is not a full image + * Returns 2 if slot is empty + */ +int +imgr_read_info(int image_slot, struct image_version *ver, uint8_t *hash, Review comment: Fixed. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
