Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b54433
)
Make the test client quit when it has authenticated.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 6 Feb 2008 03:00:20 +0000
(
04:00
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Wed, 6 Feb 2008 03:00:20 +0000
(
04:00
+0100)
clients/test.c
patch
|
blob
|
blame
|
history
diff --git
a/clients/test.c
b/clients/test.c
index
04f471c
..
cf4bc4c
100644
(file)
--- a/
clients/test.c
+++ b/
clients/test.c
@@
-5,15
+5,18
@@
#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);
+ dc_queuecmd(NULL, NULL, L"quit", NULL);
}
int main(int argc, char **argv)
{
struct pollfd pfd;
- int fd
, done
;
+ int fd;
struct dc_response *resp;
dc_init();