io.h 381 B

12345678910111213141516171819202122
  1. #ifndef __IO_H__
  2. #define __IO_H__
  3. #include <stdio.h>
  4. #include <stdbool.h>
  5. typedef enum invocation_type {
  6. SCRIPTED = 0,
  7. PIPE
  8. } invocation_type;
  9. struct arguments {
  10. invocation_type mode;
  11. FILE *ist;
  12. };
  13. void getline_wrapper(struct arguments *args);
  14. void no_read(struct arguments *args);
  15. extern bool break_print_loop;
  16. void sigint_handler(int sig);
  17. #endif // __IO_H__