diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/astal/wireplumber/endpoint.h | 4 | ||||
-rw-r--r-- | include/astal/wireplumber/wp.h | 9 | ||||
-rw-r--r-- | include/private/endpoint-private.h | 1 |
3 files changed, 10 insertions, 4 deletions
diff --git a/include/astal/wireplumber/endpoint.h b/include/astal/wireplumber/endpoint.h index e2e4065..6ae8b94 100644 --- a/include/astal/wireplumber/endpoint.h +++ b/include/astal/wireplumber/endpoint.h @@ -22,19 +22,19 @@ typedef enum { ASTAL_WP_MEDIA_CLASS_VIDEO_STREAM, } AstalWpMediaClass; -void astal_wp_endpoint_update_volume(AstalWpEndpoint *self); void astal_wp_endpoint_set_volume(AstalWpEndpoint *self, gdouble volume); void astal_wp_endpoint_set_mute(AstalWpEndpoint *self, gboolean mute); gboolean astal_wp_endpoint_get_is_default(AstalWpEndpoint *self); +void astal_wp_endpoint_set_is_default(AstalWpEndpoint *self, gboolean is_default); AstalWpMediaClass astal_wp_endpoint_get_media_class(AstalWpEndpoint *self); guint astal_wp_endpoint_get_id(AstalWpEndpoint *self); gboolean astal_wp_endpoint_get_mute(AstalWpEndpoint *self); gdouble astal_wp_endpoint_get_volume(AstalWpEndpoint *self); const gchar *astal_wp_endpoint_get_description(AstalWpEndpoint *self); -void astal_wp_endpoint_set_is_default(AstalWpEndpoint *self, gboolean is_default); const gchar *astal_wp_endpoint_get_name(AstalWpEndpoint *self); const gchar *astal_wp_endpoint_get_icon(AstalWpEndpoint *self); +const gchar *astal_wp_endpoint_get_volume_icon(AstalWpEndpoint *self); G_END_DECLS diff --git a/include/astal/wireplumber/wp.h b/include/astal/wireplumber/wp.h index 3b4b5e5..d054bee 100644 --- a/include/astal/wireplumber/wp.h +++ b/include/astal/wireplumber/wp.h @@ -6,6 +6,7 @@ #include "audio.h" #include "device.h" #include "endpoint.h" +#include "video.h" G_BEGIN_DECLS @@ -17,13 +18,17 @@ AstalWpWp* astal_wp_wp_get_default(); AstalWpWp* astal_wp_get_default_wp(); AstalWpAudio* astal_wp_wp_get_audio(); +AstalWpVideo* astal_wp_wp_get_video(); + 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); + AstalWpDevice* astal_wp_wp_get_device(AstalWpWp* self, guint id); GList* astal_wp_wp_get_devices(AstalWpWp* self); +AstalWpEndpoint* astal_wp_wp_get_default_speaker(AstalWpWp* self); +AstalWpEndpoint* astal_wp_wp_get_default_microphone(AstalWpWp* self); + G_END_DECLS #endif // !ASTAL_WIREPLUMBER_H diff --git a/include/private/endpoint-private.h b/include/private/endpoint-private.h index 765f4b8..171df3b 100644 --- a/include/private/endpoint-private.h +++ b/include/private/endpoint-private.h @@ -12,6 +12,7 @@ AstalWpEndpoint *astal_wp_endpoint_create(WpNode *node, WpPlugin *mixer, WpPlugi 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); +void astal_wp_endpoint_update_volume(AstalWpEndpoint *self); G_END_DECLS |