Ejemplo n.º 1
0
Archivo: command.c Proyecto: ihbar/fpp
static void exit_handler(int signum)
{
    LogInfo(VB_GENERAL, "Caught signal %d\n",signum);
    CloseCommand();
    if(mediaOutputStatus.status == MEDIAOUTPUTSTATUS_PLAYING) {
        CloseMediaOutput();
    }
    exit(signum);
}
Ejemplo n.º 2
0
Archivo: ugView.c Proyecto: 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;
}
Ejemplo n.º 3
0
Archivo: ugView.c Proyecto: rolk/ug
static void QuitCommand (void)
{
  CloseCommand();
  quitFlag = 1;
}