Skip to content

Commit 168cf77

Browse files
committed
lib: bm_scheduler: rename event handler type
Rename from generic evt_handler_t to bm_scheduler_fn_t. Signed-off-by: Emanuele Di Santo <[email protected]>
1 parent bc3f1d8 commit 168cf77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/bm/bm_scheduler.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" {
2323
/**
2424
* @brief Event handler prototype.
2525
*/
26-
typedef void (*evt_handler_t)(void *evt, size_t len);
26+
typedef void (*bm_scheduler_fn_t)(void *evt, size_t len);
2727

2828
/**
2929
* @brief An event to be scheduled for execution in the main thread.
@@ -38,7 +38,7 @@ struct bm_scheduler_event {
3838
/**
3939
* @brief Event handler.
4040
*/
41-
evt_handler_t handler;
41+
bm_scheduler_fn_t handler;
4242
/**
4343
* @brief Event length.
4444
*/
@@ -63,7 +63,7 @@ struct bm_scheduler_event {
6363
* @retval -EINVAL Invalid @p data and @p len combination.
6464
* @retval -ENOMEM No memory to schedule this event.
6565
*/
66-
int bm_scheduler_defer(evt_handler_t handler, void *data, size_t len);
66+
int bm_scheduler_defer(bm_scheduler_fn_t handler, void *data, size_t len);
6767

6868
/**
6969
* @brief Process deferred events.

lib/bm_scheduler/bm_scheduler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static sys_slist_t event_list;
1919
static struct sys_heap heap;
2020
static uint8_t buf[CONFIG_BM_SCHEDULER_BUF_SIZE];
2121

22-
int bm_scheduler_defer(evt_handler_t handler, void *data, size_t len)
22+
int bm_scheduler_defer(bm_scheduler_fn_t handler, void *data, size_t len)
2323
{
2424
uint32_t pm;
2525
struct bm_scheduler_event *evt;

0 commit comments

Comments
 (0)