small changes

This commit is contained in:
2022-12-13 23:43:22 +01:00
parent 8e83d6aa5f
commit 6d473bfa49
4 changed files with 97 additions and 12 deletions

13
src/async.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef SESIMOS_ASYNC_H
#define SESIMOS_ASYNC_H
#define async_read(fd, cb, arg, err_cb, err_arg) async(fd, 0, 0, cb, arg, err, err_arg)
#define async_read_keep(fd, cb, arg, err_cb, err_arg) async(fd, 0, 0, cb, arg, err, err_arg)
int async(int fd, int events, int flags, void (*cb)(void *), void *arg, void (*err_cb)(void *), void *err_arg);
void async_thread(void);
#endif //SESIMOS_ASYNC_H