utils
utilities in C for microcontrollers
Data Fields
event_handler Struct Reference

event handler state More...

#include <event.h>

Data Fields

struct list_element element
 list element for attaching handler to an event
 
void(* fun )(struct event *evt, void *ctx)
 handler function pointer More...
 
struct eventevt
 pointer to keep track of which event to subscribe to once handler finishes
 
unsigned char flags
 flag used to indicate if the handler should be removed
 

Detailed Description

event handler state

Field Documentation

◆ fun

void(* fun) (struct event *evt, void *ctx)

handler function pointer

Parameters
evta pointer to the struct event being published
ctxa pointer to the context that was passed to event_publish

The documentation for this struct was generated from the following file: