[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gary V . Vaughan
Thu, 7 Jun 2001 19:29:24 +0100
While writing the dynamic loader for the new version of snprintfv, there is
no semantic for loading an individual module based on some external event.
Rather, I need to load any modules I can find as snprintfv initialises, in
order to build a complete map of printf specifier to handler function. I
ended up taking the code from find_file in ltdl.c, and having it try to load
any file that looked like a module anywhere in the module search path.
It occurs to me that the module loader I wrote for imlib2 and the loader I
helped Bernard with for ImageMagick (and presumably others) would be able to
make use of a similar facility, so this is my first stab at moving it back
into libltdl. It adds a new function lt_dlopenall, which runs a client
supplied callback function for each file it has successfully lt_dlopened.
Assuming I get an `okay', I will add some docs and break it into three
commits (LT_DLSTRLEN, the refactoring of find_file, and the addition of
lt_dlopenall)... after the merge is done, of course... =)O|
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
Description: Text document
- lt_dlopenall patch,
Gary V . Vaughan <=