Questions about the Backend Interface

linas@linas.org linas@linas.org
Tue, 6 Mar 2001 15:47:58 -0600 (CST)


It's been rumoured that Derek Atkins said:
> 
> <linas@linas.org> writes:
> 
> > > Hrm.  Then perhaps the best way to 'trigger' an event is to have the
> > > server push the new data to the backend, and the backend can then push
> > > it into the engine and notify the engine that the data has changed?
> > 
> > Yes.  Although the last step can be skipped: the backend itself
> > can trigger the event mechanism to tell the gui that something changed 
> > (using suspend_events and resume_events in gnc-event.c, I beleive).
> 
> Ahh, wonderful.  Then all I need to do is create an 'update' callback.
> I wonder if it's safe to perform callbacks on single items, or if I should
> allow lists of updates to be pushed from the server?

You probably want to batch as much as possible, otherwise the gui will
flash and blink every time it tries to refresh itself.  

--linas