X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fivac.h;h=2bd69c52628302523530f40949406583d85c5587;hp=b635160f12115b37f233c7fcc6aca2ac8b3bb4ed;hb=3bffc32233a1608ba3338f39bc5193665f3095cc;hpb=b5512e7ee393a12bffc0b3fecabe515a2964c26b diff --git a/src/ivac.h b/src/ivac.h index b635160..2bd69c5 100644 --- a/src/ivac.h +++ b/src/ivac.h @@ -7,13 +7,11 @@ #define _GNU_SOURCE #include -/* for ui */ -#include - #include "network.h" #include "event.h" #include "input.h" #include "display.h" +#include "audio.h" /* defines */ #define CHAR_USERNAME 32 @@ -21,6 +19,7 @@ #define SUCCESS 1 #define IVAC_LISTEN_PORT 1025 +#define IVAC_UDP_PORT 1026 #define IVAC_S_SEC 2 #define IVAC_S_USEC 500 @@ -62,11 +61,14 @@ typedef struct s_ivac { t_display display; t_challenger challenger[MAX_CONNECTIONS]; char console[IVAC_CONSOLE_LEN][IVAC_CONSOLE_STRING_LEN]; + t_audio audio; } t_ivac; /* function prototypes */ +int usage(void); int ivac_shutdown(t_ivac *ivac); int ivac_send_info(int channel,t_ivac *ivac); +int ivac_send_quit(int channel,t_ivac *ivac); int ivac_receive_info(int channel,t_ivac *ivac); int ivac_event_cb(t_event *event,void *ptr); int ivac_regular_cb(t_event *event,void *ptr);