1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef SHELL_DUMMY_H__
- #define SHELL_DUMMY_H__
- #include <shell/shell.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern const struct shell_transport_api shell_dummy_transport_api;
- struct shell_dummy {
- bool initialized;
-
- size_t len;
-
- char buf[CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE];
- };
- #define SHELL_DUMMY_DEFINE(_name) \
- static struct shell_dummy _name##_shell_dummy; \
- struct shell_transport _name = { \
- .api = &shell_dummy_transport_api, \
- .ctx = (struct shell_dummy *)&_name##_shell_dummy \
- }
- const struct shell *shell_backend_dummy_get_ptr(void);
- const char *shell_backend_dummy_get_output(const struct shell *shell,
- size_t *sizep);
- void shell_backend_dummy_clear_output(const struct shell *shell);
- #ifdef __cplusplus
- }
- #endif
- #endif
|