118 int ins = ev->current & nev; |
118 int ins = ev->current & nev; |
119 ws_atomic_inc32(&ev->current); |
119 ws_atomic_inc32(&ev->current); |
120 return ev->instances[ins]; |
120 return ev->instances[ins]; |
121 } |
121 } |
122 |
122 |
|
123 int ev_free_event(EventHandler *h, Event *event) { |
|
124 free(event); |
|
125 return 0; |
|
126 } |
|
127 |
123 |
128 |
124 void ev_watchlist_add(EventHandler *h, EVWatchList *elm) { |
129 void ev_watchlist_add(EventHandler *h, EVWatchList *elm) { |
125 watchlist_add(&h->watchlist_begin, &h->watchlist_end, elm); |
130 watchlist_add(&h->watchlist_begin, &h->watchlist_end, elm); |
126 } |
131 } |
127 |
132 |