More control over queued messages
Submitted by John Stowers
Assigned to libsoup-maint@gnome.bugs
Link to original bug (#543529)
Description
I am currently using libsoup in a widget [1][2] that downloads tiles from openstreetmap. For this use, I typically queue up a number of tiles to be downloaded, and when they complete, I blit them to the screen.
I would like to be able to know some more information however, like how many requests are queued/pending in the SoupSession, their status, etc
API Suggestions:
guint soup_session_get_num_queued_messages(SoupSession *session)
and perhaps some easier method to get back the queued messages
void soup_session_get_queued_messages(SoupSession *session, GSList *messages)
this could then be used in conjunction with
SOUP_STATUS_IS_QUEUED(msg->status_code)
or
SOUP_STATUS_IS_RUNNING(msg->status_code)
to check on the tiles to be downloaded
Version: 2.4.x