Lines Matching refs:cb_ctx
709 struct dp_callback_ctx *cb_ctx = NULL;
811 cb_ctx = talloc_zero(dctx, struct dp_callback_ctx);
812 if(!cb_ctx) {
817 cb_ctx->callback = callback;
818 cb_ctx->ptr = pvt;
819 cb_ctx->cctx = dctx->cmdctx->cctx;
820 cb_ctx->mem_ctx = dctx;
822 tevent_req_set_callback(req, nsssrv_dp_send_acct_req_done, cb_ctx);
840 struct dp_callback_ctx *cb_ctx =
848 ret = sss_dp_get_account_recv(cb_ctx->mem_ctx, req,
853 NSS_CMD_FATAL_ERROR(cb_ctx->cctx);
856 cb_ctx->callback(err_maj, err_min, err_msg, cb_ctx->ptr);
2301 struct dp_callback_ctx *cb_ctx;
2343 cb_ctx = talloc_zero(step_ctx, struct dp_callback_ctx);
2344 if(!cb_ctx) {
2349 cb_ctx->callback = nss_cmd_setpwent_dp_callback;
2350 cb_ctx->ptr = step_ctx;
2351 cb_ctx->cctx = step_ctx->cctx;
2352 cb_ctx->mem_ctx = step_ctx;
2354 tevent_req_set_callback(dpreq, nsssrv_dp_send_acct_req_done, cb_ctx);
3477 struct dp_callback_ctx *cb_ctx;
3519 cb_ctx = talloc_zero(step_ctx, struct dp_callback_ctx);
3520 if(!cb_ctx) {
3525 cb_ctx->callback = nss_cmd_setgrent_dp_callback;
3526 cb_ctx->ptr = step_ctx;
3527 cb_ctx->cctx = step_ctx->cctx;
3528 cb_ctx->mem_ctx = step_ctx;
3530 tevent_req_set_callback(dpreq, nsssrv_dp_send_acct_req_done, cb_ctx);