diff --git a/applications/debug/unit_tests/tests/pipe/pipe_test.c b/applications/debug/unit_tests/tests/pipe/pipe_test.c index da0bc83e94a..d440a04eecb 100644 --- a/applications/debug/unit_tests/tests/pipe/pipe_test.c +++ b/applications/debug/unit_tests/tests/pipe/pipe_test.c @@ -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); diff --git a/lib/toolbox/pipe.c b/lib/toolbox/pipe.c index bedcd1dfa34..9dc1d368e21 100644 --- a/lib/toolbox/pipe.c +++ b/lib/toolbox/pipe.c @@ -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) { diff --git a/lib/toolbox/pipe.h b/lib/toolbox/pipe.h index afa6f06b92e..22123ee46e8 100644 --- a/lib/toolbox/pipe.h +++ b/lib/toolbox/pipe.h @@ -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); diff --git a/targets/f18/api_symbols.csv b/targets/f18/api_symbols.csv index 6454fad7b24..7894a2eed03 100644 --- a/targets/f18/api_symbols.csv +++ b/targets/f18/api_symbols.csv @@ -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* diff --git a/targets/f7/api_symbols.csv b/targets/f7/api_symbols.csv index 00dc4655725..3cb2e9430b9 100644 --- a/targets/f7/api_symbols.csv +++ b/targets/f7/api_symbols.csv @@ -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*