Lines Matching refs:pp
249 callback_id_pair *pp = NULL; in qmp_get_callback_from_id() local
254 LIBXL_STAILQ_FOREACH(pp, &qmp->callback_list, next) { in qmp_get_callback_from_id()
255 if (pp->id == id) { in qmp_get_callback_from_id()
256 return pp; in qmp_get_callback_from_id()
266 callback_id_pair *pp = qmp_get_callback_from_id(qmp, resp); in qmp_handle_error_response() local
271 if (pp) { in qmp_handle_error_response()
272 if (pp->callback) { in qmp_handle_error_response()
273 int rc = pp->callback(qmp, NULL, pp->opaque); in qmp_handle_error_response()
274 if (pp->context) { in qmp_handle_error_response()
275 pp->context->rc = rc; in qmp_handle_error_response()
278 if (pp->id == qmp->wait_for_id) { in qmp_handle_error_response()
282 LIBXL_STAILQ_REMOVE(&qmp->callback_list, pp, callback_id_pair, next); in qmp_handle_error_response()
283 free(pp); in qmp_handle_error_response()
303 callback_id_pair *pp = qmp_get_callback_from_id(qmp, resp); in qmp_handle_response() local
305 if (pp) { in qmp_handle_response()
306 if (pp->callback) { in qmp_handle_response()
307 int rc = pp->callback(qmp, in qmp_handle_response()
309 pp->opaque); in qmp_handle_response()
310 if (pp->context) { in qmp_handle_response()
311 pp->context->rc = rc; in qmp_handle_response()
314 if (pp->id == qmp->wait_for_id) { in qmp_handle_response()
318 LIBXL_STAILQ_REMOVE(&qmp->callback_list, pp, callback_id_pair, in qmp_handle_response()
320 free(pp); in qmp_handle_response()
409 callback_id_pair *pp = NULL; in qmp_close() local
413 LIBXL_STAILQ_FOREACH(pp, &qmp->callback_list, next) { in qmp_close()
415 tmp = pp; in qmp_close()