1 /* input.h -- input headers */
19 #define CONNECTIONS (1<<1)
21 #define MAX_CONTENT 128
23 #define LINE_BUFFERED (1<<0)
24 #define CONTENT_BUFFER (1<<1)
25 #define INPUT_ECHO (1<<2)
27 /* input specific variables */
28 typedef struct s_input {
35 /* function prototypes */
36 int input_init(t_input *input,int outfd);
37 int input_ios_init(t_input *input);
38 int input_shutdown(t_input *input);
39 int input_get_event(t_input *input,int (*callback)(t_input *input,void *ptr),