vrahane 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_r332300178
##########
File path: mgmt/imgmgr/include/imgmgr/imgmgr.h
##########
@@ -133,16 +142,29 @@ imgr_get_current_hash(uint8_t *hash, uint16_t hashlen);
*/
void imgr_set_upload_cb(imgr_upload_fn *cb, void *arg);
-uint8_t imgmgr_state_flags(int query_slot);
-int imgmgr_state_slot_in_use(int slot);
-int imgmgr_state_set_pending(int slot, int permanent);
-int imgmgr_state_confirm(void);
-int imgmgr_find_best_area_id(void);
+/** @brief Generic callback function for events */
+typedef void (*imgmgr_dfu_cb)(void);
+
+/** Callback function pointers */
+typedef struct {
+ imgmgr_dfu_cb dfu_started_cb;
+ imgmgr_dfu_cb dfu_stopped_cb;
+ imgmgr_dfu_cb dfu_pending_cb;
+ imgmgr_dfu_cb dfu_confirmed_cb;
+} imgmgr_dfu_callbacks_t;
+
+/**
+ * Register iimage manager callbacks
Review comment:
done
----------------------------------------------------------------
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