Files

18 lines
495 B
C
Raw Permalink Normal View History

2019-12-18 19:06:59 +01:00
/* SPDX-License-Identifier: GPL-2.0-only */
#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);
2023-01-10 10:15:15 +00:00
unsigned long control_readulong(void);
void control_expectln(const char *str);
bool control_cmpln(char *line, const char *str, bool fail);
2023-01-10 10:15:15 +00:00
void control_writeulong(unsigned long value);
#endif /* CONTROL_H */