^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef CONTROL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define CONTROL_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <stdbool.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) void control_init(const char *control_host, const char *control_port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) bool server);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) void control_cleanup(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void control_writeln(const char *str);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) char *control_readln(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void control_expectln(const char *str);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) bool control_cmpln(char *line, const char *str, bool fail);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif /* CONTROL_H */