annotate src/lastfm/lastfm.h @ 1053:149fc284aa86 trunk

[svn] - statusicon: strenghten checks before last strcmp in si_ui_statusicon_cb_hook_tchange
author giacomo
date Tue, 22 May 2007 01:56:51 -0700
parents b1128efde471
children 0ae013f630fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
982
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
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"
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
2 #define LASTFM_ADJUST_URL "http://ws.audioscrobbler.com/radio/adjust.php?session=%s&url=%s&debug=0"
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
3 #define LASTFM_METADATA_URL "http://ws.audioscrobbler.com/radio/np.php?session=%s&debug=0"
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
4
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
5 #define LASTFM_CURL_TIMEOUT 10
1036
47db8268cb7b [svn] smarter polling and lots of other changes
majeru
parents: 1010
diff changeset
6
982
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
7
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
8 typedef struct
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
9 {
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
10 VFSFile *proxy_fd;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
11 gchar *lastfm_session_id;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
12 gchar *lastfm_mp3_stream_url;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
13 gchar *lastfm_station_name;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
14 gchar *lastfm_artist;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
15 gchar *lastfm_title;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
16 gchar *lastfm_album;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
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;
1036
47db8268cb7b [svn] smarter polling and lots of other changes
majeru
parents: 1010
diff changeset
20 GThread *metadata_thread;
982
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
21 int login_count;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
22 } LastFM;
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
23
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
24 VFSFile *lastfm_vfs_fopen_impl(const gchar * path, const gchar * mode);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
25
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
26 size_t lastfm_vfs_fread_impl(gpointer ptr, size_t size, size_t nmemb, VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
27
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
28 size_t lastfm_vfs_fwrite_impl(gconstpointer ptr, size_t size, size_t nmemb, VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
29
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
30 gint lastfm_vfs_getc_impl(VFSFile * stream);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
31
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
32 gint lastfm_vfs_ungetc_impl(gint c, VFSFile * stream);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
33
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
34 gint lastfm_vfs_fseek_impl(VFSFile * file, glong offset, gint whence);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
35
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
36 void lastfm_vfs_rewind_impl(VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
37
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
38 glong lastfm_vfs_ftell_impl(VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
39
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
40 gboolean lastfm_vfs_feof_impl(VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
41
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
42 gint lastfm_vfs_truncate_impl(VFSFile * file, glong size);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
43
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
44 off_t lastfm_vfs_fsize_impl(VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
45
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
46 gint lastfm_vfs_fclose_impl(VFSFile * file);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
47
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
48 gchar *lastfm_vfs_metadata_impl(VFSFile * file, const gchar * field);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
49
1036
47db8268cb7b [svn] smarter polling and lots of other changes
majeru
parents: 1010
diff changeset
50 static void parse_metadata(LastFM * handle,GString * res);
47db8268cb7b [svn] smarter polling and lots of other changes
majeru
parents: 1010
diff changeset
51
1044
b1128efde471 [svn] - get rid of all warnings gcc 4.2.0 emits with my build configuration.
yaz
parents: 1036
diff changeset
52 static gpointer lastfm_get_metadata(gpointer arg);
982
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
53
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
54 static gboolean lastfm_login(void);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
55
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
56 LowlevelPlugin *get_lplugin_info(void);
7b0d16a9a92f [svn] fixed all the warnings
majeru
parents:
diff changeset
57