summaryrefslogtreecommitdiff
path: root/lib/wireplumber/include/astal/wireplumber/device.h
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-01 14:17:36 +0200
committerAylur <[email protected]>2024-09-01 14:17:36 +0200
commit3e3f045d650a839d21f7b649da7aa5c19bd2e38b (patch)
tree9a974eb0d38932d474940288c662bd1f01ea3088 /lib/wireplumber/include/astal/wireplumber/device.h
parent408faee16911ccfaa3e7dad69f9938fd4a696704 (diff)
monorepo structuring
Diffstat (limited to 'lib/wireplumber/include/astal/wireplumber/device.h')
-rw-r--r--lib/wireplumber/include/astal/wireplumber/device.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/wireplumber/include/astal/wireplumber/device.h b/lib/wireplumber/include/astal/wireplumber/device.h
new file mode 100644
index 0000000..9f633e3
--- /dev/null
+++ b/lib/wireplumber/include/astal/wireplumber/device.h
@@ -0,0 +1,29 @@
+#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)
+
+#define ASTAL_WP_TYPE_DEVICE_TYPE (astal_wp_device_type_get_type())
+
+typedef enum { ASTAL_WP_DEVICE_TYPE_AUDIO, ASTAL_WP_DEVICE_TYPE_VIDEO } AstalWpDeviceType;
+
+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);
+AstalWpDeviceType astal_wp_device_get_device_type(AstalWpDevice *self);
+
+G_END_DECLS
+
+#endif // !ASTAL_WP_DEVICE_H