aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card-list-iterator.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-05 04:58:46 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-05 04:58:46 +0800
commitd8db781adee587ed1fc5b948a68d1d0a7c2952c2 (patch)
treee2003adb7f8e6dbf4ec917adf95c7f594113ce39 /addressbook/backend/ebook/e-card-list-iterator.c
parent2d75a701029288c953a84ba0a696675f5a7eb77f (diff)
downloadgsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar.gz
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar.bz2
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar.lz
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar.xz
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.tar.zst
gsoc2013-evolution-d8db781adee587ed1fc5b948a68d1d0a7c2952c2.zip
Changed this to backend to an ebook.
2000-04-04 Christopher James Lahey <clahey@helixcode.com> * addressbook/demo/e-test-model.c, addressbook/demo/e-test-model.h, addressbook/demo/Makefile.am: Changed this to backend to an ebook. * addressbook/backend/ebook/e-card-iterator.c, addressbook/backend/ebook/e-card-iterator.h, addressbook/backend/ebook/e-card-list-iterator.c, addressbook/backend/ebook/e-card-list.c, addressbook/backend/ebook/e-card-list.h, addressbook/backend/ebook/e-card.c, addressbook/backend/ebook/e-card.h: Fixed const correctness and changed a couple of functions to be external. * addressbook/Makefile.am: Fixed subdir ordering. svn path=/trunk/; revision=2287
Diffstat (limited to 'addressbook/backend/ebook/e-card-list-iterator.c')
-rw-r--r--addressbook/backend/ebook/e-card-list-iterator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/addressbook/backend/ebook/e-card-list-iterator.c b/addressbook/backend/ebook/e-card-list-iterator.c
index e6d9a9c040..e3426ddc3b 100644
--- a/addressbook/backend/ebook/e-card-list-iterator.c
+++ b/addressbook/backend/ebook/e-card-list-iterator.c
@@ -19,12 +19,12 @@ static void e_card_list_iterator_class_init (ECardListIteratorClass *klass);
static void e_card_list_iterator_invalidate (ECardIterator *iterator);
static gboolean e_card_list_iterator_is_valid (ECardIterator *iterator);
static void e_card_list_iterator_set (ECardIterator *iterator,
- void *object);
+ const void *object);
static void e_card_list_iterator_delete (ECardIterator *iterator);
static gboolean e_card_list_iterator_prev (ECardIterator *iterator);
static gboolean e_card_list_iterator_next (ECardIterator *iterator);
static void e_card_list_iterator_reset (ECardIterator *iterator);
-static void *e_card_list_iterator_get (ECardIterator *iterator);
+static const void *e_card_list_iterator_get (ECardIterator *iterator);
static void e_card_list_iterator_destroy (GtkObject *object);
#define PARENT_TYPE (e_card_iterator_get_type ())
@@ -120,7 +120,7 @@ e_card_list_iterator_destroy (GtkObject *object)
gtk_object_unref(GTK_OBJECT(iterator->list));
}
-static void *
+static const void *
e_card_list_iterator_get (ECardIterator *_iterator)
{
ECardListIterator *iterator = E_CARD_LIST_ITERATOR(_iterator);
@@ -171,7 +171,7 @@ e_card_list_iterator_delete (ECardIterator *_iterator)
static void
e_card_list_iterator_set (ECardIterator *_iterator,
- void *object)
+ const void *object)
{
ECardListIterator *iterator = E_CARD_LIST_ITERATOR(_iterator);
if (iterator->iterator) {
@@ -180,7 +180,7 @@ e_card_list_iterator_set (ECardIterator *_iterator,
if (iterator->list->copy)
iterator->iterator->data = iterator->list->copy(object, iterator->list->closure);
else
- iterator->iterator->data = object;
+ iterator->iterator->data = (void *) object;
}
}