Lines Matching refs:subreq

73 static void nss_getby_done(struct tevent_req *subreq);
74 static void nss_getlistby_done(struct tevent_req *subreq);
85 struct tevent_req *subreq;
121 subreq = nss_get_object_send(cmd_ctx, cli_ctx->ev, cli_ctx,
123 if (subreq == NULL) {
129 tevent_req_set_callback(subreq, nss_getby_done, cmd_ctx);
151 struct tevent_req *subreq;
186 subreq = nss_get_object_send(cmd_ctx, cli_ctx->ev, cli_ctx,
188 if (subreq == NULL) {
194 tevent_req_set_callback(subreq, nss_getby_done, cmd_ctx);
216 struct tevent_req *subreq;
239 subreq = nss_get_object_send(cmd_ctx, cli_ctx->ev, cli_ctx,
241 if (subreq == NULL) {
246 tevent_req_set_callback(subreq, nss_getby_done, cmd_ctx);
263 struct tevent_req *subreq;
283 subreq = cache_req_user_by_cert_send(cmd_ctx, cli_ctx->ev, cli_ctx->rctx,
287 if (subreq == NULL) {
292 tevent_req_set_callback(subreq, nss_getlistby_done, cmd_ctx);
305 static void nss_getlistby_done(struct tevent_req *subreq)
312 cmd_ctx = tevent_req_callback_data(subreq, struct nss_cmd_ctx);
314 ret = cache_req_recv(cmd_ctx, subreq, &results);
315 talloc_zfree(subreq);
348 struct tevent_req *subreq;
375 subreq = nss_get_object_send(cmd_ctx, cli_ctx->ev, cli_ctx,
377 if (subreq == NULL) {
383 tevent_req_set_callback(subreq, nss_getby_done, cmd_ctx);
402 struct tevent_req *subreq;
430 subreq = nss_get_object_send(cmd_ctx, cli_ctx->ev, cli_ctx,
432 if (subreq == NULL) {
438 tevent_req_set_callback(subreq, nss_getby_done, cmd_ctx);
543 static void nss_getby_done(struct tevent_req *subreq)
549 cmd_ctx = tevent_req_callback_data(subreq, struct nss_cmd_ctx);
551 ret = nss_get_object_recv(cmd_ctx, subreq, &result, &cmd_ctx->rawname);
552 talloc_zfree(subreq);
575 static void nss_setent_done(struct tevent_req *subreq);
581 struct tevent_req *subreq;
583 subreq = nss_setent_send(cli_ctx, cli_ctx->ev, cli_ctx, type, enum_ctx);
584 if (subreq == NULL) {
589 tevent_req_set_callback(subreq, nss_setent_done, cli_ctx);
594 static void nss_setent_done(struct tevent_req *subreq)
599 cli_ctx = tevent_req_callback_data(subreq, struct cli_ctx);
601 ret = nss_setent_recv(subreq);
602 talloc_zfree(subreq);
612 static void nss_getent_done(struct tevent_req *subreq);
621 struct tevent_req *subreq;
640 subreq = nss_setent_send(cli_ctx, cli_ctx->ev, cli_ctx, type, enum_ctx);
641 if (subreq == NULL) {
647 tevent_req_set_callback(subreq, nss_getent_done, cmd_ctx);
684 static void nss_getent_done(struct tevent_req *subreq)
691 cmd_ctx = tevent_req_callback_data(subreq, struct nss_cmd_ctx);
693 ret = nss_setent_recv(subreq);
694 talloc_zfree(subreq);
731 static void nss_setnetgrent_done(struct tevent_req *subreq);
740 struct tevent_req *subreq;
769 subreq = nss_setnetgrent_send(cli_ctx, cli_ctx->ev, cli_ctx, type,
771 if (subreq == NULL) {
777 tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
790 static void nss_setnetgrent_done(struct tevent_req *subreq)
795 cmd_ctx = tevent_req_callback_data(subreq, struct nss_cmd_ctx);
797 ret = nss_setnetgrent_recv(subreq);
798 talloc_zfree(subreq);
811 static void nss_getnetgrent_done(struct tevent_req *subreq);
818 struct tevent_req *subreq;
843 subreq = nss_setnetgrent_send(cli_ctx, cli_ctx->ev, cli_ctx, type,
846 if (subreq == NULL) {
851 tevent_req_set_callback(subreq, nss_getnetgrent_done, cmd_ctx);
864 static void nss_getnetgrent_done(struct tevent_req *subreq)
870 cmd_ctx = tevent_req_callback_data(subreq, struct nss_cmd_ctx);
872 ret = nss_setent_recv(subreq);
873 talloc_zfree(subreq);