Add dc_checkprotocol and DC_LATEST.
[doldaconnect.git] / include / doldaconnect / uilib.h
index ac717fb..522f779 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <wchar.h>
 
+#define DC_LATEST 1
+
 struct dc_response
 {
     struct dc_response *next, *prev;
@@ -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