Lines Matching defs:cb
58 struct sss_dp_callback *cb =
61 DLIST_REMOVE(cb->sdp_req->cb_list, cb);
68 struct sss_dp_callback *cb;
90 while ((cb = sdp_req->cb_list) != NULL) {
91 state = tevent_req_data(cb->req, struct sss_dp_req_state);
95 /* tevent_req_done/error will free cb */
96 tevent_req_error(cb->req, EIO);
98 /* Freeing the cb removes it from the cb_list.
101 * callback handler didn't free cb and may leak
105 if (cb == sdp_req->cb_list) {
289 struct sss_dp_callback *cb;
393 cb = talloc_zero(mem_ctx, struct sss_dp_callback);
394 if (!cb) {
399 cb->req = nreq;
400 cb->sdp_req = sdp_req;
403 DLIST_ADD_END(sdp_req->cb_list, cb,
405 talloc_set_destructor((TALLOC_CTX *)cb,
861 struct sss_dp_callback *cb;
892 while ((cb = sdp_req->cb_list) != NULL) {
893 cb_state = tevent_req_data(cb->req, struct sss_dp_req_state);
901 /* tevent_req_done/error will free cb */
903 tevent_req_done(cb->req);
905 tevent_req_error(cb->req, ret);
908 /* Freeing the cb removes it from the cb_list.
911 * callback handler didn't free cb and may leak
915 if (cb == sdp_req->cb_list) {