X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fivac.h;h=76844f586051a927e3854f2900142728c1295078;hp=2f14ab5887cc1749900f367b45f6bf7f34ea9b0b;hb=4546108a81317af1135683e85b9340715e585339;hpb=4344661d0612465223b516b4c1132260eeba34d1 diff --git a/src/ivac.h b/src/ivac.h index 2f14ab5..76844f5 100644 --- a/src/ivac.h +++ b/src/ivac.h @@ -7,17 +7,31 @@ #define _GNU_SOURCE #include +#include "network.h" +#include "event.h" +#include "input.h" + /* 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 */ -typedef s_ivac { +typedef struct s_ivac { char username[CHAR_USERNAME]; t_net net; t_event event; + t_input input; } t_ivac; +/* function prototypes */ +int ivac_event_cb(t_event *event,void *ptr); +int ivac_regular_cb(t_event *event,void *ptr); + #endif