X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Fdoldaconnect%2Fuilib.h;h=ad26394ceb0f349a844ab21c951c63d657931c5b;hb=8affe2ff5a4c2125128d9a9510aa67b29c0c0b18;hp=ac717fbc64b9334f6824d8a2f8b6dfe9c55ace76;hpb=34a61ecbf51b9115f2ba4cc987952413e4c5c1ea;p=doldaconnect.git diff --git a/include/doldaconnect/uilib.h b/include/doldaconnect/uilib.h index ac717fb..ad26394 100644 --- a/include/doldaconnect/uilib.h +++ b/include/doldaconnect/uilib.h @@ -3,6 +3,8 @@ #include +#define DC_LATEST 2 + struct dc_response { struct dc_response *next, *prev; @@ -48,9 +50,11 @@ 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); +int dc_connectlocal(void); 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