Re: libeventdb question (list events)

"Neal H. Walfield" <[email protected]> Sun, 13 Aug 2006 08:59:19 +0200
Newsgroups gmane.comp.handhelds.gpe
Message-ID <87irkxazp4.wl%[email protected]>
At Sun, 13 Aug 2006 13:10:26 +1200,
Martin Felis wrote:
> I am currently struggeling a small issue concerning libeventdb. As for
> syncing I need to report every event that is in the database.
> Unfortunately there is only a function "event_db_list_for_period" in
> the libeventdb which takes two time_t as arguments to list all the
> events between them. However I can't figure out is the maximum or
> minimum value for time_t so that the code stays portable.
> 
> Or is there somewhere already a function that lists all the events?

event_db_list_for_period not only lists the events that occur between
two times but it also expands the recurrences.  What you want is a
function which returns all of the events in the database.  This could
be added but it is already basically available: list all the calendars
(event_db_list_event_calendars) and then get the list of events in
each calendar (event_calendar_list_events).

I'm interested in what you are trying to do.  libeventdb does not work
well with multiple readers or writers (yet).

Neal