W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Using libwww with gnome/gtk+

From: James Henstridge <james@daa.com.au>
Date: Mon, 30 Aug 1999 09:52:13 +0800 (WST)
To: www-lib@w3.org
Message-ID: <Pine.LNX.3.96.990830092350.21933E-100000@quoll.daa.com.au>

I have been looking at using at using libwww in one of the gnome
(www.gnome.org) programs I have written.  In doing this I have written up
some event register/unregister functions that use the glib event loop,
which makes libwww fit nicely into just about any gnome or gtk+ program.

If anyone else is interested in it, it is at /gnorpm/tests/glibwww.c in
the gnome CVS tree, which can be viewed at:

This code may be useful for other people wanting to use libwww with gtk.

Now for my question:  what is the best way to only link with enough of
libwww to get http and ftp transfers (no HTML, XML, news, gopher, telnet,
etc)?  With libwww compiled as multiple shared libraries under unix, it
seems that if you use any of the higher level libraries you end up needing
to link with all the other libraries.

It seems that if you use the HTProfile_new* functions, you end up needing
symbols from every other library, even if the functionality is never used.
Is there a better way to initialise libwww?

I really only want a few transports and support for proxies and maybe
authentication and redirections.  My program parses the files, so the HTML
parser is not really needed.  I would prefer to keep the number of
libraries my program links to to a minimum.

James Henstridge.

Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/
Received on Sunday, 29 August 1999 21:41:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC