Author: metze
Date: 2005-09-22 19:36:43 +0000 (Thu, 22 Sep 2005)
New Revision: 10434

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10434

Log:
add a short path to the event context that should be used for async replies

metze
Modified:
   branches/SAMBA_4_0/source/winbind/wb_server.c
   branches/SAMBA_4_0/source/winbind/wb_server.h


Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_server.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_server.c       2005-09-22 19:28:20 UTC 
(rev 10433)
+++ branches/SAMBA_4_0/source/winbind/wb_server.c       2005-09-22 19:36:43 UTC 
(rev 10434)
@@ -123,7 +123,8 @@
        /* we have a full request - parse it */
        status = ops->pull_request(wbconn->partial, wbconn, &call);
        if (!NT_STATUS_IS_OK(status)) goto failed;
-       call->wbconn = wbconn;
+       call->wbconn    = wbconn;
+       call->event_ctx = conn->event.ctx;
 
        /*
         * we have parsed the request, so we can reset the wbconn->partial_read,

Modified: branches/SAMBA_4_0/source/winbind/wb_server.h
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_server.h       2005-09-22 19:28:20 UTC 
(rev 10433)
+++ branches/SAMBA_4_0/source/winbind/wb_server.h       2005-09-22 19:36:43 UTC 
(rev 10434)
@@ -107,6 +107,9 @@
 #define WBSRV_CALL_FLAGS_REPLY_ASYNC 0x00000001
        uint32_t flags;
 
+       /* the backend should use this event context */
+       struct event_context *event_ctx;
+
        /* the connection the call belongs to */
        struct wbsrv_connection *wbconn;
 

Reply via email to