summaryrefslogtreecommitdiff
path: root/include/astal/wireplumber/endpoint.h
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-07-19 10:13:44 +0200
committerkotontrion <[email protected]>2024-07-19 10:13:44 +0200
commit86bff65898178fe6e58e8d02c9b6e588003621bc (patch)
tree9a64b9c5994c689c90229e1d3d639d870292a88c /include/astal/wireplumber/endpoint.h
parent5cd9f20a93101da2738a4be3a0735a4d6cd3abf9 (diff)
move headers to the correct location
Diffstat (limited to 'include/astal/wireplumber/endpoint.h')
-rw-r--r--include/astal/wireplumber/endpoint.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/astal/wireplumber/endpoint.h b/include/astal/wireplumber/endpoint.h
new file mode 100644
index 0000000..269551b
--- /dev/null
+++ b/include/astal/wireplumber/endpoint.h
@@ -0,0 +1,35 @@
+#ifndef ASTAL_WP_ENDPOINT_H
+#define ASTAL_WP_ENDPOINT_H
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+#define ASTAL_WP_TYPE_ENDPOINT (astal_wp_endpoint_get_type())
+
+G_DECLARE_FINAL_TYPE(AstalWpEndpoint, astal_wp_endpoint, ASTAL_WP, ENDPOINT, GObject)
+
+#define ASTAL_WP_TYPE_MEDIA_CLASS (astal_wp_media_class_get_type())
+
+typedef enum {
+ ASTAL_WP_MEDIA_CLASS_AUDIO_MICROPHONE,
+ ASTAL_WP_MEDIA_CLASS_AUDIO_SPEAKER,
+ ASTAL_WP_MEDIA_CLASS_AUDIO_RECORDER,
+ ASTAL_WP_MEDIA_CLASS_AUDIO_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);
+
+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);
+
+G_END_DECLS
+
+#endif // !ASTAL_WP_ENDPOINT_H