[QOF-devel] Outline of new qofevent support

Derek Atkins warlord at MIT.EDU
Sat Feb 25 17:15:43 EST 2006


Quoting Neil Williams <linux at codehelp.co.uk>:

> On Saturday 25 February 2006 9:07 pm, Derek Atkins wrote:
>> >> I'd propose:
>> >>
>> >>   typedef void (*QofEventHandlerWithArg)(QofEntity*, QofEventId,
>> >> gpointer);
>
> Umm, those are the exact arguments that we already have for QofEventHandler.
>
> Did you actually mean:
>
> typedef void (*QofEventHandlerWithArg)(QofEntity*, QofEventId,
> gpointer handler_data, gpointer event_data);

Sorry, yes, this is what I meant.

> Currently, the gpointer is set when the handler is registered, not when it is
> used after an event is generated. Do you need both? Is the current gpointer
> used?

Yes, I need both.

> Maybe if the qof_event_register_handler_with_arg sets the original 
> gpointer in
> HandlerInfo as NULL and uses the gpointer passed from qof_event_gen_with_arg
> instead?

No.  I need both.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available



More information about the gnucash-devel mailing list