From 803c6c6bf6340302f78171892bef599aa272c266 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 11 May 2002 18:00:00 +0200 Subject: Version 1.1.1 - Separated the actual DVB hardware OSD implementation from the abstract OSD interface. 'osdbase.c/.h' now implements the abstract OSD, while 'dvbosd.c/.h' is the actual implementation for the DVB hardware. This is in preparation for allowing additional kinds of OSD hardware implementations. - Fixed leftover references to the file FORMATS in MANUAL and svdrp.c. - Avoiding ambiguities in the cList template class in case one defines a "list of lists" (thanks to Stefan Huelswitt). - Simplified the basic cMenuSetupPage class for easier use in plugins. - Added setup parameters and a Setup menu to the 'hello' plugin example. - Fixed logging error message for unknown config parameters in plugins. - Rearranged cleanup sequence at the end of the main program. - Adapted PLUGINS.html to use the actual code examples from the 'hello' plugin. --- CONTRIBUTORS | 2 + HISTORY | 15 ++ MANUAL | 4 +- Makefile | 4 +- PLUGINS.html | 207 ++++++++++++++---- PLUGINS/SRC/hello/HISTORY | 4 + PLUGINS/SRC/hello/hello.c | 47 +++- PLUGINS/SRC/hello/i18n.c | 41 +++- PLUGINS/SRC/hello/i18n.h | 7 +- config.c | 11 +- config.h | 4 +- dvbosd.c | 545 ++++------------------------------------------ dvbosd.h | 171 ++------------- i18n.c | 15 +- menu.c | 194 ++++++++++------- menuitems.c | 48 ++-- menuitems.h | 15 +- osdbase.c | 482 ++++++++++++++++++++++++++++++++++++++++ osdbase.h | 211 ++++++++++++++++++ svdrp.c | 4 +- tools.h | 6 +- vdr.c | 10 +- 22 files changed, 1216 insertions(+), 831 deletions(-) create mode 100644 osdbase.c create mode 100644 osdbase.h diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b6bd60a..ce0ffaa 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -128,6 +128,8 @@ Stefan Huelswitt with CAMs and AC3 sound only working the first time for making the main loop take an active video cutting process into account when doing shutdown or housekeeping + for making the cList template class avoid ambiguities in case one defines a "list of + lists" Ulrich Röder for pointing out that there are channels that have a symbol rate higher than diff --git a/HISTORY b/HISTORY index 6599534..1da14fd 100644 --- a/HISTORY +++ b/HISTORY @@ -1254,3 +1254,18 @@ Video Disk Recorder Revision History and '-P' used to load plugins. This first step implements the complete "outer" shell for plugins. The "inner" access to VDR data structures will follow. - The VDR version number is now displayed in the title line of the "Setup" menu. + +2002-05-11: Version 1.1.1 + +- Separated the actual DVB hardware OSD implementation from the abstract OSD + interface. 'osdbase.c/.h' now implements the abstract OSD, while 'dvbosd.c/.h' + is the actual implementation for the DVB hardware. This is in preparation for + allowing additional kinds of OSD hardware implementations. +- Fixed leftover references to the file FORMATS in MANUAL and svdrp.c. +- Avoiding ambiguities in the cList template class in case one defines a "list of + lists" (thanks to Stefan Huelswitt). +- Simplified the basic cMenuSetupPage class for easier use in plugins. +- Added setup parameters and a Setup menu to the 'hello' plugin example. +- Fixed logging error message for unknown config parameters in plugins. +- Rearranged cleanup sequence at the end of the main program. +- Adapted PLUGINS.html to use the actual code examples from the 'hello' plugin. diff --git a/MANUAL b/MANUAL index 9787131..2dc75a3 100644 --- a/MANUAL +++ b/MANUAL @@ -571,7 +571,7 @@ Video Disk Recorder User's Manual * Executing system commands The "VDR" menu option "Commands" allows you to execute any system commands - defined in the configuration file 'commands.conf' (see FORMATS for details). + defined in the configuration file 'commands.conf' (see vdr(5) for details). The "Commands" option will only be present in the "VDR" menu if a valid 'commands.conf' file containing at least one command definition has been found at program start. @@ -584,7 +584,7 @@ Video Disk Recorder User's Manual be displayed on a result screen after executing the command. This screen will use a 'fixed' font so that you can generate formatted output. In order to avoid error messages going to stderr, command definitions should redirect - stderr to stdout (see FORMATS). + stderr to stdout (see vdr(5)). WARNING: THE COMMANDS DEFINED IN 'commands.conf' WILL BE EXECUTED UNDER THE ======= SAME USER ID THAT VDR IS RUNNING WITH. BE VERY CAREFUL WHEN diff --git a/Makefile b/Makefile index 55a01e8..d6f7887 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Makefile 1.34 2002/05/09 09:35:05 kls Exp $ +# $Id: Makefile 1.35 2002/05/10 10:24:46 kls Exp $ .DELETE_ON_ERROR: @@ -22,7 +22,7 @@ INCLUDES = -I$(DVBDIR)/ost/include DTVLIB = $(DTVDIR)/libdtv.a OBJS = config.o dvbapi.o dvbosd.o eit.o font.o i18n.o interface.o menu.o\ - menuitems.o osd.o plugin.o recording.o remote.o remux.o ringbuffer.o\ + menuitems.o osdbase.o osd.o plugin.o recording.o remote.o remux.o ringbuffer.o\ svdrp.o thread.o tools.o vdr.o videodir.o OSDFONT = -adobe-helvetica-medium-r-normal--23-*-100-100-p-*-iso8859-1 diff --git a/PLUGINS.html b/PLUGINS.html index b903f04..70d6f46 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -15,7 +15,10 @@ VDR code (and all the problems of correlating various patches). This document describes the "outside" interface of the plugin system. It handles everything necessary for a plugin to get hooked into the core VDR program and present itself to the user. - +

+
  +Important modifications introduced in version 1.1.1 are marked like this. +


Quick start

@@ -25,12 +28,12 @@ VDR program and present itself to the user. Actually you should read this entire document before starting to work with VDR plugins, but you probably want to see something happening right away ;-)

-So, for a quick demonstration of the plugin system, there is a demo plugin called +So, for a quick demonstration of the plugin system, there is a sample plugin called "hello" that comes with the VDR source. To test drive this one, do the following: