RE: [xml] Re: XML libs (was Re: gconf backend)



Daniel Veillard wrote:
Should a "last error" code and information pertaining to the parser
(and thread context) be kept. I think one person suggested 
this this week,
would this make a better API ? This doesn't prevent getting 
multiple error
callbacks, but would offer asynchronous handling that some 
people seems
to prefer.

Actually it's really not the fact that callback are 
synchronous that bothers me.

For instance, assume we have library A that uses libxml2, 
and library B that uses libxml2 too.
Both need to catch global error messages, but they don't
know about each other. They can't both register their own
global xmlGenericError at the same time, right?

The last error mechanism is only a proposal to work 
around this without requiring far reaching changes to 
the APIs. 

-sbi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]