comparison src/streambrowser/bookmarks.h @ 2891:c27da2c06805

initial code for bookmarks
author Calin Crisan ccrisan@gmail.com
date Tue, 12 Aug 2008 23:49:32 +0200
parents
children 113454baecf8
comparison
equal deleted inserted replaced
2890:5e97b55f87cf 2891:c27da2c06805
1 /*
2 * Audacious Streambrowser Plugin
3 *
4 * Copyright (c) 2008 Calin Crisan <ccrisan@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; under version 3 of the License.
9 *
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.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses>.
17 */
18
19
20 #ifndef BOOKMARKS_H
21 #define BOOKMARKS_H
22
23 #include "streambrowser.h"
24 #include "streamdir.h"
25
26 #define BOOKMARKS_NAME "Bookmarks"
27 #define BOOKMARKS_ICON DATA_DIR G_DIR_SEPARATOR_S "images" G_DIR_SEPARATOR_S "bookmarks.png"
28
29
30 typedef struct {
31
32 gchar streamdir_name[DEF_STRING_LEN];
33 gchar category_name[DEF_STRING_LEN];
34
35 gchar name[DEF_STRING_LEN];
36 gchar playlist_url[DEF_STRING_LEN];
37 gchar url[DEF_STRING_LEN];
38
39 } bookmark_t;
40
41
42 gboolean bookmarks_streaminfo_fetch(category_t *category, streaminfo_t *streaminfo);
43 gboolean bookmarks_category_fetch(streamdir_t *streamdir, category_t *category);
44 streamdir_t* bookmarks_streamdir_fetch(bookmark_t *bms, int count);
45
46
47 #endif // BOOKMARKS_H
48