From: fredrik Date: Thu, 12 Apr 2007 01:01:11 +0000 (+0000) Subject: Add dc_checkprotocol and DC_LATEST. X-Git-Tag: 0.3~16 X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=691f0a7044ab55e180db5620aa28ff6d8268273c Add dc_checkprotocol and DC_LATEST. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@921 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/include/doldaconnect/uilib.h b/include/doldaconnect/uilib.h index 9cfa4de..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; @@ -51,6 +53,7 @@ int dc_handlewrite(void); 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