1 /* -------------------------------------------------------------------------
2 * xmms.h: conky support for XMMS-related projects
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 * --------------------------------------------------------------------------- */
32 XMMS_POSITION_SECONDS,
38 XMMS_PLAYLIST_POSITION,
45 PROJECT_AUDACIOUS = 3,
49 #define SET_XMMS_PROJECT_AVAILABLE(mask,project) (mask |= (1<<project))
50 #define TEST_XMMS_PROJECT_AVAILABLE(mask,project) (mask & (1<<project))
52 /* 12 slots for the xmms values */
53 typedef char xmms_t[12][128];
55 /* create a worker thread for xmms media player status */
56 int create_xmms_thread(void);
58 /* destroy xmms media player worker thread */
59 int destroy_xmms_thread(void);
61 /* Service routine for the conky main thread */
62 void update_xmms(void);
64 /* Thread functions */
65 void *xmms_thread_func_dynamic(void *);
66 void *xmms_thread_func_infopipe(void *);