update copywrite dates where appropriate
[monky] / src / audacious.h
1 /* $Id$ */
2
3 /* 
4  * audacious.h:  conky support for audacious music player
5  * 
6  * Copyright (C) 2005-2007 Philip Kovacs pkovacs@users.sourceforge.net
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
21  * USA.
22  *
23  */
24
25 #ifndef AUDACIOUS_H
26 #define AUDACIOUS_H
27
28 enum _audacious_items {
29         AUDACIOUS_STATUS=0,
30         AUDACIOUS_TITLE,
31         AUDACIOUS_LENGTH,
32         AUDACIOUS_LENGTH_SECONDS,
33         AUDACIOUS_POSITION,
34         AUDACIOUS_POSITION_SECONDS,
35         AUDACIOUS_BITRATE,
36         AUDACIOUS_FREQUENCY,
37         AUDACIOUS_CHANNELS,
38         AUDACIOUS_FILENAME,
39         AUDACIOUS_PLAYLIST_LENGTH,
40         AUDACIOUS_PLAYLIST_POSITION,
41 };
42
43 /* 12 slots for the audacious values */
44 typedef char audacious_t[12][128];
45
46 /* create a worker thread for audacious media player status */
47 int create_audacious_thread(void);
48
49 /* destroy audacious media player worker thread */
50 int destroy_audacious_thread(void);
51
52 /* Service routine for the conky main thread */
53 void update_audacious(void);
54
55 /* Thread functions */
56 void *audacious_thread_func(void *);
57
58 #endif