Create a dedicated header per source file
Assume the following project files
foo.vala
bar.vala
from which the following files would be generated
foo.c
foo.h
foo-private.h (or foo-internal.h)
bar.c
bar.h
bar-private.h (or bar-internal.h)
These header will reference each other to reduce duplicated definitions.
- if
--header
or--internal-header
gets passed it should be avoided to have file conflicts. - the requested "
--header
" file should refer to the "public" headers, and therefore won't contain actual definitions anymore - the requested "
--internal-header
" file should refer to the "private/internal" headers, and therefore won't contain actual definitions anymore - this separation will be off by default and enabled by a command-line option, because it impacts buildsystems while it requires the installation of the "public" headers together.