X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-sys%2Fevtloop.h;h=e9eff3a9552a9178f09f530aa8fa5e24a4cd026e;hp=bb7c50eb92f9b2c4933032b93210a9d6d923a4cf;hb=bb8c11821cc88fef9da474587cc42e0f7554cf28;hpb=fc9b0f39b53ad39e08c45d4c036af036f512755e diff --git a/lib-sys/evtloop.h b/lib-sys/evtloop.h index bb7c50e..e9eff3a 100644 --- a/lib-sys/evtloop.h +++ b/lib-sys/evtloop.h @@ -24,6 +24,7 @@ #include #include #include +#include "account.h" typedef enum el_state { EL_LLP_INIT, @@ -92,13 +93,14 @@ __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_connect2(job_t *w, const ACCOUNT *); __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); void el_lock(void); void el_unlock(void); -void el_wait(job_t *w); +void el_wait(volatile job_t *w); int el_dispatch(int timeout);