diff options
Diffstat (limited to 'src/dumm/mconsole.h')
-rw-r--r-- | src/dumm/mconsole.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dumm/mconsole.h b/src/dumm/mconsole.h index 55ce15dda..329c40c06 100644 --- a/src/dumm/mconsole.h +++ b/src/dumm/mconsole.h @@ -43,6 +43,17 @@ struct mconsole_t { bool (*del_iface)(mconsole_t *this, char *guest); /** + * Execute a command in the UML host. + * + * @param cb callback function to invoke for each line + * @param data data to pass to callback + * @param cmd command to invoke + * @return return value of command + */ + int (*exec)(mconsole_t *this, void(*cb)(void*,char*,size_t), void *data, + char *cmd); + + /** * @brief Destroy the mconsole instance */ void (*destroy) (mconsole_t *this); |