fac1c853cc9f9efed4069f7495b8aa278fb5f6c7
[monky] / src / audacious.h
1 /* -------------------------------------------------------------------------
2  * audacious.h:  conky support for audacious music player
3  * 
4  * Copyright (C) 2005  Philip Kovacs kovacsp3@comcast.net
5  *
6  * $Id$
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  USA
21  * --------------------------------------------------------------------------- */
22
23 #ifndef AUDACIOUS_H
24 #define AUDACIOUS_H
25
26 enum _audacious_items {
27         AUDACIOUS_STATUS=0,
28         AUDACIOUS_TITLE,
29         AUDACIOUS_LENGTH,
30         AUDACIOUS_LENGTH_SECONDS,
31         AUDACIOUS_POSITION,
32         AUDACIOUS_POSITION_SECONDS,
33         AUDACIOUS_BITRATE,
34         AUDACIOUS_FREQUENCY,
35         AUDACIOUS_CHANNELS,
36         AUDACIOUS_FILENAME,
37         AUDACIOUS_PLAYLIST_LENGTH,
38         AUDACIOUS_PLAYLIST_POSITION,
39 };
40
41 /* 12 slots for the audacious values */
42 typedef char audacious_t[12][128];
43
44 /* create a worker thread for audacious media player status */
45 int create_audacious_thread(void);
46
47 /* destroy audacious media player worker thread */
48 int destroy_audacious_thread(void);
49
50 /* Service routine for the conky main thread */
51 void update_audacious(void);
52
53 /* Thread functions */
54 void *audacious_thread_func(void *);
55
56 #endif