Stefan Hajnoczi | ce1c7f8 | 2019-12-18 19:06:59 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Hajnoczi | 0b02503 | 2017-10-05 16:46:54 -0400 | [diff] [blame] | 2 | #ifndef CONTROL_H |
| 3 | #define CONTROL_H |
| 4 | |
| 5 | #include <stdbool.h> |
| 6 | |
| 7 | void control_init(const char *control_host, const char *control_port, |
| 8 | bool server); |
| 9 | void control_cleanup(void); |
| 10 | void control_writeln(const char *str); |
| 11 | char *control_readln(void); |
| 12 | void control_expectln(const char *str); |
Stefano Garzarella | 5a2b242 | 2019-12-18 19:07:06 +0100 | [diff] [blame] | 13 | bool control_cmpln(char *line, const char *str, bool fail); |
Stefan Hajnoczi | 0b02503 | 2017-10-05 16:46:54 -0400 | [diff] [blame] | 14 | |
| 15 | #endif /* CONTROL_H */ |