Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
event.h File Reference

hawkBit event header file More...

#include <zephyr/kernel.h>
#include <zephyr/sys/slist.h>

Go to the source code of this file.

Macros

#define HAWKBIT_EVENT_CREATE_CALLBACK(_callback, _handler, _event)
 Macro to create and initialize a struct hawkbit_event_callback properly.
 

Typedefs

typedef void(* hawkbit_event_callback_handler_t) (struct hawkbit_event_callback *cb, enum hawkbit_event_type event)
 Define the application callback handler function signature.
 

Enumerations

enum  hawkbit_event_type {
  HAWKBIT_EVENT_ERROR , HAWKBIT_EVENT_ERROR_NETWORKING , HAWKBIT_EVENT_ERROR_PERMISSION , HAWKBIT_EVENT_ERROR_METADATA ,
  HAWKBIT_EVENT_ERROR_DOWNLOAD , HAWKBIT_EVENT_ERROR_ALLOC , HAWKBIT_EVENT_UPDATE_DOWNLOADED , HAWKBIT_EVENT_NO_UPDATE ,
  HAWKBIT_EVENT_CANCEL_UPDATE , HAWKBIT_EVENT_START_DOWNLOAD , HAWKBIT_EVENT_END_DOWNLOAD , HAWKBIT_EVENT_START_RUN ,
  HAWKBIT_EVENT_END_RUN , HAWKBIT_EVENT_BEFORE_REBOOT
}
 hawkBit event type. More...
 

Functions

static void hawkbit_event_init_callback (struct hawkbit_event_callback *callback, hawkbit_event_callback_handler_t handler, enum hawkbit_event_type event)
 Helper to initialize a struct hawkbit_event_callback properly.
 
int hawkbit_event_add_callback (struct hawkbit_event_callback *cb)
 Add an application callback.
 
int hawkbit_event_remove_callback (struct hawkbit_event_callback *cb)
 Remove an application callback.
 

Detailed Description

hawkBit event header file