Enlightenment CVS committal Author : kwo Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore Modified Files: Ecore_Data.h ecore_list.c Log Message: Add const. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/Ecore_Data.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- Ecore_Data.h 28 Dec 2006 03:30:11 -0000 1.25 +++ Ecore_Data.h 28 Dec 2006 10:19:34 -0000 1.26 @@ -114,7 +114,7 @@ /* Traversing the list and returning data */ EAPI void *ecore_list_next(Ecore_List * list); EAPI void *ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, - void *user_data); + const void *user_data); /* Check to see if there is any data in the list */ EAPI int ecore_list_is_empty(Ecore_List * list); =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_list.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ecore_list.c 28 Dec 2006 03:30:11 -0000 1.25 +++ ecore_list.c 28 Dec 2006 10:19:34 -0000 1.26 @@ -25,7 +25,8 @@ /* Iterative function */ static int _ecore_list_for_each(Ecore_List *list, Ecore_For_Each function, void *user_data); -static void *_ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, void *user_data); +static void *_ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, + const void *user_data); /* Private double linked list functions */ static void *_ecore_dlist_previous(Ecore_DList * list); @@ -1029,7 +1030,7 @@ * @return the first matching data node, or NULL if none match */ EAPI void * -ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, void *user_data) +ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, const void *user_data) { CHECK_PARAM_POINTER_RETURN("list", list, NULL); @@ -1038,7 +1039,7 @@ /* The real meat of finding a node via a compare cb */ static void * -_ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, void *user_data) +_ecore_list_find(Ecore_List *list, Ecore_Compare_Cb function, const void *user_data) { void *value; if (!list || !function) return NULL; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs