#ifndef READ_EVENTS #define READ_EVENTS #include #include "event.h" /* * Structure utilisée pour passer des arguments à la fonction * pthread_cleanup_push. */ typedef struct { int fd; event *user_event; Display *display; FILE *file; } args_cancel_thread_read; args_cancel_thread_read * init_args_read(int fd, event *user_event, Display *display, FILE *file); void write_event(event *new_event, FILE *file); /* Just listen the input and write them in the parameter file. */ int listen(FILE *file); #endif