fixed rgb values of pixmap struct
[my-code/api.git] / input / input.h
index 6efcf6e..c464354 100644 (file)
@@ -4,6 +4,7 @@
 #define INPUT_H
 
 /* includes */
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -26,6 +27,7 @@
 
 /* input specific variables */
 typedef struct s_input {
+  int outfd;
   char *content;
   int c_count;
   unsigned char mode;
@@ -33,7 +35,8 @@ typedef struct s_input {
 } t_input;
 
 /* function prototypes */
-int input_init(t_input *input);
+int input_init(t_input *input,int outfd);
+int input_ios_init(t_input *input);
 int input_shutdown(t_input *input);
 int input_get_event(t_input *input,int (*callback)(t_input *input,void *ptr),
                    void *ptr);