Rockbox.org home
releases
current build
extras FAQ
manual
wiki
docs index mailing lists
IRC
forums bugs
patches



Rockbox mail archive

Subject: Re: 1 standard generic callback system

Re: 1 standard generic callback system

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Tue, 05 Jun 2007 18:11:21 +0200

Jonathan Gordon wrote:
> Questions, comments?

I think it sounds like a good idea. The implementation looks clean and
simple.

1) Why this:

+#define register_ata_idle_func(f) \
+ register_event_callback(EID_ATA_DISK_SPINUP, (event_callback)f)

Why not replace the calls in the ATA code?

2) Question:

> + if (run)
> + callbacks[i].function(NULL);

Is it always true that the callback wants a NULL argument in this case?

Linus
Received on 2007-06-05


Page was last modified "Mar 9 2008" The Rockbox Crew