[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] 2 commits: vala: add pa_card_port_info bindings
Arun Raghavan
gitlab at gitlab.freedesktop.org
Thu Oct 18 06:08:28 UTC 2018
Arun Raghavan pushed to branch master at PulseAudio / pulseaudio
Commits:
07ce79c7 by David Hewitt at 2018-10-17T10:09:55Z
vala: add pa_card_port_info bindings
- - - - -
eb1c6948 by David Hewitt at 2018-10-17T17:12:29Z
Remove active_profile
- - - - -
1 changed file:
- vala/libpulse.vapi
Changes:
=====================================
vala/libpulse.vapi
=====================================
@@ -1258,6 +1258,20 @@ namespace PulseAudio {
public int set_monitor_stream(uint32 sink_input);
public uint32 get_monitor_stream();
}
+
+ [CCode (cname="pa_direction_t", cprefix="PA_DIRECTION_", has_type_id=false)]
+ [Flags]
+ public enum Direction {
+ OUTPUT = 0x0001U,
+ INPUT = 0x0002U
+ }
+
+ [CCode (cname="pa_port_available_t", cprefix="PA_PORT_AVAILABLE_", has_type_id=false)]
+ public enum PortAvailable {
+ UNKNOWN = 0,
+ NO = 1,
+ YES = 2
+ }
[CCode (cname="pa_sink_port_info", has_type_id=false)]
public struct SinkPortInfo {
@@ -1375,6 +1389,22 @@ namespace PulseAudio {
public uint32 priority;
int available;
}
+
+ [CCode (cname="pa_card_port_info", has_type_id=false)]
+ public struct CardPortInfo {
+ public string name;
+ public string description;
+ public uint32 priority;
+ PortAvailable available;
+ Direction direction;
+ public uint32 n_profiles;
+ [CCode (array_length_cname="n_profiles")]
+ public CardProfileInfo*[] profiles;
+ public Proplist proplist;
+ public int64 latency_offset;
+ [CCode (array_length_cname="n_profiles")]
+ public CardProfileInfo2*[] profiles2;
+ }
[CCode (cname="pa_card_info", has_type_id=false)]
public struct CardInfo {
@@ -1390,6 +1420,9 @@ namespace PulseAudio {
public CardProfileInfo2*[] profiles2;
public CardProfileInfo2 *active_profile2;
public Proplist proplist;
+ public uint32 n_ports;
+ [CCode (array_length_cname="n_ports")]
+ public CardPortInfo*[] ports;
}
[CCode (cname="pa_sink_input_info", has_type_id=false)]
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/compare/6c21a5678bd4b5678a709e00ac4762d81f5921e4...eb1c6948747358923c0d2cda554877d530e3ffd7
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/compare/6c21a5678bd4b5678a709e00ac4762d81f5921e4...eb1c6948747358923c0d2cda554877d530e3ffd7
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20181018/e06e6c97/attachment-0001.html>
More information about the pulseaudio-commits
mailing list