xref: /OK3568_Linux_fs/kernel/tools/testing/vsock/control.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun #ifndef CONTROL_H
3*4882a593Smuzhiyun #define CONTROL_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <stdbool.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun void control_init(const char *control_host, const char *control_port,
8*4882a593Smuzhiyun 		  bool server);
9*4882a593Smuzhiyun void control_cleanup(void);
10*4882a593Smuzhiyun void control_writeln(const char *str);
11*4882a593Smuzhiyun char *control_readln(void);
12*4882a593Smuzhiyun void control_expectln(const char *str);
13*4882a593Smuzhiyun bool control_cmpln(char *line, const char *str, bool fail);
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #endif /* CONTROL_H */
16