[Kde-imaging] NameSpace wrapper in KameraKlient removed !!!

Aurélien Gâteau aurelien.gateau at free.fr
Mon Sep 6 15:44:36 CEST 2004


Le lundi 6 Septembre 2004 15:26, Jesper K. Pedersen a écrit :
> On Monday 06 September 2004 15:22, Aurélien Gâteau wrote:
> | Le vendredi 3 Septembre 2004 14:48, Caulier Gilles a écrit :
> | > Hi all,
> | >
> | > I have recently checked the last commits by Laurent (A patch from Tudor
> | > calin) concerning this KIPI plugin. I have see that the namespace
> | > KIPIKameraKlientPlugin provide by me in _all_ cpp/h files for this
> | > plugin have been removed.
> | >
> | > This is very _Dangerous_. We must provide an independant namespace
> | > wrapper for each plugin in all source code.
> | >
> | > I have hacked more than one plugin in the past because none namespace
> | > have been used in the digikamplugins implementation. If we don't use
> | > the a namespace, we have a large risk to have some memory conflics
> | > between the plugin !!!
> |
> | I don't see why we need namespace for plugins. Each plugin gets his own
> | .so file and can be considered like an application. Can you explain why
> | are namespaces necessary?
>
> When the files are loaded, they will clash, as the names are used to form
> the mangling of the object.

Oh I see, stupid me. I'm CCing Tudor Calin, he is the maintainer of this 
plugin.

Aurélien


More information about the Kde-imaging mailing list