From 19c6e66c1353993659ee007a6c1792a6b0b7ba13 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 16 Mar 2008 13:55:16 +0000 Subject: Implement the playback event handling as a system-wide multi-purpose event system. Unified mpeg.c and playback.c audio event handling. Converted ata_idle_notify to use the new event handling system also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16682 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/ata_idle_notify.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'firmware/export/ata_idle_notify.h') diff --git a/firmware/export/ata_idle_notify.h b/firmware/export/ata_idle_notify.h index ee825c967e..1dda3e196a 100644 --- a/firmware/export/ata_idle_notify.h +++ b/firmware/export/ata_idle_notify.h @@ -19,7 +19,9 @@ #ifndef __ATACALLBACK_H__ #define __ATACALLBACK_H__ + #include +#include "events.h" #if 0 NOTE: ata_idle_nofity usage notes.. @@ -34,15 +36,17 @@ 5) Dont Panic! #endif +enum { + DISK_EVENT_SPINUP = (EVENT_CLASS_DISK|1), +}; + #define USING_ATA_CALLBACK !defined(SIMULATOR) \ && !defined(HAVE_FLASH_DISK) -#define MAX_ATA_CALLBACKS 5 typedef bool (*ata_idle_notify)(void); -extern bool register_ata_idle_func(ata_idle_notify function); +extern void register_ata_idle_func(ata_idle_notify function); #if USING_ATA_CALLBACK -extern void ata_idle_notify_init(void); extern void unregister_ata_idle_func(ata_idle_notify function, bool run); extern bool call_ata_idle_notifys(bool force); #else -- cgit v1.2.3