X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=blobdiff_plain;f=event%2Fevent.h;h=b17983bb23445a48846d1ad09a510f11c32e2580;hp=03994c567b625f5cfbf794be8abfd13762c76ca7;hb=163431149f68f6d8e50665d74e7e31c45d662698;hpb=b8458ffac23aab55ba5316d28dd803dd34297181 diff --git a/event/event.h b/event/event.h index 03994c5..b17983b 100644 --- a/event/event.h +++ b/event/event.h @@ -28,6 +28,7 @@ /* event specific variables */ typedef struct s_event { + int outfd; int maxfd; fd_set rfds,rfds_o; fd_set wfds,wfds_o; @@ -36,7 +37,7 @@ typedef struct s_event { } t_event; /* function prototypes */ -int event_init(t_event *event); +int event_init(t_event *event,int outfd); int event_math(int fd,t_event *event,char rw,char ar); int event_start(t_event *event,void *ptr, int (*callback0)(t_event *event,void *ptr),