Lines Matching full:pending
154 struct pending_request *pending)
156 if (pending->conn)
157 dbus_connection_unref(pending->conn);
158 if (pending->msg)
159 dbus_message_unref(pending->msg);
160 if (pending->id)
161 a2dp_cancel(dev, pending->id);
163 g_free(pending);
247 struct pending_request *pending = source->connect;
253 if (pending->msg) {
255 reply = dbus_message_new_method_return(pending->msg);
256 g_dbus_send_message(pending->conn, reply);
260 if (pending->msg)
261 error_failed(pending->conn, pending->msg, "Stream setup failed");
265 pending_request_free(source->dev, pending);
275 struct pending_request *pending;
277 pending = source->connect;
279 pending->id = 0;
284 if (pending->msg) {
286 reply = dbus_message_new_method_return(pending->msg);
287 g_dbus_send_message(pending->conn, reply);
291 pending_request_free(source->dev, pending);
305 if (pending->msg)
306 error_failed(pending->conn, pending->msg, "Stream setup failed");
308 pending_request_free(source->dev, pending);
453 struct pending_request *pending;
460 pending = source->connect;
501 pending->id = id;
505 if (pending->msg)
506 error_failed(pending->conn, pending->msg, "Stream setup failed");
507 pending_request_free(source->dev, pending);
539 struct pending_request *pending;
563 pending = source->connect;
565 pending->conn = dbus_connection_ref(conn);
566 pending->msg = dbus_message_ref(msg);
578 struct pending_request *pending;
604 pending = g_new0(struct pending_request, 1);
605 pending->conn = dbus_connection_ref(conn);
606 pending->msg = dbus_message_ref(msg);
607 source->disconnect = pending;