1 #ifndef __DC_JOBTHREAD_H__
2 #define __DC_JOBTHREAD_H__
8 typedef struct _dc_jobthread dc_jobthread_t;
15 char* folder_config_name;
17 struct _dc_imap* imap;
19 pthread_mutex_t mutex;
21 pthread_cond_t idle_cond;
31 void dc_jobthread_init (dc_jobthread_t*,
dc_context_t* context,
const char* name,
32 const char* folder_config_name);
33 void dc_jobthread_exit (dc_jobthread_t*);
34 void dc_jobthread_suspend (dc_jobthread_t*,
int suspend);
36 void dc_jobthread_fetch (dc_jobthread_t*,
int use_network);
37 void dc_jobthread_idle (dc_jobthread_t*,
int use_network);
38 void dc_jobthread_interrupt_idle (dc_jobthread_t*);