Lines Matching refs:req
42 hosts_get_retry(struct tevent_req *req);
55 struct tevent_req *req;
59 req = tevent_req_create(memctx, &state, struct hosts_get_state);
60 if (!req) return NULL;
77 ret = hosts_get_retry(req);
82 return req;
85 tevent_req_error(req, ret);
86 tevent_req_post(req, ev);
87 return req;
91 hosts_get_retry(struct tevent_req *req)
93 struct hosts_get_state *state = tevent_req_data(req,
103 tevent_req_set_callback(subreq, hosts_get_connect_done, req);
110 struct tevent_req *req = tevent_req_callback_data(subreq,
112 struct hosts_get_state *state = tevent_req_data(req,
122 tevent_req_error(req, ret);
132 tevent_req_error(req, ENOMEM);
135 tevent_req_set_callback(subreq, hosts_get_done, req);
141 struct tevent_req *req = tevent_req_callback_data(subreq,
143 struct hosts_get_state *state = tevent_req_data(req,
157 ret = hosts_get_retry(req);
211 tevent_req_done(req);
213 tevent_req_error(req, ret);
218 hosts_get_recv(struct tevent_req *req,
221 struct hosts_get_state *state = tevent_req_data(req,
228 TEVENT_REQ_RETURN_ON_ERROR(req);
247 struct tevent_req *req;
250 req = tevent_req_create(mem_ctx, &state, struct sdap_hostid_handler_state);
251 if (req == NULL) {
264 tevent_req_set_callback(subreq, sdap_hostid_handler_done, req);
266 return req;
272 tevent_req_done(req);
273 tevent_req_post(req, params->ev);
275 return req;
281 struct tevent_req *req;
285 req = tevent_req_callback_data(subreq, struct tevent_req);
286 state = tevent_req_data(req, struct sdap_hostid_handler_state);
293 tevent_req_done(req);
298 struct tevent_req *req,
303 state = tevent_req_data(req, struct sdap_hostid_handler_state);
305 TEVENT_REQ_RETURN_ON_ERROR(req);