diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2012-06-29 18:04:59 +0300 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2013-06-04 00:38:39 +0530 |
commit | 0bbef56976496084bf04cee703a6b7e62d457cb3 (patch) | |
tree | 66dbe5254e8fee7323911542e44088c0c3aa1ea3 /src/pulsecore/device-port.h | |
parent | 5ceb184e3e9151376d1a1e21c412bca747e20988 (diff) |
device-port: Make it impossible to have dual-direction ports
Diffstat (limited to 'src/pulsecore/device-port.h')
-rw-r--r-- | src/pulsecore/device-port.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pulsecore/device-port.h b/src/pulsecore/device-port.h index c0c00cf85..7f2107241 100644 --- a/src/pulsecore/device-port.h +++ b/src/pulsecore/device-port.h @@ -51,8 +51,7 @@ struct pa_device_port { pa_proplist *proplist; pa_hashmap *profiles; /* Does not own the profiles */ - pa_bool_t is_input:1; - pa_bool_t is_output:1; + pa_direction_t direction; int64_t latency_offset; /* .. followed by some implementation specific data */ @@ -63,7 +62,7 @@ PA_DECLARE_PUBLIC_CLASS(pa_device_port); #define PA_DEVICE_PORT_DATA(d) ((void*) ((uint8_t*) d + PA_ALIGN(sizeof(pa_device_port)))) -pa_device_port *pa_device_port_new(pa_core *c, const char *name, const char *description, size_t extra); +pa_device_port *pa_device_port_new(pa_core *c, const char *name, const char *description, pa_direction_t direction, size_t extra); /* The port's available status has changed */ void pa_device_port_set_available(pa_device_port *p, pa_available_t available); |