Re: lt_dlforeach replacement?

Nick Bowler <[email protected]> Thu, 4 Aug 2022 17:24:47 -0400
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <CADyTPEwb=PdrCoVpHF+Ly-qsUETKh_K1j6cBAP-RgRnew_YxGg@mail.gmail.com>
On 2022-08-03, Zopolis0 <[email protected]> wrote:
> it looks like the intended replacement [for lt_dlforeach] is
> lt_dlhandle_map. That requires a lt_dlinterface_id variable, though.

Just reading the docs, I think the way it is supposed to work is you
first register an interface with a null matching callback, for example:

  lt_dlinterface_id everything = lt_dlinterface_register("everything", NULL);

Then hang onto this ID to use with lt_dlhandle_map in order to iterate
over all loaded modules like lt_dlforeach used to do.

Cheers,
  Nick