Mercurial > audlegacy-plugins
annotate src/lastfm/lastfm.h @ 1010:8bad1b46ef78 trunk
[svn] - make this compile again and indent properly
author | nenolod |
---|---|
date | Thu, 10 May 2007 21:43:57 -0700 |
parents | 7b0d16a9a92f |
children | 47db8268cb7b |
rev | line source |
---|---|
982 | 1 #define LASTFM_HANDSHAKE_URL "http://ws.audioscrobbler.com/radio/handshake.php?version=1.1.1&platform=linux&username=%s&passwordmd5=%s&debug=0&language=jp" |
2 #define LASTFM_ADJUST_URL "http://ws.audioscrobbler.com/radio/adjust.php?session=%s&url=%s&debug=0" | |
3 #define LASTFM_METADATA_URL "http://ws.audioscrobbler.com/radio/np.php?session=%s&debug=0" | |
4 | |
5 #define LASTFM_CURL_TIMEOUT 10 | |
6 #define DEBUG 1 | |
7 | |
8 typedef struct | |
9 { | |
10 VFSFile *proxy_fd; | |
11 gchar *lastfm_session_id; | |
12 gchar *lastfm_mp3_stream_url; | |
13 gchar *lastfm_station_name; | |
14 gchar *lastfm_artist; | |
15 gchar *lastfm_title; | |
16 gchar *lastfm_album; | |
17 gchar *lastfm_cover; | |
1010
8bad1b46ef78
[svn] - make this compile again and indent properly
nenolod
parents:
982
diff
changeset
|
18 unsigned int lastfm_duration; |
8bad1b46ef78
[svn] - make this compile again and indent properly
nenolod
parents:
982
diff
changeset
|
19 unsigned int lastfm_progress; |
982 | 20 int login_count; |
21 } LastFM; | |
22 | |
23 VFSFile *lastfm_vfs_fopen_impl(const gchar * path, const gchar * mode); | |
24 | |
25 size_t lastfm_vfs_fread_impl(gpointer ptr, size_t size, size_t nmemb, VFSFile * file); | |
26 | |
27 size_t lastfm_vfs_fwrite_impl(gconstpointer ptr, size_t size, size_t nmemb, VFSFile * file); | |
28 | |
29 gint lastfm_vfs_getc_impl(VFSFile * stream); | |
30 | |
31 gint lastfm_vfs_ungetc_impl(gint c, VFSFile * stream); | |
32 | |
33 gint lastfm_vfs_fseek_impl(VFSFile * file, glong offset, gint whence); | |
34 | |
35 void lastfm_vfs_rewind_impl(VFSFile * file); | |
36 | |
37 glong lastfm_vfs_ftell_impl(VFSFile * file); | |
38 | |
39 gboolean lastfm_vfs_feof_impl(VFSFile * file); | |
40 | |
41 gint lastfm_vfs_truncate_impl(VFSFile * file, glong size); | |
42 | |
43 off_t lastfm_vfs_fsize_impl(VFSFile * file); | |
44 | |
45 gint lastfm_vfs_fclose_impl(VFSFile * file); | |
46 | |
47 gchar *lastfm_vfs_metadata_impl(VFSFile * file, const gchar * field); | |
48 | |
1010
8bad1b46ef78
[svn] - make this compile again and indent properly
nenolod
parents:
982
diff
changeset
|
49 static gpointer lastfm_get_metadata(LastFM * handle); |
982 | 50 |
51 static gboolean lastfm_login(void); | |
52 | |
53 LowlevelPlugin *get_lplugin_info(void); | |
54 |