X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Fdoldaconnect%2Fuilib.h;h=0a1204ebc9c285bc863cf39577807bec3273fa07;hb=8f623b36d661bfcf18b30a088177f6a5131bd1d9;hp=ad26394ceb0f349a844ab21c951c63d657931c5b;hpb=8affe2ff5a4c2125128d9a9510aa67b29c0c0b18;p=doldaconnect.git diff --git a/include/doldaconnect/uilib.h b/include/doldaconnect/uilib.h index ad26394..0a1204e 100644 --- a/include/doldaconnect/uilib.h +++ b/include/doldaconnect/uilib.h @@ -5,6 +5,8 @@ #define DC_LATEST 2 +typedef long long dc_lnum_t; + struct dc_response { struct dc_response *next, *prev; @@ -32,12 +34,15 @@ struct dc_intresp union { int num; + dc_lnum_t lnum; wchar_t *str; double flnum; } val; } *argv; }; +char *dc_srv_local; + int dc_init(void); void dc_cleanup(void); void dc_disconnect(void); @@ -51,10 +56,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_connectlocal(void); +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