Have an event loop thread.
[apps/madmutt.git] / lib-sys / evtloop.h
index 6718480..c96f0c2 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <lib-lib/lib-lib.h>
 #include <gnutls/gnutls.h>
+#include <sys/socket.h>
 
 typedef enum el_state {
     EL_LLP_INIT,
@@ -87,6 +88,7 @@ __must_check__ int el_job_setmode(job_t *w, el_mode);
 __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, int ssl);
+__must_check__ int el_job_starttls(job_t *w);
 __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);
 
@@ -97,5 +99,7 @@ static inline job_t *el_job_start(const machine_t *m, void *cfg) {
 }
 
 int el_dispatch(int timeout);
+void el_initialize(void);
+void el_shutdown(void);
 
 #endif