Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated spec files for the new library version.
[doldaconnect.git]
/
include
/
doldaconnect
/
uilib.h
diff --git
a/include/doldaconnect/uilib.h
b/include/doldaconnect/uilib.h
index
9cfa4de
..
0a1204e
100644
(file)
--- a/
include/doldaconnect/uilib.h
+++ b/
include/doldaconnect/uilib.h
@@
-3,6
+3,10
@@
#include <wchar.h>
#include <wchar.h>
+#define DC_LATEST 2
+
+typedef long long dc_lnum_t;
+
struct dc_response
{
struct dc_response *next, *prev;
struct dc_response
{
struct dc_response *next, *prev;
@@
-30,12
+34,15
@@
struct dc_intresp
union
{
int num;
union
{
int num;
+ dc_lnum_t lnum;
wchar_t *str;
double flnum;
} val;
} *argv;
};
wchar_t *str;
double flnum;
} val;
} *argv;
};
+char *dc_srv_local;
+
int dc_init(void);
void dc_cleanup(void);
void dc_disconnect(void);
int dc_init(void);
void dc_cleanup(void);
void dc_disconnect(void);
@@
-49,8
+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_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);
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);
const char *dc_gethostname(void);
+int dc_getfd(void);
#endif
#endif