[Ns-developers] contrib code details
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Wed Dec 5 03:42:12 PST 2007
On Wed, 2007-12-05 at 11:22 +0000, Gustavo Carneiro wrote:
> First of all, and taking EventGarbageCollector as example, it is composed
> of 1) a header file "event-garbage-collector.h", and 2) a C++ source file
> "event-garbage-collector.cc". It is clear where to put the header file, but
> what happens to the associated C++ source file? Second, is the header file
I would say that src/contrib contains both event-garbage-collector.h and
event-garbage-collector.cc
> only going to be installed to ns3/contrib and originate from any module, or
> will it live in the src/contrib directory all along?
I think that it should be installed in the normal ns3 include
directory.
>
> My proposal is to create a 'contrib' ns-3 real module, with the sole
> difference that it installs header files to ns3/contrib instead of ns3. Is
> this what was intedend all along?
I seems simpler to not bother at all and install it in ns3 too.
I think that the purpose of the src/contrib directory is really just as
a sort of intermediate module where code goes when it seems generic but
we are not sure it has many users and we might not want to commit to any
kind of api stability.
Mathieu
More information about the Ns-developers
mailing list