projects
/
my-code
/
ivac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed inet.* -> network.*; bugfixes; began input system ...
[my-code/ivac.git]
/
src
/
ivac.h
diff --git
a/src/ivac.h
b/src/ivac.h
index
2f14ab5
..
76844f5
100644
(file)
--- a/
src/ivac.h
+++ b/
src/ivac.h
@@
-7,17
+7,31
@@
#define _GNU_SOURCE
#include <stdio.h>
#define _GNU_SOURCE
#include <stdio.h>
+#include "network.h"
+#include "event.h"
+#include "input.h"
+
/* defines */
#define CHAR_USERNAME 32
#define ERROR -1
#define SUCCESS 1
/* defines */
#define CHAR_USERNAME 32
#define ERROR -1
#define SUCCESS 1
+#define IVAC_LISTEN_PORT 1025
+
+#define IVAC_S_SEC 2
+#define IVAC_S_USEC 500
+
/* variables */
/* variables */
-typedef s_ivac {
+typedef s
truct s
_ivac {
char username[CHAR_USERNAME];
t_net net;
t_event event;
char username[CHAR_USERNAME];
t_net net;
t_event event;
+ t_input input;
} t_ivac;
} t_ivac;
+/* function prototypes */
+int ivac_event_cb(t_event *event,void *ptr);
+int ivac_regular_cb(t_event *event,void *ptr);
+
#endif
#endif