comparison src/http.c @ 135:1d343a4eb657

modify function prototype. remove unused variable.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 24 Oct 2010 21:50:50 +0900
parents 0db6ccf0fe31
children 2a9ac5ce2c7e
comparison
equal deleted inserted replaced
134:c4e0a5777363 135:1d343a4eb657
95 static int 95 static int
96 http_get_info (const char *filename, struct File_Info *info) 96 http_get_info (const char *filename, struct File_Info *info)
97 { 97 {
98 extern struct ushare_t *ut; 98 extern struct ushare_t *ut;
99 struct upnp_entry_t *entry = NULL; 99 struct upnp_entry_t *entry = NULL;
100 struct stat st;
101 int upnp_id = 0; 100 int upnp_id = 0;
102 char *content_type = NULL; 101 char *content_type = NULL;
103 char *protocol = NULL; 102 char *protocol = NULL;
104 extern thread_data *gp_tdata;
105 thread_data *tdata = gp_tdata;
106 103
107 if (!filename || !info) 104 if (!filename || !info)
108 return -1; 105 return -1;
109 106
110 log_verbose ("http_get_info, filename : %s\n", filename); 107 log_verbose ("http_get_info, filename : %s\n", filename);
390 static int 387 static int
391 http_read (UpnpWebFileHandle fh, char *buf, size_t buflen) 388 http_read (UpnpWebFileHandle fh, char *buf, size_t buflen)
392 { 389 {
393 struct web_file_t *file = (struct web_file_t *) fh; 390 struct web_file_t *file = (struct web_file_t *) fh;
394 ssize_t len = -1; 391 ssize_t len = -1;
395 extern thread_data *gp_tdata;
396 thread_data *tdata = gp_tdata;
397 392
398 //log_verbose ("http_read file:[%s]\n", file->fullpath); 393 //log_verbose ("http_read file:[%s]\n", file->fullpath);
399 394
400 if (!file) 395 if (!file)
401 return -1; 396 return -1;
535 { 530 {
536 struct web_file_t *file = (struct web_file_t *) fh; 531 struct web_file_t *file = (struct web_file_t *) fh;
537 extern thread_data *gp_tdata; 532 extern thread_data *gp_tdata;
538 thread_data *tdata = gp_tdata; 533 thread_data *tdata = gp_tdata;
539 STREAM_QUEUE_T *p_queue; 534 STREAM_QUEUE_T *p_queue;
540 int i;
541 int id = 0; 535 int id = 0;
542 int j;
543 536
544 if (!file) 537 if (!file)
545 return -1; 538 return -1;
546 539
547 switch (file->type) 540 switch (file->type)