--- psiconv/trunk/lib/psiconv/list.h 2000/12/13 16:17:54 62 +++ psiconv/trunk/lib/psiconv/list.h 2000/12/23 20:21:40 72 @@ -1,6 +1,6 @@ /* list.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999 Frodo Looijaard + Copyright (c) 1999, 2000 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -69,7 +69,7 @@ As the lists extends itself, it may be necessary to allocate new memory. If this fails, a negative error-code is returned. If everything, succeeds, 0 is returned. */ -extern int psiconv_list_add(psiconv_list l, void *el); +extern int psiconv_list_add(psiconv_list l, const void *el); /* Do some action for each element. Note: you can directly modify the elements supplied to action, and they will be changed in the list, @@ -87,6 +87,10 @@ not enough memory could be allocated, 0 is simply returned. */ extern size_t psiconv_list_fread(psiconv_list l,size_t size, FILE *f); +/* Concatenate two lists. The element sized does not have to be the same, + but the result may be quite unexpected if it is not. */ +int psiconv_list_concat(psiconv_list l, const psiconv_list extra); + #ifdef __cplusplus }