winbind: add conditional child dispatch type
[ddiss/samba.git] / source3 / winbindd / winbindd_idmap.c
index 028026087d603e548c28b54eda9d2c4cbc9bdfbf..21b5ae1b6d5a04e09ac10642a63093efe7d3f95f 100644 (file)
@@ -38,11 +38,13 @@ static const struct winbindd_child_dispatch_table idmap_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_SYNC,
+               .sync.struct_fn = winbindd_dual_ndrcmd,
        },{
                .name           = NULL,
        }