binana/profile/3.3.5a-windows-386/include/event/timer.h

33 lines
716 B
C
Raw Permalink Normal View History

#ifndef EVENT_TIMER_H
#define EVENT_TIMER_H
#include "system/types.h"
#include "storm/queue/timer_priority_uint32_t.h"
DECLARE_STRUCT(EvtTimer);
DECLARE_STRUCT(EvtTimerQueue);
// class EvtTimer
struct EvtTimer {
// Member variables
uint32_t id;
TSTimerPriority_uint32_t targetTime;
float timeout;
int32_t (*handler)(const void*, void*);
void* param;
int32_t (*guidHandler)(const void*, uint64_t, void*);
uint64_t guidParam;
void* guidParam2;
};
2025-04-29 16:26:36 -04:00
typedef EvtTimer* pointer_to_EvtTimer;
STORM_TS_PRIORITY_QUEUE(EvtTimer);
2025-04-29 16:26:36 -04:00
STORM_TS_GROWABLE_ARRAY(pointer_to_EvtTimer);
// class EvtTimerQueue : public TSPriorityQueue<EvtTimer>
struct EvtTimerQueue {
TSPriorityQueue_EvtTimer b_base;
};
#endif