comparison src/curl/curl.c @ 483:1b48e9ce21e1 trunk

[svn] Set file->base
author hansmi
date Sun, 21 Jan 2007 03:56:43 -0800
parents 416d9e2d075e
children c257bcf92d90
comparison
equal deleted inserted replaced
482:416d9e2d075e 483:1b48e9ce21e1
65 GThread *thread; // the thread that's reading from the connection 65 GThread *thread; // the thread that's reading from the connection
66 66
67 gchar *name; 67 gchar *name;
68 gchar *title; 68 gchar *title;
69 }; 69 };
70
71 VFSConstructor curl_const;
70 72
71 /* TODO: 73 /* TODO:
72 * - Fix hang if the server closes the connection in the middle 74 * - Fix hang if the server closes the connection in the middle
73 * - Clever buffer stuff when you read a bit of the beginning and a bit of the 75 * - Clever buffer stuff when you read a bit of the beginning and a bit of the
74 * end of a file 76 * end of a file
493 hdr = curl_slist_append(hdr, "icy-metadata:1"); 495 hdr = curl_slist_append(hdr, "icy-metadata:1");
494 curl_easy_setopt(handle->curl, CURLOPT_HTTPHEADER, hdr); 496 curl_easy_setopt(handle->curl, CURLOPT_HTTPHEADER, hdr);
495 } 497 }
496 498
497 file->handle = handle; 499 file->handle = handle;
500 file->base = &curl_const;
498 501
499 if (DEBUG_OPEN_CLOSE) 502 if (DEBUG_OPEN_CLOSE)
500 g_print("Open %s with curl => %p\n", url, handle); 503 g_print("Open %s with curl => %p\n", url, handle);
501 504
502 return file; 505 return file;