PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
pbl_shell_backend_api Struct Reference

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.
 

Detailed Description

Backend operations.

Field Documentation

◆ done

void(* pbl_shell_backend_api::done) (const struct pbl_shell *sh, int ret)

Optional.

A submitted command finished with ret.

◆ lock

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.

◆ unlock

void(* pbl_shell_backend_api::unlock) (const struct pbl_shell *sh)

Optional.

Undoes lock.

◆ write

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.


The documentation for this struct was generated from the following file: