host_serial interface is used to control the text
console host serial connection.
The setup method will set up a host serial connection on a pty
(Linux) or COM port (Windows). On Linux, name can be
NULL in which case a new pty is opened.
The name method returns the name of any opened pty or COM port,
or NULL.
The shutdown closes any opened pty or COM port.
SIM_INTERFACE(host_serial) {
bool (*setup)(conf_object_t *NOTNULL obj, const char *name);
const char *(*name)(conf_object_t *NOTNULL obj);
void (*shutdown)(conf_object_t *NOTNULL obj);
};
#define HOST_SERIAL_INTERFACE "host_serial"