Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close UI sockets immediately from freeuidata.
[doldaconnect.git]
/
clients
/
test.c
diff --git
a/clients/test.c
b/clients/test.c
index
f5e6cbd
..
cf4bc4c
100644
(file)
--- a/
clients/test.c
+++ b/
clients/test.c
@@
-5,15
+5,18
@@
#include <doldaconnect/uilib.h>
#include <doldaconnect/uimisc.h>
#include <doldaconnect/uilib.h>
#include <doldaconnect/uimisc.h>
+int done;
+
void authcallback(int err, wchar_t *reason, void *data)
{
printf("Logged in: %i\n", err);
void authcallback(int err, wchar_t *reason, void *data)
{
printf("Logged in: %i\n", err);
+ dc_queuecmd(NULL, NULL, L"quit", NULL);
}
int main(int argc, char **argv)
{
struct pollfd pfd;
}
int main(int argc, char **argv)
{
struct pollfd pfd;
- int fd
, done
;
+ int fd;
struct dc_response *resp;
dc_init();
struct dc_response *resp;
dc_init();
@@
-39,7
+42,7
@@
int main(int argc, char **argv)
if(!wcscmp(resp->cmdname, L".connect"))
{
printf("Connected: %i\n", resp->code);
if(!wcscmp(resp->cmdname, L".connect"))
{
printf("Connected: %i\n", resp->code);
- if(resp->code == 20
0
)
+ if(resp->code == 20
1
)
dc_loginasync(NULL, 1, NULL, authcallback, NULL);
}
dc_freeresp(resp);
dc_loginasync(NULL, 1, NULL, authcallback, NULL);
}
dc_freeresp(resp);