summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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