rbutil: Add quessing of the Drive letter via Windows API, also restructuring for...
[kugel-rb.git] / apps / tagtree.h
blob980dc0d0b4280d004deb078eb66dc2c49bd15186
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Miika Pekkarinen
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifdef HAVE_TAGCACHE
20 #ifndef _TAGTREE_H
21 #define _TAGTREE_H
23 #include "tagcache.h"
24 #include "tree.h"
26 #define TAGNAVI_VERSION "#! rockbox/tagbrowser/2.0"
27 #define TAGMENU_MAX_ITEMS 64
28 #define TAGMENU_MAX_MENUS 16
29 #define TAGMENU_MAX_FMTS 32
31 enum table { root = 1, navibrowse, allsubentries, playtrack };
33 struct tagentry {
34 char *name;
35 int newtable;
36 int extraseek;
39 bool tagtree_export(void);
40 bool tagtree_import(void);
41 void tagtree_init(void);
42 int tagtree_enter(struct tree_context* c);
43 void tagtree_exit(struct tree_context* c);
44 int tagtree_load(struct tree_context* c);
45 struct tagentry* tagtree_get_entry(struct tree_context *c, int id);
46 bool tagtree_insert_selection_playlist(int position, bool queue);
47 char *tagtree_get_title(struct tree_context* c);
48 int tagtree_get_attr(struct tree_context* c);
49 int tagtree_get_icon(struct tree_context* c);
50 int tagtree_get_filename(struct tree_context* c, char *buf, int buflen);
52 #endif
53 #endif