living in a multi-mech world

Danilo Almeida dalmeida at
Tue May 1 17:58:15 EDT 2007

> Do we have mechanism plug-in modules export a function which returns a
> struct full of function pointers?  (This is similar to what our
> Sun-derived mechglue implementation currently does.)

I like a small variation of this:

Call a function to return the struct.  This allows for dynamic determination of what interface (struct full of pointers) to return.  It makes it easy to switch what gets returned dynamically.

As far as justification for an interface rather than dlopen w/dlsym for each symbols various symbol:

The reason for having an interface rather than loading each symbol is that it makes it trivial for a caller to say "grab me an interface to the implementation of X" and then just call through it w/o having to write a bunch of dlopen/dlsym code.

- Danilo

More information about the krbdev mailing list