[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: klibfactory cleanup
From: Harri Porten <porten () trolltech ! com>
Date: 2001-09-24 13:42:37
[Download RAW message or body]
On Mon, 24 Sep 2001, Simon Hausmann wrote:
>
> The thing I don't like about encoding the component name into the entry point
> symbol is that (aside from any platform/linking issues) it looks like
> redundant information to me. It means for the developer that he has to
> specify that very name in three different variants: Once as libfooname.la
> in the Makefile.am, once as libfooname in the .desktop file and once as
> strange extern "C" init_libfooname() method. Not really easy to use,
> compared to for example Qt's approach, where you specify the component
> name only one very single time: In the .pro file. In your source you just
> write Q_EXPORT_FOO( MyBlah ) and that's about it.
>
>
> Yes yes, call me a nitpicker about this tiny little detail in our API ;-)
How about
#define KDE_EXPORT_COMPONENT_FACTORY( factory ) \
extern "C" void *kde_init#factory() { return new factory; }
?
Harri.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic