List Archive: gentoo-guis
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On Tue, 01 Apr 2008 23:59:40 +0200
René 'Necoro' Neumann <lists@...> wrote:
> Only one thing has to be solved: How is it possible to load additional
> "catapult providers" on the fly? - So similar to the dbus way: You
> install catapult and additional providers (e.g. catapult-portage) and
> then load the correct libs at runtime.
> I guess this can be answered by someone who has a deeper knowledge of
> C than me ;)
Unix, rather than C... dlopen. If you're using C++, make provider an
ABC and have a virtual ctor that dlopen()s .so files that export a
function to make a concrete subclass. If you're using C, use a struct
full of function pointers instead, and cry when you're forced to use
1970s style programming. Or use dlsym() a zillion times and cry even