agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
event_handler.h File Reference
#include <zrtos/types.h>
Include dependency graph for event_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _zrtos_event_handler_t
 

Macros

#define ZRTOS_EVENT_HANDLER(callback_, type_, ctx_)
 

Typedefs

typedef bool(* zrtos_event_handler_callback_t) (struct _zrtos_event_handler_t *thiz, struct _zrtos_event_t *args)
 
typedef struct _zrtos_event_handler_t zrtos_event_handler_t
 

Functions

void * zrtos_event_handler__get_context (zrtos_event_handler_t *thiz)
 

Macro Definition Documentation

◆ ZRTOS_EVENT_HANDLER

#define ZRTOS_EVENT_HANDLER (   callback_,
  type_,
  ctx_ 
)
Value:
{ \
.callback=callback_ \
,.type=type_ \
,.ctx=ctx_ \
}

Definition at line 30 of file event_handler.h.

Typedef Documentation

◆ zrtos_event_handler_callback_t

typedef bool(* zrtos_event_handler_callback_t) (struct _zrtos_event_handler_t *thiz,struct _zrtos_event_t *args)

Definition at line 19 of file event_handler.h.

◆ zrtos_event_handler_t

Function Documentation

◆ zrtos_event_handler__get_context()

void* zrtos_event_handler__get_context ( zrtos_event_handler_t thiz)

Definition at line 37 of file event_handler.h.

39  {
40  return thiz->ctx;
41 }