1 /* -------------------------------------------------------------------------
2 * audacious.h: conky support for audacious music player
4 * Copyright (C) 2005 Philip Kovacs kovacsp3@comcast.net
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.
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.
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 * --------------------------------------------------------------------------- */
26 enum _audacious_items {
30 AUDACIOUS_LENGTH_SECONDS,
32 AUDACIOUS_POSITION_SECONDS,
37 AUDACIOUS_PLAYLIST_LENGTH,
38 AUDACIOUS_PLAYLIST_POSITION,
41 /* 12 slots for the audacious values */
42 typedef char audacious_t[12][128];
44 /* create a worker thread for audacious media player status */
45 int create_audacious_thread(void);
47 /* destroy audacious media player worker thread */
48 int destroy_audacious_thread(void);
50 /* Service routine for the conky main thread */
51 void update_audacious(void);
53 /* Thread functions */
54 void *audacious_thread_func(void *);