2006-01-07 07:01:22 +00:00
|
|
|
/* -------------------------------------------------------------------------
|
2006-01-08 08:02:37 +00:00
|
|
|
* xmms.h: conky support for XMMS-related projects
|
2006-01-07 07:01:22 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Philip Kovacs kovacsp3@comcast.net
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
* --------------------------------------------------------------------------- */
|
|
|
|
|
2006-01-08 08:02:37 +00:00
|
|
|
#ifndef XMMS_H
|
|
|
|
#define XMMS_H
|
2006-01-07 07:01:22 +00:00
|
|
|
|
2006-01-08 08:02:37 +00:00
|
|
|
enum _xmms_items {
|
|
|
|
XMMS_STATUS=0,
|
|
|
|
XMMS_TITLE,
|
|
|
|
XMMS_LENGTH,
|
|
|
|
XMMS_LENGTH_SECONDS,
|
|
|
|
XMMS_POSITION,
|
|
|
|
XMMS_POSITION_SECONDS,
|
|
|
|
XMMS_BITRATE,
|
|
|
|
XMMS_FREQUENCY,
|
|
|
|
XMMS_CHANNELS,
|
|
|
|
XMMS_FILENAME,
|
|
|
|
XMMS_PLAYLIST_LENGTH,
|
|
|
|
XMMS_PLAYLIST_POSITION,
|
2006-01-07 07:01:22 +00:00
|
|
|
};
|
2006-01-08 08:02:37 +00:00
|
|
|
|
|
|
|
/* 12 slots for the xmms values */
|
|
|
|
typedef char xmms_t[12][128];
|
2006-01-07 07:01:22 +00:00
|
|
|
|
|
|
|
/* Service routine for the conky main thread */
|
2006-01-08 08:02:37 +00:00
|
|
|
void update_xmms(void);
|
2006-01-07 07:01:22 +00:00
|
|
|
|
|
|
|
/* Thread function */
|
2006-01-08 08:02:37 +00:00
|
|
|
void *xmms_thread_func(void *);
|
2006-01-07 07:01:22 +00:00
|
|
|
|
|
|
|
#endif
|