Get DFU callback in the applicaiton

Hello, 

I'm trying to find a way to get an event or callback in the application when DFU start updating or downloading image using BLE. 

so far I found CONFIG_MCUBOOT_ACTION_HOOKS but I'm now sure if this is the correct way, but anyway I added 

CONFIG_MCUBOOT_ACTION_HOOKS to the mcuboot in the child_image and still getting this error 
bootutil\mcuboot_status.h:27:40: error: expected identifier or '(' before 'do'
27 | #define mcuboot_status_change(_status) do {} while (0)
platform:
ncs: v2.2.0
 
Application: is based on light sample (mesh) and using the dfu settings of the sample
soc: nrf52480
Best regards
Related