static void exit_handler(int signum) { LogInfo(VB_GENERAL, "Caught signal %d\n",signum); CloseCommand(); if(mediaOutputStatus.status == MEDIAOUTPUTSTATUS_PLAYING) { CloseMediaOutput(); } exit(signum); }
static void ScheduleCommand (short theMenu,short theItem) { switch (theMenu) { case appleID : switch (theItem) { case aboutCommand : AboutCommand(); break; } break; case fileID : switch (theItem) { case openCommand : OpenCommand(); break; case closeCommand : CloseCommand(); break; case quitCommand : QuitCommand(); break; } break; case displayID : switch (theItem) { case refreshCommand : RefreshCommand(); break; #ifndef __MWCW__ case hdfCommand : HDFCommand(); break; #endif case pictCommand : PICTCommand(); break; } break; default : break; } return; }
static void QuitCommand (void) { CloseCommand(); quitFlag = 1; }