SoupSession: allow creating a "plain" SoupSession for use with new APIs
authorDan Winship <danw@gnome.org>
Sun, 27 May 2012 15:42:45 +0000 (11:42 -0400)
committerDan Winship <danw@gnome.org>
Mon, 10 Dec 2012 16:14:56 +0000 (17:14 +0100)
commit98d7c7372d276eacdcf86f82b7a8a5114a83fe60
treec7adcf8c421d477d98baeb4353ca9b88e28586dd
parent596e64f858ebccb32b987bc76e3376f3bb5bcbe7
SoupSession: allow creating a "plain" SoupSession for use with new APIs

In gio-based APIs, async vs sync is a function-level distinction, not
a class-level distinction. Merge most of the existing SoupSessionAsync
and SoupSessionSync code up into SoupSession, and make SoupSession
non-abstract, so that you can create a SoupSession and then use either
sync or async SoupRequest-based APIs on it. (The traditional APIs
still require one of the traditional subclasses, although the code
reorg does affect them in some ways, such as making SoupSessionAsync
more thread-safe.)
libsoup/soup-message-queue.h
libsoup/soup-session-async.c
libsoup/soup-session-private.h
libsoup/soup-session-sync.c
libsoup/soup-session.c
tests/requester-test.c