]> code.delx.au - pulseaudio/commit
formats: Export more functions needed for a clean build.
authorColin Guthrie <colin@mageia.org>
Sun, 4 Sep 2011 19:05:14 +0000 (21:05 +0200)
committerColin Guthrie <colin@mageia.org>
Mon, 5 Sep 2011 08:33:17 +0000 (10:33 +0200)
commit03b97d0e08ed6a8578a94970390c7347d0deb9de
tree4bcafc1c1eabb1b829dd097c4c7d6ebf370c038c
parent1595608b0b1da794ad79e42c0131c9cb523e9b0b
formats: Export more functions needed for a clean build.

All of these functions are not actually defined in format.h
(they are defined in internal.h) and thus should really be
included only in libpulsecommon and implemented in a separate
source file.

However if that approach was taken, and these functions were
included in libpulsecommon, then they would have a link time
dependancy on libpulse (as these four functions use other
pa_format_info_* functions). As the opposite is already true
(libpulse depends on libpulsecommon), this is not possible as
it creates a circular dependancy.

Thus the only option is to just to include these four functions
in the map-file, but not actually export any public headers for
them. Of course users could use this implementation by defining
them in their own headers, but the only practical problem
with this approach is naming conflicts which is unlikely to happen.

fdo#40616
src/map-file