… | |
… | |
227 | int ev_version_major (void); |
227 | int ev_version_major (void); |
228 | int ev_version_minor (void); |
228 | int ev_version_minor (void); |
229 | |
229 | |
230 | ev_tstamp ev_time (void); |
230 | ev_tstamp ev_time (void); |
231 | |
231 | |
|
|
232 | /* Sets the allocation function to use, works like realloc. |
|
|
233 | * It is used to allocate and free memory. |
|
|
234 | * If it returns zero when memory needs to be allocated, the library might abort |
|
|
235 | * or take some potentially destructive action. |
|
|
236 | * The default is your system realloc function. |
|
|
237 | */ |
|
|
238 | void ev_set_allocator (void *(*cb)(void *ptr, long size)); |
|
|
239 | |
|
|
240 | /* set the callback function to call on a |
|
|
241 | * retryable syscall error |
|
|
242 | * (such as failed select, poll, epoll_wait) |
|
|
243 | */ |
|
|
244 | void ev_set_syserr_cb (void (*cb)(void)); |
|
|
245 | |
232 | # if EV_MULTIPLICITY |
246 | # if EV_MULTIPLICITY |
233 | /* the default loop is the only one that handles signals and child watchers */ |
247 | /* the default loop is the only one that handles signals and child watchers */ |
234 | /* you can call this as often as you like */ |
248 | /* you can call this as often as you like */ |
235 | struct ev_loop *ev_default_loop (int methods); /* returns default loop */ |
249 | struct ev_loop *ev_default_loop (int methods); /* returns default loop */ |
236 | |
250 | |