Lines Matching refs:req
46 struct tevent_req *req;
50 req = tevent_req_create(mem_ctx, &state,
52 if (req == NULL) {
77 tevent_req_set_callback(subreq, ipa_sudo_full_refresh_done, req);
79 return req;
83 tevent_req_done(req);
85 tevent_req_error(req, ret);
87 tevent_req_post(req, ev);
89 return req;
96 struct tevent_req *req;
99 req = tevent_req_callback_data(subreq, struct tevent_req);
100 state = tevent_req_data(req, struct ipa_sudo_full_refresh_state);
118 tevent_req_error(req, ret);
122 tevent_req_done(req);
126 ipa_sudo_full_refresh_recv(struct tevent_req *req,
130 state = tevent_req_data(req, struct ipa_sudo_full_refresh_state);
132 TEVENT_REQ_RETURN_ON_ERROR(req);
153 struct tevent_req *req;
159 req = tevent_req_create(mem_ctx, &state,
161 if (req == NULL) {
200 tevent_req_set_callback(subreq, ipa_sudo_smart_refresh_done, req);
202 return req;
206 tevent_req_done(req);
208 tevent_req_error(req, ret);
210 tevent_req_post(req, ev);
212 return req;
217 struct tevent_req *req = NULL;
221 req = tevent_req_callback_data(subreq, struct tevent_req);
222 state = tevent_req_data(req, struct ipa_sudo_smart_refresh_state);
234 tevent_req_error(req, ret);
238 tevent_req_done(req);
241 int ipa_sudo_smart_refresh_recv(struct tevent_req *req,
245 state = tevent_req_data(req, struct ipa_sudo_smart_refresh_state);
247 TEVENT_REQ_RETURN_ON_ERROR(req);
271 struct tevent_req *req;
278 req = tevent_req_create(mem_ctx, &state, struct ipa_sudo_rules_refresh_state);
279 if (req == NULL) {
343 subreq = ipa_sudo_refresh_send(req, ev, sudo_ctx, NULL, search_filter,
350 tevent_req_set_callback(subreq, ipa_sudo_rules_refresh_done, req);
358 tevent_req_error(req, ret);
359 tevent_req_post(req, ev);
362 return req;
369 struct tevent_req *req = NULL;
373 req = tevent_req_callback_data(subreq, struct tevent_req);
374 state = tevent_req_data(req, struct ipa_sudo_rules_refresh_state);
386 tevent_req_error(req, ret);
390 tevent_req_done(req);
394 ipa_sudo_rules_refresh_recv(struct tevent_req *req,
399 state = tevent_req_data(req, struct ipa_sudo_rules_refresh_state);
401 TEVENT_REQ_RETURN_ON_ERROR(req);
423 ipa_sudo_ptask_full_refresh_recv(struct tevent_req *req)
427 return ipa_sudo_full_refresh_recv(req, &dp_error);
444 ipa_sudo_ptask_smart_refresh_recv(struct tevent_req *req)
448 return ipa_sudo_smart_refresh_recv(req, &dp_error);