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