2006-03-26 11:33:42 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 by Miika Pekkarinen
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* 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.
|
2006-03-26 11:33:42 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2006-10-25 10:17:57 +00:00
|
|
|
#ifdef HAVE_TAGCACHE
|
2006-03-26 11:33:42 +00:00
|
|
|
#ifndef _TAGTREE_H
|
|
|
|
#define _TAGTREE_H
|
|
|
|
|
|
|
|
#include "tagcache.h"
|
|
|
|
#include "tree.h"
|
|
|
|
|
2006-09-21 17:16:35 +00:00
|
|
|
#define TAGNAVI_VERSION "#! rockbox/tagbrowser/2.0"
|
2006-09-25 19:52:38 +00:00
|
|
|
#define TAGMENU_MAX_ITEMS 64
|
2007-06-22 12:48:06 +00:00
|
|
|
#define TAGMENU_MAX_MENUS 32
|
2006-10-15 11:01:18 +00:00
|
|
|
#define TAGMENU_MAX_FMTS 32
|
2006-09-21 17:16:35 +00:00
|
|
|
|
2006-04-15 13:57:15 +00:00
|
|
|
struct tagentry {
|
|
|
|
char *name;
|
|
|
|
int newtable;
|
|
|
|
int extraseek;
|
|
|
|
};
|
2006-03-26 11:33:42 +00:00
|
|
|
|
2006-07-16 15:04:46 +00:00
|
|
|
bool tagtree_export(void);
|
2006-07-20 12:19:31 +00:00
|
|
|
bool tagtree_import(void);
|
2006-04-04 19:28:13 +00:00
|
|
|
void tagtree_init(void);
|
2006-03-26 11:33:42 +00:00
|
|
|
int tagtree_enter(struct tree_context* c);
|
|
|
|
void tagtree_exit(struct tree_context* c);
|
|
|
|
int tagtree_load(struct tree_context* c);
|
2006-04-15 13:57:15 +00:00
|
|
|
struct tagentry* tagtree_get_entry(struct tree_context *c, int id);
|
2006-07-25 07:41:00 +00:00
|
|
|
bool tagtree_insert_selection_playlist(int position, bool queue);
|
2006-09-19 12:36:21 +00:00
|
|
|
char *tagtree_get_title(struct tree_context* c);
|
2006-05-05 07:01:43 +00:00
|
|
|
int tagtree_get_attr(struct tree_context* c);
|
2007-04-16 09:14:36 +00:00
|
|
|
int tagtree_get_icon(struct tree_context* c);
|
2006-03-26 11:33:42 +00:00
|
|
|
int tagtree_get_filename(struct tree_context* c, char *buf, int buflen);
|
|
|
|
|
|
|
|
#endif
|
2006-10-25 10:17:57 +00:00
|
|
|
#endif
|