Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

include/timer.h

Go to the documentation of this file.
00001 // timer.h
00006 
00007 #ifndef TIMER_H
00008 #define TIMER_H
00009 
00010 #define TIMER_STAT   0
00011 #define TIMER_FUNC   1
00012 
00013 //{{{
00014 struct stat_timer_desc
00015 {
00016     uint type;
00017     struct stat_mod_desc effect;
00018     CONST char *expire_message;
00019 };
00020 TYPEDEF(struct stat_timer_desc stat_timer_desc)
00021 //}}}
00022 #ifndef DATA_FILE
00023 //{{{
00024 struct func_timer_desc
00025 {
00026     uint type;
00027     void (*apply)(void);
00028     void (*expire)(void);
00029 };
00030 TYPEDEF(struct func_timer_desc func_timer_desc)
00031 //}}}
00032 //{{{
00033 union timer_desc
00034 {
00035     struct stat_timer_desc stat;
00036     struct func_timer_desc func;
00037 };
00038 TYPEDEF(union timer_desc timer_desc)
00039 //}}}
00040 #endif
00041 //{{{
00042 struct stat_timer
00043 {
00044     uint type;
00045     uint padding;
00046     DATA_WRAP_PTR(CONST timer_desc *desc;)
00047     ulong expiry;
00048 };
00049 //}}}
00050 TYPEDEF(struct stat_timer stat_timer)
00051 
00052 #endif //TIMER_H
00053 

Generated on Thu May 20 13:12:09 2004 for CalcRogue by doxygen 1.3.6