SPLIT: get async winbind child building
[ddiss/samba.git] / source3 / winbindd / winbindd_locator.c
index 59e8614fdbcc9a30807a4389d2bfb07cc131af89..eb6bb35d132d1ab3af1faf889a602d277c9e9cdf 100644 (file)
@@ -38,11 +38,14 @@ static const struct winbindd_child_dispatch_table locator_dispatch_table[] = {
        {
                .name           = "PING",
                .struct_cmd     = WINBINDD_PING,
-               .struct_fn      = winbindd_dual_ping,
+               .type           = WINBINDD_CHILD_DISPATCH_SYNC,
+               .sync.struct_fn = winbindd_dual_ping,
        },{
                .name           = "NDRCMD",
                .struct_cmd     = WINBINDD_DUAL_NDRCMD,
-               .struct_fn      = winbindd_dual_ndrcmd,
+               .type           = WINBINDD_CHILD_DISPATCH_ASYNC,
+               .async.struct_fn_send = winbindd_dual_ndrcmd_send,
+               .async.struct_fn_recv = winbindd_dual_ndrcmd_recv,
        },{
                .name           = NULL,
        }