vrahane commented on a change in pull request #27: Update mynewt port of mcumgr 
and various fixes
URL: https://github.com/apache/mynewt-mcumgr/pull/27#discussion_r330781708
 
 

 ##########
 File path: cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h
 ##########
 @@ -100,6 +104,71 @@ int img_mgmt_impl_write_image_data(unsigned int offset, 
const void *data,
  */
 int img_mgmt_impl_swap_type(void);
 
+/**
+ * Collects information about the specified image slot.
+ *
+ * @return                      Flags of the specified image slot
+ */
+uint8_t img_mgmt_state_flags(int query_slot);
+
+/**
+ * Erases image data at given offset
+ *
+ * @param offset                The offset within slot 1 to erase at.
+ * @param num_bytes             The number of bytes to erase.
+ * @return                      0 on success, MGMT_ERR_[...] code on failure.
+ */
+int
+img_mgmt_impl_erase_image_data(unsigned int off, unsigned int num_bytes);
 
 Review comment:
   Changed this one and others as well.

----------------------------------------------------------------
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

Reply via email to