c7bde58cf744321c2cdfff69d925a013ed02b2b4
[monky] / src / audacious.h
1 /* -------------------------------------------------------------------------
2  * audacious.h:  conky support for Audacious audio player
3  * 
4  * http://audacious-media-player.org
5  * 
6  * Copyright (C) 2005  Philip Kovacs kovacsp3@comcast.net
7  *
8  * $Id$
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  * --------------------------------------------------------------------------- */
24
25 #ifndef AUDACIOUS_H
26 #define AUDACIOUS_H
27
28 /* 11 keys comprise the audacious information. */
29 enum _audacious_keys {
30         AUDACIOUS_STATUS,
31         AUDACIOUS_SONG,
32         AUDACIOUS_SONG_LENGTH,
33         AUDACIOUS_SONG_LENGTH_SECONDS,
34         AUDACIOUS_SONG_LENGTH_FRAMES,
35         AUDACIOUS_SONG_OUTPUT_LENGTH,
36         AUDACIOUS_SONG_OUTPUT_LENGTH_SECONDS,
37         AUDACIOUS_SONG_OUTPUT_LENGTH_FRAMES,
38         AUDACIOUS_SONG_BITRATE,
39         AUDACIOUS_SONG_FREQUENCY,
40         AUDACIOUS_SONG_CHANNELS
41 };
42                 
43 /* 11 slots for the audacious values */
44 typedef char audacious_t[11][128];
45
46 /* Service routine for the conky main thread */
47 void update_audacious(void);
48
49 /* Thread function */
50 void *audacious_thread_func(void *);
51
52 #endif