diff options
author | Volker Lendecke <vl@samba.org> | 2008-08-24 14:17:43 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-08-28 17:53:37 +0200 |
commit | 2650207d4adbfd68974fc2b342dd2af079a2552c (patch) | |
tree | a2ce1dc059d344cac2478de099777e907b8750b2 /source3/include/client.h | |
parent | de9fcfc79504fbca0350a99269b4a3423e5f2561 (diff) | |
download | samba-2650207d4adbfd68974fc2b342dd2af079a2552c.tar.gz samba-2650207d4adbfd68974fc2b342dd2af079a2552c.tar.bz2 samba-2650207d4adbfd68974fc2b342dd2af079a2552c.zip |
Remove cli->event_ctx, pass it explicitly
Storing the event_context as permanent state in struct cli_state creates more
complex code than necessary IMO.
(This used to be commit debb37f703075008e5ea7d34d214cfa4d0f8f916)
Diffstat (limited to 'source3/include/client.h')
-rw-r--r-- | source3/include/client.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index 51ced9907f..be12288f28 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -204,7 +204,15 @@ struct cli_state { bool force_dos_errors; bool case_sensitive; /* False by default. */ - struct event_context *event_ctx; + /** + * fd_event is around while we have async requests outstanding or are + * building a chained request. + * + * (fd_event!=NULL) && (outstanding_request!=NULL) + * + * should always be true, as well as the reverse: If both cli_request + * pointers are NULL, no fd_event is around. + */ struct fd_event *fd_event; char *evt_inbuf; |