diff avio.h @ 6068:7fdda2416684 libavformat

Declare the url_write buffer parameter as const
author mstorsjo
date Tue, 01 Jun 2010 07:46:23 +0000
parents 178de7695c6c
children 3fcaee5cf416
line wrap: on
line diff
--- a/avio.h	Mon May 31 10:47:36 2010 +0000
+++ b/avio.h	Tue Jun 01 07:46:23 2010 +0000
@@ -112,7 +112,7 @@
  * 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 @@
     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;