|
PebbleOS v4.47.0-512-g5285d4236
|
Backend operations. More...
#include <backend.h>
Data Fields | |
| void(* | write )(const struct pbl_shell *sh, const char *data, size_t len) |
| Writes output. | |
| void(* | done )(const struct pbl_shell *sh, int ret) |
| Optional. | |
| void(* | lock )(const struct pbl_shell *sh) |
| Optional. | |
| void(* | unlock )(const struct pbl_shell *sh) |
| Optional. | |
Backend operations.
| void(* pbl_shell_backend_api::done) (const struct pbl_shell *sh, int ret) |
Optional.
A submitted command finished with ret.
| void(* pbl_shell_backend_api::lock) (const struct pbl_shell *sh) |
Optional.
Hold back other users of the transport while the prompt and the line being edited change, for backends that print over them. Must be recursive. Not held while commands run.
| void(* pbl_shell_backend_api::write) (const struct pbl_shell *sh, const char *data, size_t len) |
Writes output.
Runs on the thread printing, usually SysWorkq.