xref: /linux/tools/testing/vsock/control.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1ce1c7f84SStefan Hajnoczi /* SPDX-License-Identifier: GPL-2.0-only */
20b025033SStefan Hajnoczi #ifndef CONTROL_H
30b025033SStefan Hajnoczi #define CONTROL_H
40b025033SStefan Hajnoczi 
50b025033SStefan Hajnoczi #include <stdbool.h>
60b025033SStefan Hajnoczi 
70b025033SStefan Hajnoczi void control_init(const char *control_host, const char *control_port,
80b025033SStefan Hajnoczi 		  bool server);
90b025033SStefan Hajnoczi void control_cleanup(void);
100b025033SStefan Hajnoczi void control_writeln(const char *str);
110b025033SStefan Hajnoczi char *control_readln(void);
12*5c338112SArseniy Krasnov unsigned long control_readulong(void);
130b025033SStefan Hajnoczi void control_expectln(const char *str);
145a2b2425SStefano Garzarella bool control_cmpln(char *line, const char *str, bool fail);
15*5c338112SArseniy Krasnov void control_writeulong(unsigned long value);
160b025033SStefan Hajnoczi 
170b025033SStefan Hajnoczi #endif /* CONTROL_H */
18