summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/endpoint-private.h15
-rw-r--r--include/meson.build8
-rw-r--r--include/wireplumber.h3
-rw-r--r--include/wireplumber/endpoint.h18
-rw-r--r--include/wireplumber/meson.build6
-rw-r--r--include/wireplumber/wp.h21
6 files changed, 71 insertions, 0 deletions
diff --git a/include/endpoint-private.h b/include/endpoint-private.h
new file mode 100644
index 0000000..1ee4d8c
--- /dev/null
+++ b/include/endpoint-private.h
@@ -0,0 +1,15 @@
+#ifndef ASTAL_WP_ENDPOINT_PRIV_H
+#define ASTAL_WP_ENDPOINT_PRIV_H
+
+#include <glib-object.h>
+#include <wp/wp.h>
+
+#include "endpoint.h"
+
+G_BEGIN_DECLS
+
+AstalWpEndpoint *astal_wp_endpoint_create(WpNode *node, WpPlugin *mixer);
+
+G_END_DECLS
+
+#endif // !ASTAL_WP_ENDPOINT_PRIV_H
diff --git a/include/meson.build b/include/meson.build
new file mode 100644
index 0000000..46fac69
--- /dev/null
+++ b/include/meson.build
@@ -0,0 +1,8 @@
+astal_wireplumber_inc = include_directories('.', 'wireplumber')
+astal_wireplumber_headers = files(
+ 'wireplumber.h',
+)
+
+install_headers(astal_wireplumber_headers, subdir : 'astal')
+
+subdir('wireplumber')
diff --git a/include/wireplumber.h b/include/wireplumber.h
new file mode 100644
index 0000000..f6dc8fb
--- /dev/null
+++ b/include/wireplumber.h
@@ -0,0 +1,3 @@
+
+#include "wireplumber/endpoint.h"
+#include "wireplumber/wp.h"
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