X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=src%2Fivac.h;h=76844f586051a927e3854f2900142728c1295078;hb=4546108a81317af1135683e85b9340715e585339;hp=2a104290f8832ad67cdd8324d8a1453f0b874ca8;hpb=96a136a4a5ac3321cf3d72328b9fd8167c007a17;p=my-code%2Fivac.git diff --git a/src/ivac.h b/src/ivac.h index 2a10429..76844f5 100644 --- a/src/ivac.h +++ b/src/ivac.h @@ -7,16 +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