Mercurial > projects > pwm
diff pager.h @ 19:5c6155c8e9b6
Handle signals
Handled signals are generally blocked and only unblocked when doing blocking
I/O, i.e. either when reading commands or printing results. A (possibly
queued) signal will then interrupt I/O and can be dealt with in the main loop.
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Fri, 01 Sep 2017 22:33:41 +0200 |
parents | a08ef0674d8e |
children |
line wrap: on
line diff
--- a/pager.h Thu Aug 24 13:10:56 2017 +0200 +++ b/pager.h Fri Sep 01 22:33:41 2017 +0200 @@ -27,12 +27,14 @@ #include <stdarg.h> +#include "io.h" + struct pager; -struct pager * pager_create(FILE *fp); +struct pager * pager_create(int); void pager_destroy(struct pager *); int pager_vprintf(struct pager *, const char *, va_list); int pager_printf(struct pager *, const char *, ...); -void pager_show(struct pager *); +enum io_status pager_show(struct pager *); #endif /* !PAGER_H */