1 /* gmpc-magnatune (GMPC plugin)
2 * Copyright (C) 2006-2009 Qball Cow <qball@sarine.nl>
3 * Project homepage: http://gmpcwiki.sarine.nl/
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #ifndef __MAGNATUNE_H__
21 #define __MAGNATUNE_H__
23 void magnatune_db_destroy(void);
24 void magnatune_db_init();
25 void magnatune_db_open();
26 gboolean
magnatune_db_has_data();
27 MpdData
* magnatune_db_get_genre_list();
28 MpdData
* magnatune_db_get_album_list(char *wanted_genre
,char *wanted_artist
);
29 MpdData
* magnatune_db_get_artist_list(char *genre
);
31 GList
* magnatune_db_get_url_list(const char *wanted_genre
,const char *wanted_artist
, const char *wanted_album
);
32 MpdData
* magnatune_db_get_song_list(const char *wanted_genre
,const char *wanted_artist
, const char *wanted_album
,gboolean exact
);
35 gchar
*magnatune_get_artist_image(const gchar
*wanted_artist
);
36 gchar
*magnatune_get_album_image(const gchar
*wanted_artist
, const gchar
*wanted_album
);
38 gchar
*magnatune_get_album_url(const gchar
*wanted_artist
, const gchar
*wanted_album
);
40 char * __magnatune_process_string(const char *name
);
42 MpdData
* magnatune_db_search_title(const gchar
*title
);
45 void magnatune_db_load_data(const char *data
, const goffset length
);
47 char * __magnatune_process_string(const char *name
);