Lines Matching refs:req

67 int resolv_gethostbyname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
71 return test_request_recv(req);
90 struct tevent_req *req,
116 return test_request_recv(req);
190 struct tevent_req *req,
193 return test_request_recv(req);
320 static void test_fo_srv_done1(struct tevent_req *req);
321 static void test_fo_srv_done2(struct tevent_req *req);
322 static void test_fo_srv_done3(struct tevent_req *req);
323 static void test_fo_srv_done4(struct tevent_req *req);
324 static void test_fo_srv_done5(struct tevent_req *req);
392 struct tevent_req *req;
394 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
397 assert_non_null(req);
398 tevent_req_set_callback(req, test_fo_srv_done1, test_ctx);
401 static void test_fo_srv_done1(struct tevent_req *req)
404 tevent_req_callback_data(req, struct test_fo_ctx);
408 ret = fo_resolve_service_recv(req, req, &srv);
409 talloc_zfree(req);
419 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
422 assert_non_null(req);
423 tevent_req_set_callback(req, test_fo_srv_done2, test_ctx);
426 static void test_fo_srv_done2(struct tevent_req *req)
429 tevent_req_callback_data(req, struct test_fo_ctx);
433 ret = fo_resolve_service_recv(req, req, &srv);
434 talloc_zfree(req);
443 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
446 assert_non_null(req);
447 tevent_req_set_callback(req, test_fo_srv_done3, test_ctx);
450 static void test_fo_srv_done3(struct tevent_req *req)
453 tevent_req_callback_data(req, struct test_fo_ctx);
457 ret = fo_resolve_service_recv(req, req, &srv);
458 talloc_zfree(req);
467 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
470 assert_non_null(req);
471 tevent_req_set_callback(req, test_fo_srv_done4, test_ctx);
474 static void test_fo_srv_done4(struct tevent_req *req)
477 tevent_req_callback_data(req, struct test_fo_ctx);
481 ret = fo_resolve_service_recv(req, req, &srv);
482 talloc_zfree(req);
492 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
495 assert_non_null(req);
496 tevent_req_set_callback(req, test_fo_srv_done5, test_ctx);
499 static void test_fo_srv_done5(struct tevent_req *req)
502 tevent_req_callback_data(req, struct test_fo_ctx);
506 ret = fo_resolve_service_recv(req, req, &srv);
507 talloc_zfree(req);
523 static void test_fo_srv_before(struct tevent_req *req);
524 static void test_fo_srv_after(struct tevent_req *req);
538 struct tevent_req *req;
551 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
554 assert_non_null(req);
555 tevent_req_set_callback(req, test_fo_srv_before, test_ctx);
561 static void test_fo_srv_before(struct tevent_req *req)
564 tevent_req_callback_data(req, struct test_fo_ctx);
570 ret = fo_resolve_service_recv(req, test_ctx, &test_ctx->srv);
571 talloc_zfree(req);
594 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
597 assert_non_null(req);
598 tevent_req_set_callback(req, test_fo_srv_after, test_ctx);
601 static void test_fo_srv_after2(struct tevent_req *req);
603 static void test_fo_srv_after(struct tevent_req *req)
606 tevent_req_callback_data(req, struct test_fo_ctx);
613 ret = fo_resolve_service_recv(req, req, &srv);
614 talloc_zfree(req);
642 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
645 assert_non_null(req);
646 tevent_req_set_callback(req, test_fo_srv_after2, test_ctx);
649 static void test_fo_srv_after2(struct tevent_req *req)
652 tevent_req_callback_data(req, struct test_fo_ctx);
656 ret = fo_resolve_service_recv(req, req, &srv);
657 talloc_zfree(req);
696 static void test_fo_srv_dup_done(struct tevent_req *req);
704 struct tevent_req *req;
720 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
723 assert_non_null(req);
724 tevent_req_set_callback(req, test_fo_srv_dup_done, test_ctx);
726 req = fo_resolve_service_send(test_ctx, test_ctx->ctx->ev,
729 assert_non_null(req);
730 tevent_req_set_callback(req, test_fo_srv_dup_done, test_ctx);
736 static void test_fo_srv_dup_done(struct tevent_req *req)
739 tevent_req_callback_data(req, struct test_fo_ctx);
743 ret = fo_resolve_service_recv(req, test_ctx, &test_ctx->srv);
744 talloc_zfree(req);