Turn device ports into reference counted objects
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 25 Nov 2011 14:17:12 +0000 (15:17 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 26 Nov 2011 14:46:42 +0000 (16:46 +0200)
commitd9685ec85db3722bf3988a64dda4d8ee21c7777b
treef6b18445054983e4c1ecbd1bdeb2af8b3917a93b
parent961ec210a676e768902956218ff50bfac26dae65
Turn device ports into reference counted objects

Since both cards and sinks can hold references to a port, it makes
sense to reference count them. Although no current implementation
actually has sinks with ports but without a card, it felt wrong
to make it harder to make such an implementation in the future.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/Makefile.am
src/pulsecore/device-port.c [new file with mode: 0644]
src/pulsecore/device-port.h [new file with mode: 0644]
src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source.c
src/pulsecore/source.h