From f0c10e106c6d47e4817f118ff94555a15dfbed00 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 7 Jul 2000 16:13:17 +0000 Subject: Added last and insert functions. 2000-07-07 Christopher James Lahey * e-iterator.c, e-iterator.h, e-list-iterator.c, e-list-iterator.h: Added last and insert functions. svn path=/trunk/; revision=3946 --- e-util/e-iterator.h | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) (limited to 'e-util/e-iterator.h') diff --git a/e-util/e-iterator.h b/e-util/e-iterator.h index eb983e9da9..84a2db142b 100644 --- a/e-util/e-iterator.h +++ b/e-util/e-iterator.h @@ -31,29 +31,37 @@ struct _EIteratorClass { GtkObjectClass parent_class; /* Signals */ - void (*invalidate) (EIterator *iterator); + void (*invalidate) (EIterator *iterator); /* Virtual functions */ - const void * (*get) (EIterator *iterator); - void (*reset) (EIterator *iterator); - gboolean (*next) (EIterator *iterator); - gboolean (*prev) (EIterator *iterator); - void (*delete) (EIterator *iterator); - void (*set) (EIterator *iterator, - const void *object); - gboolean (*is_valid) (EIterator *iterator); + const void * (*get) (EIterator *iterator); + void (*reset) (EIterator *iterator); + void (*last) (EIterator *iterator); + gboolean (*next) (EIterator *iterator); + gboolean (*prev) (EIterator *iterator); + void (*delete) (EIterator *iterator); + void (*insert) (EIterator *iterator, + const void *object, + gboolean before); + void (*set) (EIterator *iterator, + const void *object); + gboolean (*is_valid) (EIterator *iterator); }; -const void *e_iterator_get (EIterator *iterator); -void e_iterator_reset (EIterator *iterator); -gboolean e_iterator_next (EIterator *iterator); -gboolean e_iterator_prev (EIterator *iterator); -void e_iterator_delete (EIterator *iterator); -void e_iterator_set (EIterator *iterator, - const void *object); -gboolean e_iterator_is_valid (EIterator *iterator); +const void *e_iterator_get (EIterator *iterator); +void e_iterator_reset (EIterator *iterator); +void e_iterator_last (EIterator *iterator); +gboolean e_iterator_next (EIterator *iterator); +gboolean e_iterator_prev (EIterator *iterator); +void e_iterator_delete (EIterator *iterator); +void e_iterator_insert (EIterator *iterator, + const void *object, + gboolean before); +void e_iterator_set (EIterator *iterator, + const void *object); +gboolean e_iterator_is_valid (EIterator *iterator); -void e_iterator_invalidate (EIterator *iterator); +void e_iterator_invalidate (EIterator *iterator); /* Standard Gtk function */ GtkType e_iterator_get_type (void); -- cgit