Syntax highlight API on GitHub

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-12-30 21:04:02 +01:00
1 parent e707d24290
commit e681657ca7
1 file changed
+2
+2
View File
@@ -48,6 +48,7 @@ Here is the interface to libuEv. It handles three different types of
events: I/O (files, sockets, message queues, etc.), timers, and
signals.
```C
/* Event loop functions */
int uev_init (uev_ctx_t *ctx);
int uev_exit (uev_ctx_t *ctx);
@@ -74,6 +75,7 @@ signals.
int uev_signal_set (uev_t *w, int signo);
/* Stop signal watcher */
int uev_signal_stop (uev_t *w);
```
To be able to setup callbacks to events the developer first need to
create an *event context*, achieved by calling `uev_init()` with a