comparison src/streambrowser/streamdir.c @ 2815:cc6f02424609

added initial support for xiph streaming directory; small bug fixes & code cleanups
author Calin Crisan ccrisan@gmail.com
date Sun, 13 Jul 2008 04:00:04 +0300
parents 7977bdc02664
children e883536cefe0
comparison
equal deleted inserted replaced
2814:a03d670e8752 2815:cc6f02424609
109 { 109 {
110 return g_list_index(streamdir->category_list, category); 110 return g_list_index(streamdir->category_list, category);
111 } 111 }
112 112
113 113
114 streaminfo_t* streaminfo_new(gchar *name, gchar *playlist_url, gchar *current_track) 114 streaminfo_t* streaminfo_new(gchar *name, gchar *playlist_url, gchar *url, gchar *current_track)
115 { 115 {
116 streaminfo_t *streaminfo = (streaminfo_t*) g_malloc(sizeof(streaminfo_t)); 116 streaminfo_t *streaminfo = (streaminfo_t*) g_malloc(sizeof(streaminfo_t));
117 strncpy(streaminfo->name, name, DEF_STRING_LEN); 117 strncpy(streaminfo->name, name, DEF_STRING_LEN);
118 strncpy(streaminfo->playlist_url, playlist_url, DEF_STRING_LEN); 118 strncpy(streaminfo->playlist_url, playlist_url, DEF_STRING_LEN);
119 strncpy(streaminfo->url, url, DEF_STRING_LEN);
119 strncpy(streaminfo->current_track, current_track, DEF_STRING_LEN); 120 strncpy(streaminfo->current_track, current_track, DEF_STRING_LEN);
120 121
121 return streaminfo; 122 return streaminfo;
122 } 123 }
123 124