Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright (C) 2018 Canonical Ltd. |
3 |
|
|
* |
4 |
|
|
* This program is free software; you can redistribute it and/or |
5 |
|
|
* modify it under the terms of the GNU General Public License as |
6 |
|
|
* published by the Free Software Foundation; either version 2 of the |
7 |
|
|
* License, or (at your option) any later version. |
8 |
|
|
* |
9 |
|
|
* This program is distributed in the hope that it will be useful, but |
10 |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 |
|
|
* Lesser General Public License for more details. |
13 |
|
|
* |
14 |
|
|
* You should have received a copy of the GNU General Public License |
15 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
16 |
|
|
*/ |
17 |
|
|
|
18 |
|
|
#pragma once |
19 |
|
|
|
20 |
|
|
#include <gtk/gtk.h> |
21 |
|
|
#include <pulse/pulseaudio.h> |
22 |
|
|
#include <gvc-mixer-control.h> |
23 |
|
|
|
24 |
|
|
G_BEGIN_DECLS |
25 |
|
|
|
26 |
|
|
#define CC_TYPE_DEVICE_COMBO_BOX (cc_device_combo_box_get_type ()) |
27 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcDeviceComboBox, cc_device_combo_box, CC, DEVICE_COMBO_BOX, GtkComboBox) |
28 |
|
|
|
29 |
|
|
void cc_device_combo_box_set_mixer_control (CcDeviceComboBox *combo_box, |
30 |
|
|
GvcMixerControl *mixer_control, |
31 |
|
|
gboolean is_output); |
32 |
|
|
|
33 |
|
|
GvcMixerUIDevice *cc_device_combo_box_get_device (CcDeviceComboBox *combo_box); |
34 |
|
|
|
35 |
|
|
void cc_device_combo_box_device_added (CcDeviceComboBox *self, |
36 |
|
|
guint id); |
37 |
|
|
|
38 |
|
|
void cc_device_combo_box_device_removed (CcDeviceComboBox *self, |
39 |
|
|
guint id); |
40 |
|
|
|
41 |
|
|
void cc_device_combo_box_active_device_changed (CcDeviceComboBox *self, |
42 |
|
|
guint id); |
43 |
|
|
|
44 |
|
|
G_END_DECLS |
45 |
|
|
|