Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-guis
Navigation:
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-guis@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: Why I don't like catapult
Date: Wed, 2 Apr 2008 09:39:43 +0100
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
more...

-- 
Ciaran McCreesh
Attachment:
signature.asc (PGP signature)
References:
Why I don't like catapult
-- Ciaran McCreesh
Re: Why I don't like catapult
-- René 'Necoro' Neumann
Re: Why I don't like catapult
-- Ciaran McCreesh
Re: Why I don't like catapult
-- René 'Necoro' Neumann
Re: Why I don't like catapult
-- Ciaran McCreesh
Re: Why I don't like catapult
-- René 'Necoro' Neumann
Re: Why I don't like catapult
-- René 'Necoro' Neumann
Navigation:
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Why I don't like catapult
Next by thread:
Re: Why I don't like catapult
Previous by date:
Re: Why I don't like catapult
Next by date:
Re: Why I don't like catapult


Updated Jun 17, 2009

Summary: Archive of the gentoo-guis mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.