clean shutdown in case address is in use + include ncurses functions (todo)
[my-code/ivac.git] / src / ivac.h
index a4365f4..bd427f0 100644 (file)
@@ -7,6 +7,9 @@
 #define _GNU_SOURCE
 #include <stdio.h>
 
+/* for ui */
+#include <ncurses.h>
+
 #include "network.h"
 #include "event.h"
 #include "input.h"
@@ -52,6 +55,7 @@ typedef struct s_ivac {
 } t_ivac;
 
 /* function prototypes */
+int ivac_shutdown(t_ivac *ivac);
 int ivac_send_info(int channel,t_ivac *ivac);
 int ivac_receive_info(int channel,t_ivac *ivac);
 int ivac_event_cb(t_event *event,void *ptr);