2009-07-28 21:44:22 +00:00
|
|
|
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
*
|
|
|
|
* Conky, a system monitor, based on torsmo
|
2009-04-09 21:20:10 +00:00
|
|
|
*
|
|
|
|
* Any original torsmo code is licensed under the BSD license
|
|
|
|
*
|
|
|
|
* All code written since the fork of torsmo is licensed under the GPL
|
|
|
|
*
|
|
|
|
* Please see COPYING for details
|
|
|
|
*
|
2010-01-01 23:46:17 +00:00
|
|
|
* Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
|
2009-04-09 21:20:10 +00:00
|
|
|
* (see AUTHORS)
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2008-06-14 18:41:12 +00:00
|
|
|
#ifndef XMMS2_H_
|
|
|
|
#define XMMS2_H_
|
|
|
|
|
2009-04-09 21:20:10 +00:00
|
|
|
#include <xmmsclient/xmmsclient.h>
|
|
|
|
|
2008-06-14 18:41:12 +00:00
|
|
|
struct xmms2_s {
|
|
|
|
char *artist;
|
|
|
|
char *album;
|
|
|
|
char *title;
|
|
|
|
char *genre;
|
|
|
|
char *comment;
|
|
|
|
char *url;
|
|
|
|
char *date;
|
2009-04-28 16:02:24 +00:00
|
|
|
char *playlist;
|
2008-06-14 18:41:12 +00:00
|
|
|
int tracknr;
|
|
|
|
int bitrate;
|
|
|
|
unsigned int id;
|
|
|
|
int duration;
|
|
|
|
int elapsed;
|
|
|
|
int timesplayed;
|
|
|
|
float size;
|
|
|
|
|
|
|
|
float progress;
|
2010-01-02 19:50:53 +00:00
|
|
|
int percent;
|
2008-06-14 18:41:12 +00:00
|
|
|
char *status;
|
2009-04-28 16:02:24 +00:00
|
|
|
int conn_state;
|
2008-06-14 18:41:12 +00:00
|
|
|
};
|
|
|
|
|
2010-06-13 17:10:59 +00:00
|
|
|
int update_xmms2(void);
|
2008-06-14 18:41:12 +00:00
|
|
|
|
2009-11-09 22:38:12 +00:00
|
|
|
void print_xmms2_tracknr(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_elapsed(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_duration(struct text_object *, char *, int);
|
2009-12-04 00:31:21 +00:00
|
|
|
double xmms2_barval(struct text_object *);
|
2009-11-09 22:38:12 +00:00
|
|
|
void print_xmms2_smart(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_artist(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_album(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_title(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_genre(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_comment(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_url(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_status(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_date(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_bitrate(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_id(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_size(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_playlist(struct text_object *, char *, int);
|
|
|
|
void print_xmms2_timesplayed(struct text_object *, char *, int);
|
2010-01-02 19:50:53 +00:00
|
|
|
void print_xmms2_percent(struct text_object *, char *, int);
|
|
|
|
int if_xmms2_connected(struct text_object *);
|
2009-11-09 22:38:12 +00:00
|
|
|
|
2009-11-29 20:06:59 +00:00
|
|
|
void free_xmms2(struct text_object *);
|
|
|
|
|
2008-06-14 18:41:12 +00:00
|
|
|
#endif /*XMMS2_H_*/
|