1 /* input.h -- input headers */
20 #define CONNECTIONS (1<<1)
22 #define MAX_CONTENT 128
24 #define LINE_BUFFERED (1<<0)
25 #define CONTENT_BUFFER (1<<1)
26 #define INPUT_ECHO (1<<2)
28 /* input specific variables */
29 typedef struct s_input {
37 /* function prototypes */
38 int input_init(t_input *input,int outfd);
39 int input_ios_init(t_input *input);
40 int input_shutdown(t_input *input);
41 int input_get_event(t_input *input,int (*callback)(t_input *input,void *ptr),