libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lt_dlopenall patch


From: Gary V . Vaughan
Subject: lt_dlopenall patch
Date: Thu, 7 Jun 2001 19:29:24 +0100

Hi People!

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|

Cheers,
        Gary.
-- 
  ())_.  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__/

Attachment: 2001-06-01-gvv-openall.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]