X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Faudacious.h;h=0e64cdef9dfb25b05092a3f0de3b23a5850735f4;hb=f3e250df559a6e4677072bbe2936a8a093798bbd;hp=65a0b67de4b9bee2949324409c0adc05e317bf01;hpb=610b0b628dcab16dc218e8a417b7f9b82d89483e;p=monky diff --git a/src/audacious.h b/src/audacious.h index 65a0b67..0e64cde 100644 --- a/src/audacious.h +++ b/src/audacious.h @@ -1,6 +1,7 @@ -/* $Id$ */ - -/* audacious.h: conky support for audacious music player +/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- + * vim: ts=4 sw=4 noet ai cindent syntax=c + * + * audacious.h: conky support for audacious music player * * Copyright (C) 2005-2007 Philip Kovacs pkovacs@users.sourceforge.net * @@ -17,16 +18,14 @@ * 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. */ + * USA. + * + */ #ifndef AUDACIOUS_H #define AUDACIOUS_H -struct audacious_s { - audacious_t items; /* e.g. items[AUDACIOUS_STATUS] */ - int max_title_len; /* e.g. ${audacious_title 50} */ - timed_thread *p_timed_thread; -}; +#include "timed_thread.h" enum _audacious_items { AUDACIOUS_STATUS = 0, @@ -41,10 +40,18 @@ enum _audacious_items { AUDACIOUS_FILENAME, AUDACIOUS_PLAYLIST_LENGTH, AUDACIOUS_PLAYLIST_POSITION, + AUDACIOUS_MAIN_VOLUME, }; /* 12 slots for the audacious values */ -typedef char audacious_t[12][128]; +typedef char audacious_t[13][128]; + +/* type for data exchange with main thread */ +typedef struct audacious_s { + audacious_t items; /* e.g. items[AUDACIOUS_STATUS] */ + int max_title_len; /* e.g. ${audacious_title 50} */ + timed_thread *p_timed_thread; +} AUDACIOUS_S; /* create a worker thread for audacious media player status */ int create_audacious_thread(void);