summaryrefslogtreecommitdiff
path: root/include/astal/wireplumber/device.h
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-07-20 15:53:07 +0200
committerkotontrion <[email protected]>2024-07-20 15:53:07 +0200
commitaf2ae01f168d3eb1f622de0112c959e1390883e0 (patch)
tree4629758737435217bf4725ecbf647ce9125bddb5 /include/astal/wireplumber/device.h
parent86bff65898178fe6e58e8d02c9b6e588003621bc (diff)
add audio devices and profiles
Diffstat (limited to 'include/astal/wireplumber/device.h')
-rw-r--r--include/astal/wireplumber/device.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/astal/wireplumber/device.h b/include/astal/wireplumber/device.h
new file mode 100644
index 0000000..6e5f6d4
--- /dev/null
+++ b/include/astal/wireplumber/device.h
@@ -0,0 +1,24 @@
+#ifndef ASTAL_WP_DEVICE_H
+#define ASTAL_WP_DEVICE_H
+
+#include <glib-object.h>
+
+#include "profile.h"
+
+G_BEGIN_DECLS
+
+#define ASTAL_WP_TYPE_DEVICE (astal_wp_device_get_type())
+
+G_DECLARE_FINAL_TYPE(AstalWpDevice, astal_wp_device, ASTAL_WP, DEVICE, GObject)
+
+guint astal_wp_device_get_id(AstalWpDevice *self);
+const gchar *astal_wp_device_get_description(AstalWpDevice *self);
+const gchar *astal_wp_device_get_icon(AstalWpDevice *self);
+AstalWpProfile *astal_wp_device_get_profile(AstalWpDevice *self, gint id);
+GList *astal_wp_device_get_profiles(AstalWpDevice *self);
+void astal_wp_device_set_active_profile(AstalWpDevice *self, int profile_id);
+gint astal_wp_device_get_active_profile(AstalWpDevice *self);
+
+G_END_DECLS
+
+#endif // !ASTAL_WP_DEVICE_H