1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3
* Copyright (C) Conor Curran 2011 <conor.curran@canonical.com>
5
* This is free software: you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* gvc-mixer-output.c is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
* See the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License along
16
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef _GVC_MIXER_UI_DEVICE_H_
20
#define _GVC_MIXER_UI_DEVICE_H_
22
#include <glib-object.h>
27
#define GVC_TYPE_MIXER_UI_DEVICE (gvc_mixer_ui_device_get_type ())
28
#define GVC_MIXER_UI_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDevice))
29
#define GVC_MIXER_UI_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDeviceClass))
30
#define GVC_IS_MIXER_UI_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVC_TYPE_MIXER_UI_DEVICE))
31
#define GVC_IS_MIXER_UI_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVC_TYPE_MIXER_UI_DEVICE))
32
#define GVC_MIXER_UI_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVC_TYPE_MIXER_UI_DEVICE, GvcMixerUIDeviceClass))
33
#define GVC_MIXER_UI_DEVICE_INVALID -1
35
typedef struct GvcMixerUIDevicePrivate GvcMixerUIDevicePrivate;
39
GObjectClass parent_class;
40
}GvcMixerUIDeviceClass;
44
GObject parent_instance;
45
GvcMixerUIDevicePrivate *priv;
54
GType gvc_mixer_ui_device_get_type (void) G_GNUC_CONST;
56
guint gvc_mixer_ui_device_get_id (GvcMixerUIDevice *dev);
57
gint gvc_mixer_ui_device_get_stream_id (GvcMixerUIDevice *dev);
58
const gchar* gvc_mixer_ui_device_get_description (GvcMixerUIDevice *dev);
59
const gchar* gvc_mixer_ui_device_get_origin (GvcMixerUIDevice *dev);
60
const gchar* gvc_mixer_ui_device_get_port (GvcMixerUIDevice *dev);
61
const gchar* gvc_mixer_ui_device_get_user_preferred_profile (GvcMixerUIDevice *dev);
62
const gchar* gvc_mixer_ui_device_get_top_priority_profile (GvcMixerUIDevice *dev);
63
GList* gvc_mixer_ui_device_get_profiles (GvcMixerUIDevice *dev);
64
GList* gvc_mixer_ui_device_get_supported_profiles (GvcMixerUIDevice *device);
65
gboolean gvc_mixer_ui_device_determine_profile_sensitivity (GvcMixerUIDevice *device);
66
void gvc_mixer_ui_device_set_profiles (GvcMixerUIDevice *device, const GList *profiles);
67
void gvc_mixer_ui_device_set_user_preferred_profile (GvcMixerUIDevice *device, const gchar *profile);
68
void gvc_mixer_ui_device_invalidate_stream (GvcMixerUIDevice *dev);
69
gboolean gvc_mixer_ui_device_is_software_stream (GvcMixerUIDevice *dev);
74
#endif /* _GVC_MIXER_UI_DEVICE_H_ */