#include <lib-lib/lib-lib.h>
#include <gnutls/gnutls.h>
#include <sys/socket.h>
+#include "account.h"
typedef enum el_state {
EL_LLP_INIT,
} el_status;
typedef enum el_event {
+ EL_EVT_RUNNING = 0,
EL_EVT_IN = EL_READING,
EL_EVT_OUT = EL_WRITING,
EL_EVT_INOUT = EL_RDWR,
- EL_EVT_RUNNING = 4,
EL_EVT_WAKEUP = 5,
} el_event;
__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);