… | |
… | |
67 | supplied element. Of course, this does not help if the element contains |
67 | supplied element. Of course, this does not help if the element contains |
68 | pointers. |
68 | pointers. |
69 | As the lists extends itself, it may be necessary to allocate new |
69 | As the lists extends itself, it may be necessary to allocate new |
70 | memory. If this fails, a negative error-code is returned. If everything, |
70 | memory. If this fails, a negative error-code is returned. If everything, |
71 | succeeds, 0 is returned. */ |
71 | succeeds, 0 is returned. */ |
72 | extern int psiconv_list_add(psiconv_list l, void *el); |
72 | extern int psiconv_list_add(psiconv_list l, const void *el); |
73 | |
73 | |
74 | /* Do some action for each element. Note: you can directly modify the |
74 | /* Do some action for each element. Note: you can directly modify the |
75 | elements supplied to action, and they will be changed in the list, |
75 | elements supplied to action, and they will be changed in the list, |
76 | but never try a free(el)! */ |
76 | but never try a free(el)! */ |
77 | extern void psiconv_list_foreach_el(psiconv_list l, void action(void *el)); |
77 | extern void psiconv_list_foreach_el(psiconv_list l, void action(void *el)); |