mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-24 20:32:04 +00:00
README: Update API section with new _start() functions.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
43acbadc13
commit
cd4daf0d36
1 file changed
+3
@@ -79,16 +79,19 @@ int uev_run (uev_ctx_t *ctx, int flags); /* UEV_NONE, UEV_ONCE, a
|
|||||||
/* I/O watcher: fd is non-blocking, events is UEV_READ and/or UEV_WRITE */
|
/* I/O watcher: fd is non-blocking, events is UEV_READ and/or UEV_WRITE */
|
||||||
int uev_io_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int fd, int events);
|
int uev_io_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int fd, int events);
|
||||||
int uev_io_set (uev_t *w, int fd, int events);
|
int uev_io_set (uev_t *w, int fd, int events);
|
||||||
|
int uev_io_start (uev_t *w);
|
||||||
int uev_io_stop (uev_t *w);
|
int uev_io_stop (uev_t *w);
|
||||||
|
|
||||||
/* Timer watcher: timeout and period in milliseconds */
|
/* Timer watcher: timeout and period in milliseconds */
|
||||||
int uev_timer_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int timeout, int period);
|
int uev_timer_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int timeout, int period);
|
||||||
int uev_timer_set (uev_t *w, int timeout, int period); /* Change timeout or period */
|
int uev_timer_set (uev_t *w, int timeout, int period); /* Change timeout or period */
|
||||||
|
int uev_timer_start (uev_t *w); /* Restart a stopped timer */
|
||||||
int uev_timer_stop (uev_t *w); /* Stop a timer */
|
int uev_timer_stop (uev_t *w); /* Stop a timer */
|
||||||
|
|
||||||
/* Signal watcher: signo is the signal to wait for, e.g., SIGTERM */
|
/* Signal watcher: signo is the signal to wait for, e.g., SIGTERM */
|
||||||
int uev_signal_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int signo);
|
int uev_signal_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int signo);
|
||||||
int uev_signal_set (uev_t *w, int signo); /* Change signal to wait for */
|
int uev_signal_set (uev_t *w, int signo); /* Change signal to wait for */
|
||||||
|
int uev_signal_start(uev_t *w); /* Restart a stopped signal watcher */
|
||||||
int uev_signal_stop (uev_t *w); /* Stop signal watcher */
|
int uev_signal_stop (uev_t *w); /* Stop signal watcher */
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user