8 struct dc_response *next, *prev;
40 void dc_cleanup(void);
41 void dc_disconnect(void);
42 void dc_freeresp(struct dc_response *resp);
43 struct dc_response *dc_getresp(void);
44 struct dc_response *dc_gettaggedresp(int tag);
45 struct dc_response *dc_gettaggedrespsync(int tag);
46 int dc_wantwrite(void);
47 int dc_getstate(void);
48 int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...);
49 int dc_handleread(void);
50 int dc_handlewrite(void);
51 int dc_connect(char *host, int port);
52 struct dc_intresp *dc_interpret(struct dc_response *resp);
53 void dc_freeires(struct dc_intresp *ires);
54 const char *dc_gethostname(void);