summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-07-19 09:31:05 +0200
committerkotontrion <[email protected]>2024-07-19 09:31:05 +0200
commit31776f401a9ff3124ca3feb1271cd17fb751081e (patch)
tree0374efeeedcaf0d94e2a8c9b9ca4ca4fdcc1d2bb /include
parent9eb113163187e1eec0d2e0ac763cd9eeb45cc9ae (diff)
add default speaker/microphone objects
Diffstat (limited to 'include')
-rw-r--r--include/endpoint-private.h2
-rw-r--r--include/wireplumber/audio.h3
-rw-r--r--include/wireplumber/wp.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/include/endpoint-private.h b/include/endpoint-private.h
index c83c76f..765f4b8 100644
--- a/include/endpoint-private.h
+++ b/include/endpoint-private.h
@@ -9,6 +9,8 @@
G_BEGIN_DECLS
AstalWpEndpoint *astal_wp_endpoint_create(WpNode *node, WpPlugin *mixer, WpPlugin *defaults);
+AstalWpEndpoint *astal_wp_endpoint_init_as_default(AstalWpEndpoint *self, WpPlugin *mixer,
+ WpPlugin *defaults, AstalWpMediaClass type);
void astal_wp_endpoint_update_default(AstalWpEndpoint *self, gboolean is_default);
G_END_DECLS
diff --git a/include/wireplumber/audio.h b/include/wireplumber/audio.h
index 0e59937..5cfa27e 100644
--- a/include/wireplumber/audio.h
+++ b/include/wireplumber/audio.h
@@ -17,6 +17,9 @@ AstalWpEndpoint *astal_wp_audio_get_recorder(AstalWpAudio *self, guint id);
AstalWpEndpoint *astal_wp_audio_get_stream(AstalWpAudio *self, guint id);
AstalWpEndpoint *astal_wp_audio_get_endpoint(AstalWpAudio *self, guint id);
+AstalWpEndpoint *astal_wp_audio_get_default_speaker(AstalWpAudio *self);
+AstalWpEndpoint *astal_wp_audio_get_default_microphone(AstalWpAudio *self);
+
GList *astal_wp_audio_get_microphones(AstalWpAudio *self);
GList *astal_wp_audio_get_speakers(AstalWpAudio *self);
GList *astal_wp_audio_get_recorders(AstalWpAudio *self);
diff --git a/include/wireplumber/wp.h b/include/wireplumber/wp.h
index 7950499..94e68cc 100644
--- a/include/wireplumber/wp.h
+++ b/include/wireplumber/wp.h
@@ -18,6 +18,8 @@ AstalWpWp* astal_wp_get_default_wp();
AstalWpAudio* astal_wp_wp_get_audio();
AstalWpEndpoint* astal_wp_wp_get_endpoint(AstalWpWp* self, guint id);
GList* astal_wp_wp_get_endpoints(AstalWpWp* self);
+AstalWpEndpoint* astal_wp_wp_get_default_speaker(AstalWpWp* self);
+AstalWpEndpoint* astal_wp_wp_get_default_microphone(AstalWpWp* self);
G_END_DECLS