Skip to content

Commit 6ac5c2b

Browse files
committed
IPC service API update
1 parent aa40507 commit 6ac5c2b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/zephyr/ipc/ipc_service.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,21 @@ struct ipc_service_cb {
151151
*/
152152
void (*bound)(void *priv);
153153

154+
/** @brief The endpoint unbound by the remote.
155+
*
156+
* This callback is called when the endpoint binding is removed. It may happen on
157+
* different reasons, e.g. when the remote deregistered the endpoint, connection was
158+
* lost, or remote CPU got reset.
159+
*
160+
* You may want to do some cleanup, resetting, e.t.c. and after that if you want to bound
161+
* again, you can register the endpoint. When the remote becomes available again and it
162+
* also registers the endpoint, the binding will be reestablished and the `bound()`
163+
* callback will be called.
164+
*
165+
* @param[in] priv Private user data.
166+
*/
167+
void (*unbound)(void *priv);
168+
154169
/** @brief New packet arrived.
155170
*
156171
* This callback is called when new data is received.

0 commit comments

Comments
 (0)