You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
332 B

1 year ago
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdint.h>
  4. #include "app_event.h"
  5. typedef void (*app_event_listener_t)(void* p_event_data, uint16_t event_size);
  6. typedef struct {
  7. app_event_listener_t cbfunc;
  8. } AppEventListener;
  9. void AppEvent_regListener(app_event_listener_t listener);
  10. void AppEvent_pushEvent(app_event_t* event);