mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
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:
parent
ed6f30c79a
commit
9d6eb21c7e
3 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue