winbindd: Introduce "bool_dispatch_table"
authorVolker Lendecke <vl@samba.org>
Wed, 2 May 2018 13:26:05 +0000 (15:26 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 17 May 2018 06:44:18 +0000 (08:44 +0200)
commit4109236cfdd9cec68acd67d46f2155f27d1549b6
treede0e9760a90c37f7a1ae817a3791d9e783136f08
parent87284da7a28172b40504eb50510a8b57da6692a6
winbindd: Introduce "bool_dispatch_table"

This is meant to replace the synchronous "dispatch_table".

The current dispatch_table assumes that every synchronous function does
the request_ok or request_error itself. This mixes two concerns: Doing
the work and shipping the reply to the winbind client. This new dispatch
table will make it possible to centralize shipping the reply to the
client. At a later stage this will enable easier statistics on how long
request processing took precisely.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd.c