added event f00
[my-code/ivac.git] / src / event.c
1 /* event.c -- event management stuff
2  *
3  * author: hackbard@hackdaworld.dyndns.org
4  *
5  */
6
7 #include "event.h"
8
9 int event_init(t_ivac *ivac) {
10
11   puts("[ivac] event: initializing event system ...");
12
13   ivac->event.maxfd=0;
14
15   FD_ZERO(ivac->event.rfds);
16   FD_ZERO(ivac->event.rfds_c);
17   FD_ZERO(ivac->event.wfds);
18   FD_ZERO(ivac->event.wfds_c);
19
20   return SUCCESS;
21 }