From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JgyVd-0001mK-8s for garchives@archives.gentoo.org; Wed, 02 Apr 2008 08:39:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 503BFE0B2D; Wed, 2 Apr 2008 08:39:52 +0000 (UTC) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.236]) by pigeon.gentoo.org (Postfix) with ESMTP id EB86AE0B2D for ; Wed, 2 Apr 2008 08:39:51 +0000 (UTC) Received: by hu-out-0506.google.com with SMTP id 23so564600huc.1 for ; Wed, 02 Apr 2008 01:39:51 -0700 (PDT) Received: by 10.82.118.1 with SMTP id q1mr21827130buc.13.1207125590869; Wed, 02 Apr 2008 01:39:50 -0700 (PDT) Received: from snowcone ( [213.121.151.206]) by mx.google.com with ESMTPS id a37sm1572384fkc.3.2008.04.02.01.39.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Apr 2008 01:39:50 -0700 (PDT) Date: Wed, 2 Apr 2008 09:39:43 +0100 From: Ciaran McCreesh To: gentoo-guis@lists.gentoo.org Cc: lists@necoro.eu Subject: Re: [gentoo-guis] Why I don't like catapult Message-ID: <20080402093943.6bebd816@snowcone> In-Reply-To: <47F2B04C.30107@necoro.eu> References: <20080330005741.48243ed8@snowcone> <47EFCE30.8030800@necoro.eu> <20080330223830.739a5d88@snowcone> <47F0162B.2040800@necoro.eu> <20080401120430.7fd4e1a6@googlemail.com> <47F2427E.4070704@necoro.eu> <47F2B04C.30107@necoro.eu> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Graphical User Interfaces Project X-BeenThere: gentoo-guis@lists.gentoo.org Reply-To: gentoo-guis@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Y6RAtrFosm_HTq8M=4SCzR+"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: d4ba2c87-337b-4af9-9961-97f2b65e7a20 X-Archives-Hash: 57e1c40052e1ec0a131b2428864b7034 --Sig_/Y6RAtrFosm_HTq8M=4SCzR+ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 01 Apr 2008 23:59:40 +0200 Ren=C3=A9 'Necoro' Neumann 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... --=20 Ciaran McCreesh --Sig_/Y6RAtrFosm_HTq8M=4SCzR+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFH80ZR96zL6DUtXhERAoLdAKCF8IeV+SqmwElBfph7c04u8f2JvACeL16P fkhIqLi2EQHmgEvBSGGfgz4= =oTcI -----END PGP SIGNATURE----- --Sig_/Y6RAtrFosm_HTq8M=4SCzR+-- -- gentoo-guis@lists.gentoo.org mailing list