2009-08-16 18:23:00 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2010-01-03 14:28:09 +00:00
|
|
|
* $Id$
|
2009-08-16 18:23:00 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Nicolas Pennequin
|
|
|
|
*
|
|
|
|
* 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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SKIN_TOKENS_H_
|
|
|
|
#define _SKIN_TOKENS_H_
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2010-07-29 12:37:48 +00:00
|
|
|
#include "tag_table.h"
|
2009-08-16 18:23:00 +00:00
|
|
|
|
|
|
|
struct wps_token {
|
2010-07-29 12:37:48 +00:00
|
|
|
enum skin_token_type type; /* enough to store the token type */
|
|
|
|
|
2009-08-16 18:23:00 +00:00
|
|
|
/* Whether the tag (e.g. track name or the album) refers the
|
|
|
|
current or the next song (false=current, true=next) */
|
|
|
|
bool next;
|
|
|
|
|
|
|
|
union {
|
|
|
|
char c;
|
|
|
|
unsigned short i;
|
2010-01-03 10:50:34 +00:00
|
|
|
void* data;
|
2009-08-16 18:23:00 +00:00
|
|
|
} value;
|
|
|
|
};
|
2010-03-06 14:14:44 +00:00
|
|
|
|
2009-08-16 18:23:00 +00:00
|
|
|
struct skin_token_list {
|
|
|
|
struct wps_token *token;
|
|
|
|
struct skin_token_list *next;
|
|
|
|
};
|
|
|
|
|
2010-01-13 06:02:38 +00:00
|
|
|
char* get_dir(char* buf, int buf_size, const char* path, int level);
|
2010-03-06 14:14:44 +00:00
|
|
|
|
2009-08-16 18:23:00 +00:00
|
|
|
#endif
|