summaryrefslogtreecommitdiff
path: root/include/wireplumber
diff options
context:
space:
mode:
Diffstat (limited to 'include/wireplumber')
-rw-r--r--include/wireplumber/endpoint.h18
-rw-r--r--include/wireplumber/meson.build6
-rw-r--r--include/wireplumber/wp.h21
3 files changed, 45 insertions, 0 deletions
diff --git a/include/wireplumber/endpoint.h b/include/wireplumber/endpoint.h
new file mode 100644
index 0000000..354244e
--- /dev/null
+++ b/include/wireplumber/endpoint.h
@@ -0,0 +1,18 @@
+#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)
+
+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);
+
+G_END_DECLS
+
+#endif // !ASTAL_WP_ENDPOINT_H
diff --git a/include/wireplumber/meson.build b/include/wireplumber/meson.build
new file mode 100644
index 0000000..319d8f5
--- /dev/null
+++ b/include/wireplumber/meson.build
@@ -0,0 +1,6 @@
+astal_wireplumber_subheaders = files(
+ 'wp.h',
+ 'endpoint.h'
+)
+
+install_headers(astal_wireplumber_subheaders, subdir : 'astal/wireplumber')
diff --git a/include/wireplumber/wp.h b/include/wireplumber/wp.h
new file mode 100644
index 0000000..61c3d87
--- /dev/null
+++ b/include/wireplumber/wp.h
@@ -0,0 +1,21 @@
+#ifndef ASTAL_WIREPLUMBER_H
+#define ASTAL_WIREPLUMBER_H
+
+#include <glib-object.h>
+
+#include "endpoint.h"
+
+G_BEGIN_DECLS
+
+#define ASTAL_WP_TYPE_WP (astal_wp_wp_get_type())
+
+G_DECLARE_FINAL_TYPE(AstalWpWp, astal_wp_wp, ASTAL_WP, WP, GObject)
+
+AstalWpWp* astal_wp_wp_get_default();
+AstalWpWp* astal_wp_get_default_wp();
+
+AstalWpEndpoint* astal_wp_wp_get_endpoint(AstalWpWp* self, guint id);
+
+G_END_DECLS
+
+#endif // !ASTAL_WIREPLUMBER_H