1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 17:52:07 +02:00

event: Add a command

Add a command to show the available events.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-03-04 08:43:06 -07:00
committed by Tom Rini
parent 7fe32b3442
commit c81b460c86
5 changed files with 40 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ static inline const char *event_spy_id(struct evspy_info *spy)
int event_register(const char *id, enum event_t type, event_handler_t func,
void *ctx);
/** event_show_spy_list( - Show a list of event spies */
void event_show_spy_list(void);
#if CONFIG_IS_ENABLED(EVENT)
/**
* event_notify() - notify spies about an event