/*
 * gngb2vdr.c: A plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id$
 */

#include <stdio.h>

#include <pthread.h>
#include <semaphore.h>

#include <vdr/osd.h>
#include <vdr/thread.h>
#include <vdr/plugin.h>

#include "SDL/SDL.h"

#include "gbcosd.h"

#include "gbcplugin.h"

cPlugingbc2vdr::cPlugingbc2vdr(void)
{
  // Initialize any member variables here.
  // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL
  // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!


  FILE *f;

  f = fopen("vdr-gngb.log","at");
  if( f != NULL )
  {
    fprintf(f,"\n\n--- cgbcPlugin::cgbcPlugin() --- \n");
    fclose(f);
  }

}

cPlugingbc2vdr::~cPlugingbc2vdr()
{
  // Clean up after yourself!
}

const char *cPlugingbc2vdr::CommandLineHelp(void)
{
  // Return a string that describes all known command line options.
  return NULL;
}

bool cPlugingbc2vdr::ProcessArgs(int argc, char *argv[])
{
  // Implement command line argument processing here if applicable.
  return true;
}

bool cPlugingbc2vdr::Initialize(void)
{
  // Initialize any background activities the plugin shall perform.
  return true;
}

bool cPlugingbc2vdr::Start(void)
{
  // Start any background activities the plugin shall perform.
  return true;
}

void cPlugingbc2vdr::Housekeeping(void)
{
  // Perform any cleanup or other regular tasks.
}

cOsdObject *cPlugingbc2vdr::MainMenuAction(void)
{
  VDRGBCLOG("cPlugingbc2vdr::MainMenuAction\n");
  // Perform the action when selected from the main VDR menu.
  return new cgbcOsd();
}

cMenuSetupPage *cPlugingbc2vdr::SetupMenu(void)
{
  // Return a setup menu in case the plugin supports one.
  return NULL;
}

bool cPlugingbc2vdr::SetupParse(const char *Name, const char *Value)
{
  // Parse your own setup parameters and store their values.
  return false;
}

VDRPLUGINCREATOR(cPlugingbc2vdr); // Don't touch this!
