public inbox for gentoo-guis@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
To: gentoo-guis@lists.gentoo.org
Cc: lists@necoro.eu
Subject: Re: [gentoo-guis] Why I don't like catapult
Date: Wed, 2 Apr 2008 09:39:43 +0100	[thread overview]
Message-ID: <20080402093943.6bebd816@snowcone> (raw)
In-Reply-To: <47F2B04C.30107@necoro.eu>

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

On Tue, 01 Apr 2008 23:59:40 +0200
René 'Necoro' Neumann <lists@necoro.eu> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-04-02  8:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-30  0:57 [gentoo-guis] Why I don't like catapult Ciaran McCreesh
2008-03-30 10:16 ` René 'Necoro' Neumann
2008-03-30 17:30 ` René 'Necoro' Neumann
2008-03-30 21:38   ` Ciaran McCreesh
2008-03-30 22:37     ` René 'Necoro' Neumann
2008-04-01 11:04       ` Ciaran McCreesh
2008-04-01 14:11         ` René 'Necoro' Neumann
2008-04-01 21:59           ` René 'Necoro' Neumann
2008-04-02  8:39             ` Ciaran McCreesh [this message]
2008-04-02  8:34           ` Ciaran McCreesh
2008-04-02 11:58             ` René 'Necoro' Neumann
2008-04-02 12:06               ` Ciaran McCreesh
2008-04-02 12:28                 ` René 'Necoro' Neumann
2008-04-02 12:40                   ` Ciaran McCreesh
2008-04-02 13:57                     ` René 'Necoro' Neumann
2008-04-04  7:04                       ` Ciaran McCreesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080402093943.6bebd816@snowcone \
    --to=ciaran.mccreesh@googlemail.com \
    --cc=gentoo-guis@lists.gentoo.org \
    --cc=lists@necoro.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox