--- xmil/nevent.h 2004/08/11 12:08:16 1.1 +++ xmil/nevent.h 2005/02/04 06:42:07 1.3 @@ -4,7 +4,7 @@ enum { NEVENT_MAXCLOCK = 0x400000, NEVENT_FRAMES = 0, - NEVENT_TIME = 1, + NEVENT_RTC = 1, NEVENT_FDC = 2, NEVENT_CTC0 = 3, NEVENT_CTC1 = 4, @@ -20,17 +20,20 @@ typedef struct _neventitem _NEVENTITEM; typedef struct _neventitem *NEVENTITEM; typedef void (*NEVENTCB)(UINT id); +#define NEVENTITEM_NONE ((NEVENTITEM)-1) +#define NEVENTITEM_TERM ((NEVENTITEM)0) + + struct _neventitem { + NEVENTITEM next; SINT32 clock; SINT32 baseclock; NEVENTCB proc; - UINT32 param; }; typedef struct { - UINT readyevents; - UINT level[NEVENT_MAXEVENTS]; _NEVENTITEM item[NEVENT_MAXEVENTS]; + NEVENTITEM first; } _NEVENT, *NEVENT;