diff options
Diffstat (limited to 'src/plugins/gui.c')
-rw-r--r-- | src/plugins/gui.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/gui.c b/src/plugins/gui.c index ecbfd3b97..f45345341 100644 --- a/src/plugins/gui.c +++ b/src/plugins/gui.c @@ -24,16 +24,17 @@ PLUGIN_EVENTS_TABLE = { { NULL, NULL } }; +typedef int (*TimerFunc)(int tid, unsigned int tick, int id, intptr data); unsigned int (*gettick)(); -int (*add_timer_func_list)(int (*)(int,unsigned int,int,int),char*); -int (*add_timer_interval)(unsigned int,int (*)(int,unsigned int,int,int),int,int,int); +int (*add_timer_func_list)(TimerFunc func, char* name); +int (*add_timer_interval)(unsigned int tick, TimerFunc func, int id, intptr data, int interval); //----------------------------------------------------- //I'm Alive Alert //Used to output 'I'm Alive' every few seconds //Intended to let frontends know if the app froze //----------------------------------------------------- -int imalive_timer(int tid, unsigned int tick, int id, int data) +int imalive_timer(int tid, unsigned int tick, int id, intptr data) { printf("I'm Alive\n"); return 0; @@ -43,7 +44,7 @@ int imalive_timer(int tid, unsigned int tick, int id, int data) //Flush stdout //stdout buffer needs flushed to be seen in GUI //----------------------------------------------------- -int flush_timer(int tid, unsigned int tick, int id, int data) +int flush_timer(int tid, unsigned int tick, int id, intptr data) { fflush(stdout); return 0; |