libdragon
|
Standard I/O hook structure. More...
#include <system.h>
Data Fields | |
int(* | stdin_read )(char *data, unsigned int len) |
Function to call when performing a STDIN read. | |
int(* | stdout_write )(char *data, unsigned int len) |
Function to call when performing a STDOUT write. | |
int(* | stderr_write )(char *data, unsigned int len) |
Function to call when performing a STDERR write. | |
Standard I/O hook structure.
This structure provides optional callback hooks for code wishing to respond to reads from STDIN or writes to STDOUT or STDERR. Any function that code does not wish to handle should be left as a null pointer.
int(* stdio_t::stdin_read) (char *data, unsigned int len) |
Function to call when performing a STDIN read.
[out] | data | Pointer to data buffer to place the read data |
[in] | len | Length of data in bytes expected to be read |
int(* stdio_t::stdout_write) (char *data, unsigned int len) |
Function to call when performing a STDOUT write.
[in] | data | Pointer to data buffer containing the data to write |
[in] | len | Length of data in bytes expected to be written |
int(* stdio_t::stderr_write) (char *data, unsigned int len) |
Function to call when performing a STDERR write.
[in] | data | Pointer to data buffer containing the data to write |
[in] | len | Length of data in bytes expected to be written |