Commit 1a953a29 1a953a297d0c7e79e622c5329ca3c994a8192014 by Sergey Poznyakoff

(iterator_current)

(iterator_set_getitem): Changed proto
(iterator_get_list): Removed.
1 parent d5470640
1 /* GNU Mailutils -- a suite of utilities for electronic mail 1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000, 2004 Free Software Foundation, Inc.
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public 5 modify it under the terms of the GNU Lesser General Public
...@@ -29,9 +29,8 @@ extern int iterator_dup __P ((iterator_t *piterator, iterator_t orig)); ...@@ -29,9 +29,8 @@ extern int iterator_dup __P ((iterator_t *piterator, iterator_t orig));
29 extern void iterator_destroy __P ((iterator_t *)); 29 extern void iterator_destroy __P ((iterator_t *));
30 extern int iterator_first __P ((iterator_t)); 30 extern int iterator_first __P ((iterator_t));
31 extern int iterator_next __P ((iterator_t)); 31 extern int iterator_next __P ((iterator_t));
32 extern int iterator_current __P ((iterator_t, void **pitem)); 32 extern int iterator_current __P ((iterator_t, void * const *pitem));
33 extern int iterator_is_done __P ((iterator_t)); 33 extern int iterator_is_done __P ((iterator_t));
34 extern int iterator_get_list __P ((iterator_t iterator, list_t *plist));
35 34
36 extern int iterator_attach (iterator_t *root, iterator_t iterator); 35 extern int iterator_attach (iterator_t *root, iterator_t iterator);
37 extern int iterator_detach (iterator_t *root, iterator_t iterator); 36 extern int iterator_detach (iterator_t *root, iterator_t iterator);
...@@ -40,7 +39,7 @@ extern void iterator_advance (iterator_t iterator, void *e); ...@@ -40,7 +39,7 @@ extern void iterator_advance (iterator_t iterator, void *e);
40 extern int iterator_set_first (iterator_t, int (*first) (void *)); 39 extern int iterator_set_first (iterator_t, int (*first) (void *));
41 extern int iterator_set_next (iterator_t, int (*next) (void *)); 40 extern int iterator_set_next (iterator_t, int (*next) (void *));
42 extern int iterator_set_getitem (iterator_t, 41 extern int iterator_set_getitem (iterator_t,
43 int (*getitem) (void *, void **)); 42 int (*getitem) (void *, void * const *));
44 extern int iterator_set_finished_p (iterator_t, 43 extern int iterator_set_finished_p (iterator_t,
45 int (*finished_p) (void *)); 44 int (*finished_p) (void *));
46 extern int iterator_set_dup (iterator_t itr, 45 extern int iterator_set_dup (iterator_t itr,
......