Lines Matching refs:str
140 struct string_s *str = passed_args->str;
149 strcatf(str, "<Item><Details>"
154 strcatf(str, "<SongTitle>%s</SongTitle>", title);
156 strcatf(str, "<AlbumYear>%.*s</AlbumYear>", 4, date);
161 strcatf(str, "<Item><Details>"
172 strcatf(str, "<CaptureDate>0x%X</CaptureDate>", (unsigned int)mktime(&tm));
175 strcatf(str, "<Caption>%s</Caption>", comment);
181 strcatf(str, "<Item><Details>"
189 strcatf(str, "<EpisodeTitle>%s</EpisodeTitle>", episode+3);
198 strcatf(str, "<CaptureDate>0x%X</CaptureDate>", (unsigned int)mktime(&tm));
201 strcatf(str, "<Description>%s</Description>", tivo_unescape_tag(comment));
207 strcatf(str, "<Title>%s</Title>", title);
209 strcatf(str, "<ArtistName>%s</ArtistName>", tivo_unescape_tag(artist));
212 strcatf(str, "<AlbumTitle>%s</AlbumTitle>", tivo_unescape_tag(album));
215 strcatf(str, "<MusicGenre>%s</MusicGenre>", tivo_unescape_tag(genre));
219 strcatf(str, "<SourceWidth>%s</SourceWidth>"
224 strcatf(str, "<Duration>%d</Duration>",
229 strcatf(str, "<SourceBitRate>%s</SourceBitRate>", bitrate);
232 strcatf(str, "<SourceSampleRate>%s</SourceSampleRate>", sampleFrequency);
234 strcatf(str, "</Details><Links>"
245 strcatf(str, "<CustomIcon>"
250 strcatf(str, "</Links>");
263 strcatf(str, "<Item>"
278 strcatf(str, "</Item>");
295 struct string_s str;
298 memset(&str, 0, sizeof(str));
300 str.data = malloc(32768);
301 str.size = 32768;
302 str.off = sprintf(str.data, "<?xml version='1.0' encoding='UTF-8' ?>\n<TiVoItem>");
303 args.str = &str;
316 strcatf(&str, "</TiVoItem>");
318 BuildResp_upnphttp(h, str.data, str.off);
319 free(str.data);
337 struct string_s str;
341 memset(&str, 0, sizeof(str));
343 args.str = &str;
344 str.data = resp+1024;
345 str.size = 262144-1024;
635 strcatf(&str, "</TiVoContainer>");
648 str.data -= ret;
649 memcpy(str.data, &str_buf, ret);
650 str.size = str.off+ret;
653 BuildResp_upnphttp(h, str.data, str.size);