X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=input%2Finput.h;h=c4643543f6ae12a627d210090f6349d6091da6f0;hb=HEAD;hp=6efcf6ef19e4b43613063567fa6171cca94b2167;hpb=24edc387e6e88c32c6142f397ee891746eed62e3;p=my-code%2Fapi.git diff --git a/input/input.h b/input/input.h index 6efcf6e..c464354 100644 --- a/input/input.h +++ b/input/input.h @@ -4,6 +4,7 @@ #define INPUT_H /* includes */ +#define _GNU_SOURCE #include #include #include @@ -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);