Debian Codegraph @

src/av-cp/renderer-combo.h

raw
1 /*
2 * Copyright (C) 2007 Zeeshan Ali (Khattak) <[email protected]>
3 *
4 * Authors: Zeeshan Ali (Khattak) <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __RENDERERCOMBO_H__
22 #define __RENDERERCOMBO_H__
23
24 #include <libgupnp/gupnp.h>
25 #include <libgupnp-av/gupnp-av.h>
26 #ifdef HAVE_CONFIG_H
27 #include <config.h>
28 #endif
29 #include <gtk/gtk.h>
30
31 typedef enum
32 {
33 PLAYBACK_STATE_UNKNOWN,
34 PLAYBACK_STATE_TRANSITIONING,
35 PLAYBACK_STATE_STOPPED,
36 PLAYBACK_STATE_PAUSED,
37 PLAYBACK_STATE_PLAYING
38 } PlaybackState;
39
40 GUPnPServiceProxy *
41 get_selected_av_transport (gchar **sink_protocol_info);
42
43 GUPnPServiceProxy *
44 get_selected_rendering_control (void);
45
46 guint
47 get_selected_renderer_volume (void);
48
49 PlaybackState
50 get_selected_renderer_state (void);
51
52 void
53 clear_selected_renderer_state (void);
54
55 void
56 add_media_renderer (GUPnPDeviceProxy *proxy);
57
58 void
59 remove_media_renderer (GUPnPDeviceProxy *proxy);
60
61 void
62 setup_renderer_combo (GtkBuilder *builder);
63
64 void
65 on_renderer_combo_changed (GtkComboBox *widget,
66 gpointer user_data);
67
68 #endif /* __RENDERERCOMBO_H__ */