[pulseaudio-discuss] [PATCH] typedefs.h: Move some typedefs to a separate file

Tanu Kaskinen tanuk at iki.fi
Sun Dec 13 19:04:25 PST 2015


On Thu, 2015-11-26 at 18:29 +0100, David Henningsson wrote:
> The relationship between sinks, sources, cards, profiles, and ports
> is becoming ever more intertwined, to the point that if you try to
> include one file from the other, you're likely to end up with some
> weird error somewhere else.
> 
> Work around this by creating a new typedefs.h, which does not depend
> on anything else, and just creates a few typedefs.
> 
> (Can be expanded with more typedefs in the future if the need arises.)
> 
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/pulsecore/card.h          |  7 +++----
>  src/pulsecore/client.h        |  3 +--
>  src/pulsecore/core.h          |  3 +--
>  src/pulsecore/device-port.h   |  3 +--
>  src/pulsecore/sink-input.h    |  3 +--
>  src/pulsecore/sink.h          |  4 +---
>  src/pulsecore/source-output.h |  3 +--
>  src/pulsecore/source.h        |  3 +--
>  src/pulsecore/typedefs.h      | 37 +++++++++++++++++++++++++++++++++++++
>  9 files changed, 47 insertions(+), 19 deletions(-)
>  create mode 100644 src/pulsecore/typedefs.h

I pushed this now.

-- 
Tanu


More information about the pulseaudio-discuss mailing list