X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Finput.h;h=e31ebe2475f96b584fc91d507eb5c51ff6874290;hp=7f5796be534550825e26bb8415873207c5bf0e05;hb=f7d9ad56ad9c10284c067cb2db36a7c72b33c5b3;hpb=c8c162c2b1f82f32160bcaa4159ea8735a8582c5 diff --git a/src/input.h b/src/input.h index 7f5796b..e31ebe2 100644 --- a/src/input.h +++ b/src/input.h @@ -8,10 +8,11 @@ #include #include #include +#include /* defines */ -#define K_SUCCESS 1 -#define K_ERROR -1 +#define I_SUCCESS 1 +#define I_ERROR -1 #define MENUE (1<<0) #define CONNECTIONS (1<<1) @@ -21,7 +22,14 @@ /* input specific variables */ typedef struct s_input { char *content; + int c_count; unsigned char mode; } t_input; +/* function prototypes */ +int input_init(t_input *input); +int input_shutdown(t_input *input); +int input_get_char(t_input *input,int (*callback)(t_input *input,void *ptr), + void *ptr); + #endif