annotate src/streambrowser/streambrowser.h @ 3077:d58963762734

crossfade-ng: probe_priority = 0
author William Pitcock <nenolod@atheme.org>
date Mon, 27 Apr 2009 04:47:07 -0500
parents 3134a0987162
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2811
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
1 /*
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
2 * Audacious Streambrowser Plugin
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
3 *
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
4 * Copyright (c) 2008 Calin Crisan <ccrisan@gmail.com>
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
5 *
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
6 * This program is free software; you can redistribute it and/or modify
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
7 * it under the terms of the GNU General Public License as published by
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
8 * the Free Software Foundation; under version 3 of the License.
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
9 *
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
10 * This program is distributed in the hope that it will be useful,
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
13 * GNU General Public License for more details.
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
14 *
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
15 * You should have received a copy of the GNU General Public License
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
16 * along with this program. If not, see <http://www.gnu.org/licenses>.
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
17 */
7977bdc02664 added GPL headers
Calin Crisan ccrisan@gmail.com
parents: 2791
diff changeset
18
2570
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
19
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
20 #ifndef STREAMBROWSER_H
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
21 #define STREAMBROWSER_H
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
22
2791
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
23 #define DEF_STRING_LEN 1024
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
24 #define DEF_BUFFER_SIZE 512
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
25 #define MAX_UPDATE_THREADS 4
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
26 #define PLAYLIST_TEMP_FILE "file:///tmp/playlist.pls"
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
27 #define STREAMBROWSER_ICON_SMALL DATA_DIR G_DIR_SEPARATOR_S "images" G_DIR_SEPARATOR_S "streambrowser-16x16.png"
f9c6a9cb442e streambrowser has now an icon
Calin Crisan ccrisan@gmail.com
parents: 2764
diff changeset
28 #define STREAMBROWSER_ICON DATA_DIR G_DIR_SEPARATOR_S "images" G_DIR_SEPARATOR_S "streambrowser-64x64.png"
2735
6d6a3eb67510 some work on the streambrowser
Calin Crisan ccrisan@gmail.com
parents: 2570
diff changeset
29
6d6a3eb67510 some work on the streambrowser
Calin Crisan ccrisan@gmail.com
parents: 2570
diff changeset
30
2891
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents: 2815
diff changeset
31 #include <glib.h>
2735
6d6a3eb67510 some work on the streambrowser
Calin Crisan ccrisan@gmail.com
parents: 2570
diff changeset
32
2891
c27da2c06805 initial code for bookmarks
Calin Crisan ccrisan@gmail.com
parents: 2815
diff changeset
33 #include <config.h>
2971
3134a0987162 - changed include path from audacious to audlegacy.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 2913
diff changeset
34 #include <audlegacy/i18n.h>
2570
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
35
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
36
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
37 void debug(const char *fmt, ...);
2735
6d6a3eb67510 some work on the streambrowser
Calin Crisan ccrisan@gmail.com
parents: 2570
diff changeset
38 void failure(const char *fmt, ...);
6d6a3eb67510 some work on the streambrowser
Calin Crisan ccrisan@gmail.com
parents: 2570
diff changeset
39 gboolean fetch_remote_to_local_file(gchar *remote_url, gchar *local_url);
2570
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
40
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
41 void config_load();
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
42 void config_save();
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
2815
cc6f02424609 added initial support for xiph streaming directory; small bug fixes & code cleanups
Calin Crisan ccrisan@gmail.com
parents: 2811
diff changeset
44 /* returns true if the substring has been found, false otherwise */
cc6f02424609 added initial support for xiph streaming directory; small bug fixes & code cleanups
Calin Crisan ccrisan@gmail.com
parents: 2811
diff changeset
45 gboolean mystrcasestr(const char *haystack, const char *needle);
cc6f02424609 added initial support for xiph streaming directory; small bug fixes & code cleanups
Calin Crisan ccrisan@gmail.com
parents: 2811
diff changeset
46
2570
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
47
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
48 #endif // STREAMBROWSER_H
28498c0bde64 Initial commit for the streambrowser plugin
Calin Crisan ccrisan@gmail.com
parents:
diff changeset
49