diff options
Diffstat (limited to 'src/xine-utils/xine_buffer.h')
-rw-r--r-- | src/xine-utils/xine_buffer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xine-utils/xine_buffer.h b/src/xine-utils/xine_buffer.h index 80f09a77e..2cb7dfe72 100644 --- a/src/xine-utils/xine_buffer.h +++ b/src/xine-utils/xine_buffer.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_buffer.h,v 1.4 2004/09/26 22:54:53 valtri Exp $ + * $Id: xine_buffer.h,v 1.5 2006/02/14 19:12:16 dsalt Exp $ * * * generic dynamic buffer functions. The goals @@ -90,7 +90,7 @@ void *_xine_buffer_copyin(void *buf, int index, const void *data, int len); * no checks are made in data. It is treated as an ordinary * user-malloced data chunk. */ -void xine_buffer_copyout(void *buf, int index, void *data, int len); +void xine_buffer_copyout(const void *buf, int index, void *data, int len); /* * set len bytes in buf+index to b. @@ -105,26 +105,26 @@ void *_xine_buffer_set(void *buf, int index, uint8_t b, int len); */ #define xine_buffer_strcat(buf,data) \ buf=_xine_buffer_strcat(buf,data) -void *_xine_buffer_strcat(void *buf, char *data); +void *_xine_buffer_strcat(void *buf, const char *data); /* * copies given string to buf+index */ #define xine_buffer_strcpy(buf,index,data) \ buf=_xine_buffer_strcpy(buf,index,data) -void *_xine_buffer_strcpy(void *buf, int index, char *data); +void *_xine_buffer_strcpy(void *buf, int index, const char *data); /* * returns a pointer to the first occurence of ch. * note, that the returned pointer cannot be used * in any other xine_buffer_* functions. */ -char *xine_buffer_strchr(void *buf, int ch); +char *xine_buffer_strchr(const void *buf, int ch); /* * get allocated memory size */ -int xine_buffer_get_size(void *buf); +int xine_buffer_get_size(const void *buf); /* * ensures a specified buffer size if the user want to |