return;
}
+static void winbindd_get_domain_info_recv(TALLOC_CTX *mem_ctx, bool success,
+ struct winbindd_ndr_call *c,
+ void *_r,
+ void *_cont,
+ void *private_data)
+{
+ void (*cont)(void *priv, bool succ, struct winbind_get_domain_info *r) =
+ (void (*)(void *, bool, struct winbind_get_domain_info*))_cont;
+ struct winbind_get_domain_info *r =
+ talloc_get_type_abort(_r, struct winbind_get_domain_info);
+
+ if (!success) {
+ DEBUG(5, ("Could not get domain_info\n"));
+ cont(private_data, False, r);
+ return;
+ }
+
+ if (r->out.result != WINBIND_STATUS_OK) {
+ DEBUG(5, ("get_domain_info returned an error:0x%08X\n",
+ r->out.result));
+ cont(private_data, False, r);
+ return;
+ }
+
+ cont(private_data, True, r);
+}
+
+void winbindd_get_domain_info_async(TALLOC_CTX *mem_ctx,
+ struct winbindd_domain *domain,
+ struct winbind_get_domain_info *r,
+ void (*cont)(void *private_data,
+ bool success,
+ struct winbind_get_domain_info *r),
+ void *private_data)
+{
+ do_async_ndr_domain(mem_ctx, domain,
+ NDR_WINBIND_GET_DOMAIN_INFO, r,
+ winbindd_get_domain_info_recv, r,
+ (void *)cont, private_data);
+}
+
struct sequence_state {
TALLOC_CTX *mem_ctx;
struct winbindd_cli_state *cli_state;