[Gpe-list] libeventdb readonly support

Florian Boor florian.boor at kernelconcepts.de
Wed Jun 25 00:08:07 CEST 2008


Hi,

Graham Cobb wrote:
> I have just checked in some changes to libeventdb to add the concept 
> of "readonly" access to the event database.

> This is necessary to fix a problem with the new gpesummary code: if two 
> applications both open the event DB they interfere with each other due to the 
> caching that libeventdb does.  In particular, even if one of them makes no 
> changes to the database, libeventdb updates the unacknowledged alarms list 
> from both processes and things go wrong (e.g. if the alarm is acknowledged in 
> gpe-calendar, gpesummary can overwrite the status causing it to appear 
> unacknowledged again).

that's an important improvement - good work.

> The change is the addition of a new function: event_db_readonly.  This works 
> in exactly the same way as event_db_new (it takes the same arguments and 
> returns the same results) except that it marks the database as read only.  It 
> will not create the database or convert it: if it doesn't already exist at 
> the current version level it returns an error.  Note: I have also increased 
> the version number of the library.  

Yes that's a good idea since we have an API change here.

> How do I arrange to update the documentation to add the new function?  Is the 
> only API documentation still the stuff in 
> http://www.kernelconcepts.de/~fuchs/gpe/doc/?

http://gpe.linuxtogo.org/documentation/ is better. The API documentation is
generated from the gtk-doc comments in the source. So if you document the new
functions there we just need to generate the html again.

Greetings

Florian


-- 
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: +49 271-771091-15
and the reality of tomorrow.            Fax: +49 271-771091-19
[Robert Hutchings Goddard, 1904]        florian.boor at kernelconcepts.de

1D78 2D4D 6C53 1CA4 5588  D07B A8E7 940C 25B7 9A76



More information about the Gpe-list mailing list