Пример #1
0
static void exit_handler(int signum)
{
    LogInfo(VB_GENERAL, "Caught signal %d\n",signum);
    CloseCommand();
    if(mediaOutputStatus.status == MEDIAOUTPUTSTATUS_PLAYING) {
        CloseMediaOutput();
    }
    exit(signum);
}
Пример #2
0
Файл: ugView.c Проект: rolk/ug
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;
}
Пример #3
0
Файл: ugView.c Проект: rolk/ug
static void QuitCommand (void)
{
  CloseCommand();
  quitFlag = 1;
}