X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Fdoldaconnect%2Fuilib.h;h=dc726da9fbfb4f8267802e3cc1b86809cbd04d92;hb=a742fd840b1a56dbc7162b1ac3ec24c1406d4451;hp=522f77993ca92cc9c6f2d4d146da75bc9a4630ce;hpb=691f0a7044ab55e180db5620aa28ff6d8268273c;p=doldaconnect.git diff --git a/include/doldaconnect/uilib.h b/include/doldaconnect/uilib.h index 522f779..dc726da 100644 --- a/include/doldaconnect/uilib.h +++ b/include/doldaconnect/uilib.h @@ -3,7 +3,7 @@ #include -#define DC_LATEST 1 +#define DC_LATEST 2 struct dc_response { @@ -38,6 +38,8 @@ struct dc_intresp } *argv; }; +char *dc_srv_local; + int dc_init(void); void dc_cleanup(void); void dc_disconnect(void); @@ -51,9 +53,12 @@ int dc_queuecmd(int (*callback)(struct dc_response *), void *data, ...); int dc_handleread(void); int dc_handlewrite(void); int dc_connect(char *host); +int dc_connectsync(char *host, struct dc_response **respbuf); +int dc_connectsync2(char *host, int rev); 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); +int dc_getfd(void); #endif