Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo.
[doldaconnect.git]
/
include
/
doldaconnect
/
uilib.h
diff --git
a/include/doldaconnect/uilib.h
b/include/doldaconnect/uilib.h
index
d67afb3
..
0894f1a
100644
(file)
--- a/
include/doldaconnect/uilib.h
+++ b/
include/doldaconnect/uilib.h
@@
-3,6
+3,8
@@
#include <wchar.h>
#include <wchar.h>
+#define DC_LATEST 2
+
struct dc_response
{
struct dc_response *next, *prev;
struct dc_response
{
struct dc_response *next, *prev;
@@
-10,12
+12,12
@@
struct dc_response
wchar_t *cmdname;
void *data;
void *internal;
wchar_t *cmdname;
void *data;
void *internal;
- struct
+ struct
dc_respline
{
int argc;
wchar_t **argv;
} *rlines;
{
int argc;
wchar_t **argv;
} *rlines;
-
in
t linessize;
+
size_
t linessize;
int numlines;
int curline;
};
int numlines;
int curline;
};
@@
-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_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);
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
const char *dc_gethostname(void);
#endif