control.h 495 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef CONTROL_H
  3. #define CONTROL_H
  4. #include <stdbool.h>
  5. void control_init(const char *control_host, const char *control_port,
  6. bool server);
  7. void control_cleanup(void);
  8. void control_writeln(const char *str);
  9. char *control_readln(void);
  10. unsigned long control_readulong(void);
  11. void control_expectln(const char *str);
  12. bool control_cmpln(char *line, const char *str, bool fail);
  13. void control_writeulong(unsigned long value);
  14. #endif /* CONTROL_H */