add gobject-2.0 to the PKG_CHECK_MODULES call
authorDan Winship <danw@src.gnome.org>
Tue, 12 Aug 2003 17:13:53 +0000 (17:13 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 12 Aug 2003 17:13:53 +0000 (17:13 +0000)
commit7013f30f5afe621bd3e5ce5a93b84b039824c57c
tree09162227ceb55667971640c825bfbdb8fc0ea634
parentba90a2e60ef012598c5c2ce74cdbb7b3c1148bb5
add gobject-2.0 to the PKG_CHECK_MODULES call

* configure.in (GLIB): add gobject-2.0 to the PKG_CHECK_MODULES
call

* libsoup/soup-address.c: Make this a GObject.
(soup_address_ref, soup_address_unref): Gone.
(soup_address_copy): Gone. Wasn't being used anyway.

* libsoup/soup-dns.c: Move all of the DNS code and caching stuff
here from soup-address.c, so that soup-address doesn't need to
worry about trying to cache zero-ref addresses.

* libsoup/soup-socket.c: Make this a GObject. Use "guint"
consistently for port numbers.
(soup_socket_ref, soup_socket_unref): Gone.

* libsoup/soup-private.h: Change the SoupSocket definition to be
SoupSocketPrivate. (Still need to keep this here since soup-server
pokes around in its internals.)
(SOUP_MAKE_TYPE): Copied from gal's E_MAKE_TYPE.

* libsoup/soup-server.c (read_done_cb, write_done_cb): Unref the
reader/writer rather than leaking them.

* libsoup/*: Use GObject methods for socket/address refcounting

* tests/auth-test.c (main)
* tests/timeserver.c (main): Call g_type_init.

* tests/get.c (main): Call g_type_init.
(get_url, got_url): Fix some bugs that could make -r mode get into
infinite loops downloading the same files over and over. Plug some
memory leaks to make this more useful for valgrinding libsoup.

* tests/simple-httpd.c (main): Call g_type_init. Set up a signal
handler for SIGINT so we can exit cleanly, since valgrind won't
give a leak report if you don't. Plug a few memory leaks.

* tests/simple-proxy.c (main): Likewise
18 files changed:
ChangeLog
configure.in
libsoup/Makefile.am
libsoup/soup-address.c
libsoup/soup-address.h
libsoup/soup-context.c
libsoup/soup-dns.c [new file with mode: 0644]
libsoup/soup-dns.h [new file with mode: 0644]
libsoup/soup-private.h
libsoup/soup-server.c
libsoup/soup-socket.c
libsoup/soup-socket.h
libsoup/soup-socks.c
tests/auth-test.c
tests/get.c
tests/simple-httpd.c
tests/simple-proxy.c
tests/timeserver.c