annotate src/streambrowser/bookmarks.h @ 3189:ab6c7ebcd301

alsa-ng: Only support 16bit output for now. Someone else can debug this crap.
author William Pitcock <nenolod@atheme.org>
date Fri, 19 Jun 2009 09:14:22 -0500
parents 113454baecf8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2891
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
1 /*
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
2 * Audacious Streambrowser Plugin
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
3 *
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
4 * Copyright (c) 2008 Calin Crisan <ccrisan@gmail.com>
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
5 *
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
6 * This program is free software; you can redistribute it and/or modify
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
8 * the Free Software Foundation; under version 3 of the License.
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
9 *
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
13 * GNU General Public License for more details.
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
14 *
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
16 * along with this program. If not, see <http://www.gnu.org/licenses>.
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
17 */
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
18
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
19
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
20 #ifndef BOOKMARKS_H
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
21 #define BOOKMARKS_H
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
22
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
23 #include "streambrowser.h"
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
24 #include "streamdir.h"
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
25
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
26 #define BOOKMARKS_NAME "Bookmarks"
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
27 #define BOOKMARKS_ICON DATA_DIR G_DIR_SEPARATOR_S "images" G_DIR_SEPARATOR_S "bookmarks.png"
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
28
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
29
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
30 typedef struct {
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
31
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
32 gchar streamdir_name[DEF_STRING_LEN];
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
33
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
34 gchar name[DEF_STRING_LEN];
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
35 gchar playlist_url[DEF_STRING_LEN];
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
36 gchar url[DEF_STRING_LEN];
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
37
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
38 } bookmark_t;
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
39
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
40
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
41 gboolean bookmarks_streaminfo_fetch(category_t *category, streaminfo_t *streaminfo);
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
42 gboolean bookmarks_category_fetch(streamdir_t *streamdir, category_t *category);
2913
113454baecf8 lots of changes: most important - bookmarks code almost finished, fixed bold-text gui bug, and others...
Calin Crisan ccrisan@gmail.com
parents: 2891
diff changeset
43 streamdir_t* bookmarks_streamdir_fetch(bookmark_t **p_bookmarks, int *p_bookmarks_count);
113454baecf8 lots of changes: most important - bookmarks code almost finished, fixed bold-text gui bug, and others...
Calin Crisan ccrisan@gmail.com
parents: 2891
diff changeset
44
113454baecf8 lots of changes: most important - bookmarks code almost finished, fixed bold-text gui bug, and others...
Calin Crisan ccrisan@gmail.com
parents: 2891
diff changeset
45 void bookmark_add(bookmark_t *bookmark);
113454baecf8 lots of changes: most important - bookmarks code almost finished, fixed bold-text gui bug, and others...
Calin Crisan ccrisan@gmail.com
parents: 2891
diff changeset
46 void bookmark_remove(gchar *name);
2891
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
47
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
48
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
49 #endif // BOOKMARKS_H
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
50