
/*
 * See the files COPYING and README for copyright information and how to reach 
 * the author.
 *
 *  $Id: vdr_compat.h,v 1.1.1.1 2004/11/19 16:45:31 lordjaxom Exp $
 */

#ifndef VDR_BURN_COMPAT_H
#define VDR_BURN_COMPAT_H

#include <vdr/config.h>
#if VDRVERSNUM < 10307
#	include <vdr/osd.h>
#	define INFO(s) Interface->Info(s)
#	define STATUS(s) Interface->Status(s)
#	define ERROR(s) Interface->Error(s)
#	define FLUSH() Interface->Flush()
# define FRESHEN() Display()
# define WIDTH() Width()
#	define SETHELP(s...) Interface->Help(s)
#else
#	include <vdr/osdbase.h>
#	define INFO(s) Skins.Message(mtInfo, s)
#	define STATUS(s) Skins.Message(mtStatus, s)
#	define ERROR(s) Skins.Message(mtError, s)
#	define FLUSH() Skins.Flush()
# define FRESHEN() SetFresh(true)
# define WIDTH() 80             // TODO+
#	define SETHELP(s...) cSkinDisplay::Current()->SetButtons(s)
#endif

#endif // VDR_BURN_COMPAT_H
