Update of /cvsroot/xine/xine-lib/src/xine-utils
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13228/src/xine-utils

Modified Files:
        array.c array.h 
Log Message:
A few const-correctness fixes.

Index: array.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/array.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- array.c     26 Sep 2006 05:19:49 -0000      1.3
+++ array.c     3 Feb 2007 16:31:55 -0000       1.4
@@ -78,7 +78,7 @@
   free(array);
 }
 
-size_t xine_array_size(xine_array_t *array) {
+size_t xine_array_size(const xine_array_t *array) {
   return array->size;
 }
 
@@ -116,7 +116,7 @@
   }
 }
 
-void *xine_array_get(xine_array_t *array, unsigned int position) {
+void *xine_array_get(const xine_array_t *array, unsigned int position) {
   if (position < array->size)
     return array->chunk[position];
   else

Index: array.h
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/array.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- array.h     26 Sep 2006 05:19:49 -0000      1.2
+++ array.h     3 Feb 2007 16:31:55 -0000       1.3
@@ -35,7 +35,7 @@
 void xine_array_delete(xine_array_t *array) XINE_PROTECTED;
 
 /* Returns the number of element stored in the array */
-size_t xine_array_size(xine_array_t *array) XINE_PROTECTED;
+size_t xine_array_size(const xine_array_t *array) XINE_PROTECTED;
 
 /* Removes all elements from an array */
 void xine_array_clear(xine_array_t *array) XINE_PROTECTED;
@@ -50,7 +50,7 @@
 void xine_array_remove(xine_array_t *array, unsigned int position) 
XINE_PROTECTED;
 
 /* Get the element at the position specified */
-void *xine_array_get(xine_array_t *array, unsigned int position) 
XINE_PROTECTED;
+void *xine_array_get(const xine_array_t *array, unsigned int position) 
XINE_PROTECTED;
 
 /* Set the element at the position specified */
 void xine_array_set(xine_array_t *array, unsigned int position, void *value) 
XINE_PROTECTED;


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to