Skip to content

Commit

Permalink
refactor: rename pipe_set_pipe_broken_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
portasynthinca3 committed Dec 23, 2024
1 parent 5c00891 commit 8b74023
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion applications/debug/unit_tests/tests/pipe/pipe_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static int32_t ancillary_thread(void* context) {
pipe_set_callback_context(pipe, &thread_ctx);
pipe_set_data_arrived_callback(pipe, on_data_arrived, 0);
pipe_set_space_freed_callback(pipe, on_space_freed, FuriEventLoopEventFlagEdge);
pipe_set_pipe_broken_callback(pipe, on_became_broken, 0);
pipe_set_broken_callback(pipe, on_became_broken, 0);

furi_event_loop_run(thread_ctx.event_loop);

Expand Down
2 changes: 1 addition & 1 deletion lib/toolbox/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void pipe_set_space_freed_callback(
pipe);
}

void pipe_set_pipe_broken_callback(
void pipe_set_broken_callback(
PipeSide* pipe,
PipeSideBrokenCallback callback,
FuriEventLoopEvent event) {
Expand Down
2 changes: 1 addition & 1 deletion lib/toolbox/pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void pipe_set_space_freed_callback(
* @warning Attach the pipe side to an event loop first using
* `pipe_attach_to_event_loop`.
*/
void pipe_set_pipe_broken_callback(
void pipe_set_broken_callback(
PipeSide* pipe,
PipeSideBrokenCallback callback,
FuriEventLoopEvent event);
Expand Down
2 changes: 1 addition & 1 deletion targets/f18/api_symbols.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ Function,+,pipe_role,PipeRole,PipeSide*
Function,+,pipe_send,size_t,"PipeSide*, const void*, size_t, FuriWait"
Function,+,pipe_set_callback_context,void,"PipeSide*, void*"
Function,+,pipe_set_data_arrived_callback,void,"PipeSide*, PipeSideDataArrivedCallback, FuriEventLoopEvent"
Function,+,pipe_set_pipe_broken_callback,void,"PipeSide*, PipeSideBrokenCallback, FuriEventLoopEvent"
Function,+,pipe_set_broken_callback,void,"PipeSide*, PipeSideBrokenCallback, FuriEventLoopEvent"
Function,+,pipe_set_space_freed_callback,void,"PipeSide*, PipeSideSpaceFreedCallback, FuriEventLoopEvent"
Function,+,pipe_spaces_available,size_t,PipeSide*
Function,+,pipe_state,PipeState,PipeSide*
Expand Down
2 changes: 1 addition & 1 deletion targets/f7/api_symbols.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2939,7 +2939,7 @@ Function,+,pipe_role,PipeRole,PipeSide*
Function,+,pipe_send,size_t,"PipeSide*, const void*, size_t, FuriWait"
Function,+,pipe_set_callback_context,void,"PipeSide*, void*"
Function,+,pipe_set_data_arrived_callback,void,"PipeSide*, PipeSideDataArrivedCallback, FuriEventLoopEvent"
Function,+,pipe_set_pipe_broken_callback,void,"PipeSide*, PipeSideBrokenCallback, FuriEventLoopEvent"
Function,+,pipe_set_broken_callback,void,"PipeSide*, PipeSideBrokenCallback, FuriEventLoopEvent"
Function,+,pipe_set_space_freed_callback,void,"PipeSide*, PipeSideSpaceFreedCallback, FuriEventLoopEvent"
Function,+,pipe_spaces_available,size_t,PipeSide*
Function,+,pipe_state,PipeState,PipeSide*
Expand Down

0 comments on commit 8b74023

Please sign in to comment.