diff options
author | toni <matzeton@googlemail.com> | 2015-11-08 20:28:30 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2015-11-11 22:53:07 +0100 |
commit | f2f6ea5029c6c43dc43d714978daca38c03a8a83 (patch) | |
tree | 745932f072a5c0246a3a3fb19ad341dcba401eed /src/ui_ani.h | |
parent | 5b73c45d46f33610fa1d99c6467e24fa7861075d (diff) |
- changed dir structure
- fixed ipc semaphore/mq stuff
Diffstat (limited to 'src/ui_ani.h')
-rw-r--r-- | src/ui_ani.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ui_ani.h b/src/ui_ani.h new file mode 100644 index 0000000..3d6ece2 --- /dev/null +++ b/src/ui_ani.h @@ -0,0 +1,43 @@ +#ifndef UI_ANIC_H +#define UI_ANIC_H 1 + +#include <ncurses.h> + + +typedef int (*uicb_anic)(WINDOW *, void *, bool); + +struct anic_default { + char state; + char *fmt; +}; + +struct anic { + unsigned int x; + unsigned int y; + uicb_anic uicb; + void *data; + chtype attrs; +}; + +struct anic * +init_anic_default(unsigned int x, unsigned int y, chtype attrs, char *fmt); + +struct anic * +init_anic(unsigned int x, unsigned int y, chtype attrs, uicb_anic uicb); + +void +free_anic_default(struct anic *a); + +void +free_anic(struct anic *a); + +int +anic_cb(WINDOW *win, void *data, bool timed_out); + +void +register_anic(struct anic *a, uicb_anic uicb); + +void +register_anic_default(struct anic *a); + +#endif |