GTK+2 panel 

GTK+2 panel Git Source Tree

Root/libgpwidgets/gpw-volume-private.h

1/* Gtk2Panel - A bleeding edge Gtk+2 panel
2 * Copyright (C) 2009 Nicola Fontana <ntd at entidi.it>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but 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 Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20
21#ifndef __GPW_VOLUME_PRIVATE_H__
22#define __GPW_VOLUME_PRIVATE_H__
23
24
25G_BEGIN_DECLS
26
27#define GPW_VOLUME_GET_DATA(volume) ((GpwVolumePrivate *) ((GpwVolume *) (volume))->data)
28
29
30typedef struct _GpwVolumePrivate GpwVolumePrivate;
31
32
33typedef union _GpwStereoLevel GpwStereoLevel;
34
35struct _GpwVolumePrivate {
36 gchar *device;
37 gint handle;
38};
39
40union _GpwStereoLevel {
41 guint16 all;
42 struct {
43guint8 l;
44guint8 r;
45 } side;
46 int safe_guard;
47};
48
49
50G_END_DECLS
51
52
53#endif /* __GPW_VOLUME_PRIVATE_H__ */

Archive Download this file

Branches

Tags