diff options
author | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-09-19 09:14:24 +0800 |
---|---|---|
committer | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-09-19 09:14:24 +0800 |
commit | f75cc7238b336522d966538e58f79bb11b996cbc (patch) | |
tree | cbb522e5f853b3ca6ebc52ee9887d47e6c850e61 /calendar/corba-cal.c | |
parent | b2c5bf685a08cd401de24ad9ec7698804fce51ec (diff) | |
download | gsoc2013-evolution-f75cc7238b336522d966538e58f79bb11b996cbc.tar.gz gsoc2013-evolution-f75cc7238b336522d966538e58f79bb11b996cbc.tar.zst gsoc2013-evolution-f75cc7238b336522d966538e58f79bb11b996cbc.zip |
changed to be a .la file instead of .a, this allows lib*_conduit to use
* libversit: changed to be a .la file instead of .a, this allows
lib*_conduit to use the library.
* gncal/calendar-conduit: implemented iterate and
iterate_specific.
* gncal/corba-cal: fixed warnings.
svn path=/trunk/; revision=1239
Diffstat (limited to 'calendar/corba-cal.c')
-rw-r--r-- | calendar/corba-cal.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/calendar/corba-cal.c b/calendar/corba-cal.c index 787c913418..8c6246da14 100644 --- a/calendar/corba-cal.c +++ b/calendar/corba-cal.c @@ -45,7 +45,7 @@ gnomecal_from_servant (PortableServer_Servant servant) static CORBA_char * cal_repo_get_object (PortableServer_Servant servant, - CORBA_char *uid, + const CORBA_char *uid, CORBA_Environment *ev) { GnomeCalendar *gcal = gnomecal_from_servant (servant); @@ -131,7 +131,7 @@ cal_repo_get_id_from_pilot_id (PortableServer_Servant servant, static void cal_repo_delete_object (PortableServer_Servant servant, - CORBA_char *uid, + const CORBA_char *uid, CORBA_Environment *ev) { GnomeCalendar *gcal = gnomecal_from_servant (servant); @@ -153,8 +153,8 @@ cal_repo_delete_object (PortableServer_Servant servant, static void cal_repo_update_object (PortableServer_Servant servant, - CORBA_char *uid, - CORBA_char *vcalendar_object, + const CORBA_char *uid, + const CORBA_char *vcalendar_object, CORBA_Environment *ev) { GnomeCalendar *gcal = gnomecal_from_servant (servant); @@ -173,9 +173,9 @@ cal_repo_update_object (PortableServer_Servant servant, static void cal_repo_update_pilot_id (PortableServer_Servant servant, - CORBA_char *uid, - CORBA_long pilot_id, - CORBA_long pilot_status, + const CORBA_char *uid, + const CORBA_long pilot_id, + const CORBA_long pilot_status, CORBA_Environment *ev) { GnomeCalendar *gcal = gnomecal_from_servant (servant); @@ -207,7 +207,10 @@ cal_repo_get_objects (PortableServer_Servant servant, GList *l; char *str; CORBA_char *res; - + + int items_dbg=0; + g_message("in cal_repo_get_objects"); + dirty_cal = calendar_new ("Temporal"); for (l = gcal->cal->events; l; l = l->next){ @@ -216,12 +219,16 @@ cal_repo_get_objects (PortableServer_Servant servant, obj = ical_object_duplicate (l->data); calendar_add_object (dirty_cal, obj); + + items_dbg++; } str = calendar_get_as_vcal_string (dirty_cal); res = CORBA_string_dup (str); g_free (str); calendar_destroy (dirty_cal); + g_message("added %d items to return value",items_dbg); + return res; } |