blob: 9f633e3a650a4589432814bde1baa9c0d1635fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|