Lines Matching defs:cmdctx
84 struct nss_cmd_ctx *cmdctx = dctx->cmdctx;
85 struct cli_ctx *cctx = cmdctx->cctx;
162 while (dom && cmdctx->check_next && dom->fqnames) {
189 if (cmdctx->check_next) {
228 if (cmdctx->check_next) {
295 if (cmdctx->check_next) {
377 if (cmdctx->check_next) {
421 struct cli_ctx *cctx = state->dctx->cmdctx->cctx;
451 struct cli_ctx *cctx = state->dctx->cmdctx->cctx;
794 struct nss_cmd_ctx *cmdctx;
803 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
804 if (!cmdctx) return ENOMEM;
806 cmdctx->cctx = cctx;
808 dctx = talloc_zero(cmdctx, struct nss_dom_ctx);
813 dctx->cmdctx = cmdctx;
825 ret = parse_getservbyname(cmdctx, body, blen,
854 cmdctx->check_next = true;
861 req = getserv_send(cmdctx, cctx->ev, 0,
872 return nss_cmd_done(cmdctx, ret);
995 struct nss_cmd_ctx *cmdctx = dctx->cmdctx;
1002 nss_cmd_done(cmdctx, reqret);
1006 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1030 sss_cmd_done(cmdctx->cctx, cmdctx);
1114 struct nss_cmd_ctx *cmdctx;
1122 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1123 if (!cmdctx) return ENOMEM;
1125 cmdctx->cctx = cctx;
1127 dctx = talloc_zero(cmdctx, struct nss_dom_ctx);
1132 dctx->cmdctx = cmdctx;
1144 ret = parse_getservbyport(cmdctx, body, blen,
1161 cmdctx->check_next = true;
1167 req = getserv_send(cmdctx, cctx->ev, port,
1176 return nss_cmd_done(cmdctx, ret);
1596 struct nss_cmd_ctx *cmdctx;
1600 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1601 if (!cmdctx) {
1604 cmdctx->cctx = cctx;
1606 req = setservent_send(cmdctx, cctx);
1613 tevent_req_set_callback(req, nss_cmd_setservent_done, cmdctx);
1616 return nss_cmd_done(cmdctx, ret);
1623 struct nss_cmd_ctx *cmdctx =
1627 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1639 sss_cmd_done(cmdctx->cctx, cmdctx);
1647 nss_cmd_done(cmdctx, ret);
1654 nss_cmd_getservent_immediate(struct nss_cmd_ctx *cmdctx);
1662 struct nss_cmd_ctx *cmdctx;
1669 cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
1670 if (!cmdctx) {
1673 cmdctx->cctx = cctx;
1681 cmdctx->saved_dom_idx = state_ctx->svcent.dom_idx;
1682 cmdctx->saved_cur = state_ctx->svcent.cur;
1689 req = setservent_send(cmdctx, cctx);
1695 cmdctx);
1699 return nss_cmd_getservent_immediate(cmdctx);
1706 struct nss_cmd_ctx *cmdctx =
1721 NSS_CMD_FATAL_ERROR(cmdctx);
1725 state_ctx = talloc_get_type(cmdctx->cctx->state_ctx, struct nss_state_ctx);
1726 state_ctx->svcent.dom_idx = cmdctx->saved_dom_idx;
1727 state_ctx->svcent.cur = cmdctx->saved_cur;
1729 ret = nss_cmd_getservent_immediate(cmdctx);
1734 NSS_CMD_FATAL_ERROR(cmdctx);
1739 nss_cmd_getservent_immediate(struct nss_cmd_ctx *cmdctx)
1747 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1764 ret = retservent(cmdctx->cctx, num);
1767 sss_cmd_done(cmdctx->cctx, cmdctx);