Hi!
On Jun 09, Mats Kindahl wrote:
> He Zhenxing wrote:
> > Hi Mats
> >
> > Did you noticed that I included <my_global.h> in plugin.h?
> >
> > The functions I added in plugin.h used some typedefs defined in it,
> > such as uint32, uchar. I am not quite sure other stuffs defined in
> > my_global.h should be exported or not.
>
> No, actually I didn't. I'm reluctant to include my_global.h since it
> contain a lot of dependencies on other code in the server... wait...
>
> ... no, I don't think it is a fundamental problem to include the file.
> There are a lot of definitions that are not really needed, but I see
> no harm in including it from plugin.h, we just have to make sure that
> it is part of the SDK as well.
No, please, don't inclue my_global.h in plugin.h, my_global.h is
internal, we are changing it freely and want to continue doing that.
plugin.h will be VERY soon strictly monitored to make it difficult for
anybody to modify it, the less files are public the better.
Besides, my_global.h is and always was written as internal - meaning
nobody tried to avoid namespace conflicts when it's used with other
projects' headers, nobody tried to minimize the dependencies, or
definitions/declarations in it, etc. It cannot be made a part of the
public API as is.
And it'd be best if your plugin would not need it, if at all possible.
(for all plugins I've helped to create it's true, they don't need
internal headers)
Regards / Mit vielen Grüssen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Engineer/Server Architect
/_/ /_/\_, /___/\___\_\___/ Sun Microsystems GmbH, HRB München 161028
<___/ Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring