projects
/
my-code
/
ivac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed input system (callback added), more ivac tests
[my-code/ivac.git]
/
src
/
input.h
diff --git
a/src/input.h
b/src/input.h
index
7f5796b
..
e31ebe2
100644
(file)
--- a/
src/input.h
+++ b/
src/input.h
@@
-8,10
+8,11
@@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
+#include <termios.h>
/* defines */
/* 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)
#define MENUE (1<<0)
#define CONNECTIONS (1<<1)
@@
-21,7
+22,14
@@
/* input specific variables */
typedef struct s_input {
char *content;
/* input specific variables */
typedef struct s_input {
char *content;
+ int c_count;
unsigned char mode;
} t_input;
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
#endif