|
@@ -112,7 +112,7 @@ int url_read(URLContext *h, unsigned char *buf, int size);
|
|
|
* certain there was either an error or the end of file was reached.
|
|
|
*/
|
|
|
int url_read_complete(URLContext *h, unsigned char *buf, int size);
|
|
|
-int url_write(URLContext *h, unsigned char *buf, int size);
|
|
|
+int url_write(URLContext *h, const unsigned char *buf, int size);
|
|
|
|
|
|
/**
|
|
|
* Changes the position that will be used by the next read/write
|
|
@@ -224,7 +224,7 @@ typedef struct URLProtocol {
|
|
|
const char *name;
|
|
|
int (*url_open)(URLContext *h, const char *url, int flags);
|
|
|
int (*url_read)(URLContext *h, unsigned char *buf, int size);
|
|
|
- int (*url_write)(URLContext *h, unsigned char *buf, int size);
|
|
|
+ int (*url_write)(URLContext *h, const unsigned char *buf, int size);
|
|
|
int64_t (*url_seek)(URLContext *h, int64_t pos, int whence);
|
|
|
int (*url_close)(URLContext *h);
|
|
|
struct URLProtocol *next;
|