annotations, indent
[apps/madmutt.git] / lib-sys / evtloop.h
index 84f2eb0..b64942e 100644 (file)
@@ -74,7 +74,7 @@ DO_DELETE(job_t, job);
 typedef struct machine_t {
     const char *name;
     __must_check__ int (*setup)(job_t *w, void *);
-    int (*on_event)(job_t *w, el_event);
+    __must_check__ int (*on_event)(job_t *w, el_event);
     void (*finalize)(job_t *w, el_status);
 } machine_t;
 
@@ -86,6 +86,7 @@ __must_check__ int el_job_release(job_t *j, el_status);
 __must_check__ int el_job_connect(job_t *w, struct sockaddr *, socklen_t len,
                                   int type, int proto);
 __must_check__ ssize_t el_job_read(job_t *w, buffer_t *buf);
+__must_check__ ssize_t el_job_write(job_t *w, buffer_t *buf);
 
 static inline job_t *el_job_start(const machine_t *m, void *cfg) {
     job_t *w = job_new();