Skip to content
Commit a0682880 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Carles Cufí
Browse files

shell: add new APIs to get the backend instances



Added some new APIs to get the backend instances more easily,
so that dev does not need to rely on `shell_backend_*_get_ptr`,
which looks more like a hack to access a local variable.

These APIs are basically copied from the log backend
implementation.

Added testcase for the APIs.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent dd154406
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment