2019-12-18 21:06:59 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2017-10-05 23:46:54 +03:00
|
|
|
#ifndef CONTROL_H
|
|
|
|
#define CONTROL_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
void control_init(const char *control_host, const char *control_port,
|
|
|
|
bool server);
|
|
|
|
void control_cleanup(void);
|
|
|
|
void control_writeln(const char *str);
|
|
|
|
char *control_readln(void);
|
|
|
|
void control_expectln(const char *str);
|
2019-12-18 21:07:06 +03:00
|
|
|
bool control_cmpln(char *line, const char *str, bool fail);
|
2017-10-05 23:46:54 +03:00
|
|
|
|
|
|
|
#endif /* CONTROL_H */
|