Lines Matching refs:req

45     struct tevent_req *req = NULL;
50 req = tevent_req_create(mem_ctx, &state,
52 if (req == NULL) {
82 talloc_zfree(req);
86 tevent_req_set_callback(subreq, resolv_get_domain_done, req);
88 return req;
91 tevent_req_error(req, ret);
92 tevent_req_post(req, ev);
94 return req;
100 struct tevent_req *req = NULL;
105 req = tevent_req_callback_data(subreq, struct tevent_req);
106 state = tevent_req_data(req, struct resolv_get_domain_state);
108 ret = resolv_gethostbyname_recv(subreq, req, &resolv_status,
124 tevent_req_done(req);
128 struct tevent_req *req,
135 state = tevent_req_data(req, struct resolv_get_domain_state);
137 TEVENT_REQ_RETURN_ON_ERROR(req);
168 static errno_t resolv_discover_srv_next_domain(struct tevent_req *req);
179 struct tevent_req *req = NULL;
182 req = tevent_req_create(mem_ctx, &state,
184 if (req == NULL) {
202 ret = resolv_discover_srv_next_domain(req);
207 return req;
211 tevent_req_done(req);
213 tevent_req_error(req, ret);
215 tevent_req_post(req, ev);
217 return req;
220 static errno_t resolv_discover_srv_next_domain(struct tevent_req *req)
228 state = tevent_req_data(req, struct resolv_discover_srv_state);
253 tevent_req_set_callback(subreq, resolv_discover_srv_done, req);
269 struct tevent_req *req = NULL;
273 req = tevent_req_callback_data(subreq, struct tevent_req);
274 state = tevent_req_data(req, struct resolv_discover_srv_state);
285 ret = resolv_discover_srv_next_domain(req);
301 tevent_req_done(req);
303 tevent_req_error(req, ret);
310 struct tevent_req *req,
318 state = tevent_req_data(req, struct resolv_discover_srv_state);
320 TEVENT_REQ_RETURN_ON_ERROR(req);