obex->write_source = g_io_add_watch(obex->io, cond, write_data, obex);
}
+void g_obex_drop_tx_queue(GObex *obex)
+{
+ struct pending_pkt *p;
+
+ g_obex_debug(G_OBEX_DEBUG_COMMAND, "");
+
+ while ((p = g_queue_pop_head(obex->tx_queue)))
+ pending_pkt_free(p);
+}
+
static gboolean g_obex_send_internal(GObex *obex, struct pending_pkt *p,
GError **err)
{