X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Fdoldaconnect%2Fuilib.h;h=522f77993ca92cc9c6f2d4d146da75bc9a4630ce;hb=691f0a7044ab55e180db5620aa28ff6d8268273c;hp=d67afb308628ed010297c10b9d80017175b2c178;hpb=d3372da97568d5e1f35fa19787c8ec8af93a0435;p=doldaconnect.git diff --git a/include/doldaconnect/uilib.h b/include/doldaconnect/uilib.h index d67afb3..522f779 100644 --- a/include/doldaconnect/uilib.h +++ b/include/doldaconnect/uilib.h @@ -3,6 +3,8 @@ #include +#define DC_LATEST 1 + struct dc_response { struct dc_response *next, *prev; @@ -10,12 +12,12 @@ struct dc_response wchar_t *cmdname; void *data; void *internal; - struct + struct dc_respline { int argc; wchar_t **argv; } *rlines; - int linessize; + size_t linessize; int numlines; int curline; }; @@ -48,9 +50,10 @@ int dc_getstate(void); int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...); int dc_handleread(void); int dc_handlewrite(void); -int dc_connect(char *host, int port); +int dc_connect(char *host); struct dc_intresp *dc_interpret(struct dc_response *resp); void dc_freeires(struct dc_intresp *ires); +int dc_checkprotocol(struct dc_response *resp, int revision); const char *dc_gethostname(void); #endif