blob: 51814b4f9ac153052b3b0c381dd012a304ba762d [file] [log] [blame]
Stefan Hajnoczice1c7f82019-12-18 19:06:59 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Hajnoczi0b025032017-10-05 16:46:54 -04002#ifndef CONTROL_H
3#define CONTROL_H
4
5#include <stdbool.h>
6
7void control_init(const char *control_host, const char *control_port,
8 bool server);
9void control_cleanup(void);
10void control_writeln(const char *str);
11char *control_readln(void);
12void control_expectln(const char *str);
Stefano Garzarella5a2b2422019-12-18 19:07:06 +010013bool control_cmpln(char *line, const char *str, bool fail);
Stefan Hajnoczi0b025032017-10-05 16:46:54 -040014
15#endif /* CONTROL_H */