comparison http.c @ 65:a58a8a53eb46 libavformat

* UINTX -> uintx_t INTX -> intx_t
author kabi
date Tue, 11 Feb 2003 16:35:48 +0000
parents 05318cf2e886
children ff560598f12d
comparison
equal deleted inserted replaced
64:b0e0eb595e29 65:a58a8a53eb46
46 int http_code; 46 int http_code;
47 char location[URL_SIZE]; 47 char location[URL_SIZE];
48 } HTTPContext; 48 } HTTPContext;
49 49
50 static int http_connect(URLContext *h, const char *path, const char *hoststr); 50 static int http_connect(URLContext *h, const char *path, const char *hoststr);
51 static int http_write(URLContext *h, UINT8 *buf, int size); 51 static int http_write(URLContext *h, uint8_t *buf, int size);
52 52
53 53
54 /* return non zero if error */ 54 /* return non zero if error */
55 static int http_open(URLContext *h, const char *uri, int flags) 55 static int http_open(URLContext *h, const char *uri, int flags)
56 { 56 {
234 } 234 }
235 } 235 }
236 } 236 }
237 237
238 238
239 static int http_read(URLContext *h, UINT8 *buf, int size) 239 static int http_read(URLContext *h, uint8_t *buf, int size)
240 { 240 {
241 HTTPContext *s = h->priv_data; 241 HTTPContext *s = h->priv_data;
242 int size1, len; 242 int size1, len;
243 243
244 size1 = size; 244 size1 = size;
263 } 263 }
264 return size1 - size; 264 return size1 - size;
265 } 265 }
266 266
267 /* used only when posting data */ 267 /* used only when posting data */
268 static int http_write(URLContext *h, UINT8 *buf, int size) 268 static int http_write(URLContext *h, uint8_t *buf, int size)
269 { 269 {
270 HTTPContext *s = h->priv_data; 270 HTTPContext *s = h->priv_data;
271 return url_write(s->hd, buf, size); 271 return url_write(s->hd, buf, size);
272 } 272 }
273 273