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
|
|
|
|
|
2011-12-19 20:12:52 +00:00
|
|
|
#include "config.h"
|
2006-03-26 11:33:42 +00:00
|
|
|
#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
|
|
|
|
2018-10-16 03:04:04 +00:00
|
|
|
int tagtree_export(void);
|
|
|
|
int tagtree_import(void);
|
2010-03-03 23:20:32 +00:00
|
|
|
void tagtree_init(void) INIT_ATTR;
|
2022-11-11 00:27:15 +00:00
|
|
|
int tagtree_enter(struct tree_context* c, bool is_visible);
|
|
|
|
void tagtree_exit(struct tree_context* c, bool is_visible);
|
2006-03-26 11:33:42 +00:00
|
|
|
int tagtree_load(struct tree_context* c);
|
2011-08-30 14:01:45 +00:00
|
|
|
char* tagtree_get_entry_name(struct tree_context *c, int id,
|
|
|
|
char* buf, size_t bufsize);
|
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
|