Next: , Previous: Stream, Up: libmailbox


3.1.10 Iterator

     /* Prefix mu_iterator_ is reserved. */
     #include <mailutils/iterator.h>
— Function: int mu_iterator_create (mu_iterator_t *iterator, void *obj)
— Function: int mu_iterator_dup (mu_iterator_t *iterator, mu_iterator_t orig)
— Function: void mu_iterator_destroy (mu_iterator_t *)
— Function: int mu_iterator_first (mu_iterator_t)
— Function: int mu_iterator_next (mu_iterator_t)
— Function: int mu_iterator_current (mu_iterator_t, void **item)
— Function: int mu_iterator_is_done (mu_iterator_t)
— Function: int mu_iterator_attach (mu_iterator_t *root, mu_iterator_t iterator)
— Function: int mu_iterator_detach (mu_iterator_t *root, mu_iterator_t iterator)
— Function: void mu_iterator_advance (mu_iterator_t iterator, void *item)
— Function: int mu_iterator_set_first (mu_iterator_t iterator, int (*first) (void *))
— Function: int mu_iterator_set_next (mu_iterator_t iterator, int (*next) (void *))
— Function: int mu_iterator_set_getitem (mu_iterator_t iterator, int (*getitem) (void *, void **))
— Function: int mu_iterator_set_finished_p (mu_iterator_t iterator, int (*finished_p) (void *))
— Function: int mu_iterator_set_dup (mu_iterator_t itr, int (*dup) (void **ptr, void *data))
— Function: int mu_iterator_set_destroy (mu_iterator_t itr, int (*destroy) (mu_iterator_t itr, void *data))
— Function: int mu_iterator_set_curitem_p (mu_iterator_t itr, int (*curitem_p) (void *, void *))