8 typedef long long dc_lnum_t;
12 struct dc_response *next, *prev;
47 void dc_cleanup(void);
48 void dc_disconnect(void);
49 void dc_freeresp(struct dc_response *resp);
50 struct dc_response *dc_getresp(void);
51 struct dc_response *dc_gettaggedresp(int tag);
52 struct dc_response *dc_gettaggedrespsync(int tag);
53 int dc_wantwrite(void);
54 int dc_getstate(void);
55 int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...);
56 int dc_handleread(void);
57 int dc_handlewrite(void);
58 int dc_connect(char *host);
59 int dc_connectsync(char *host, struct dc_response **respbuf);
60 int dc_connectsync2(char *host, int rev);
61 struct dc_intresp *dc_interpret(struct dc_response *resp);
62 void dc_freeires(struct dc_intresp *ires);
63 int dc_checkprotocol(struct dc_response *resp, int revision);
64 const char *dc_gethostname(void);