device-port: Add a card pointer to the ports.

This way we can directly access the card that owns the port instead of
iterating over all cards.
This commit is contained in:
poljar (Damir Jelić) 2013-01-17 20:55:14 +01:00 committed by Tanu Kaskinen
parent ed6f30c79a
commit 9d6eb21c7e
3 changed files with 12 additions and 1 deletions

View file

@ -36,10 +36,12 @@ typedef struct pa_device_port pa_device_port;
#include <pulsecore/object.h>
#include <pulsecore/hashmap.h>
#include <pulsecore/core.h>
#include <pulsecore/card.h>
struct pa_device_port {
pa_object parent; /* Needed for reference counting */
pa_core *core;
pa_card *card;
char *name;
char *description;