mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Updated for vdr-1.3.47.
This commit is contained in:
parent
c2b1e5a187
commit
caf42f7ace
3
HISTORY
3
HISTORY
@ -214,3 +214,6 @@ VDR Plugin 'femon' Revision History
|
|||||||
- Made all symbol data 'const'.
|
- Made all symbol data 'const'.
|
||||||
- Added spanish translation (Thanks to Luis Palacios).
|
- Added spanish translation (Thanks to Luis Palacios).
|
||||||
|
|
||||||
|
2006-04-20: Version 0.9.9
|
||||||
|
|
||||||
|
- Updated for vdr-1.3.47.
|
||||||
|
13
Makefile
13
Makefile
@ -17,7 +17,7 @@ PLUGIN = femon
|
|||||||
|
|
||||||
### The version number of this plugin (taken from the main source file):
|
### The version number of this plugin (taken from the main source file):
|
||||||
|
|
||||||
VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).h | awk '{ print $$6 }' | sed -e 's/[";]//g')
|
VERSION = $(shell grep 'static const char VERSION\[\] *=' $(PLUGIN).h | awk '{ print $$6 }' | sed -e 's/[";]//g')
|
||||||
|
|
||||||
### The C++ compiler and options:
|
### The C++ compiler and options:
|
||||||
|
|
||||||
@ -26,7 +26,6 @@ CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual
|
|||||||
|
|
||||||
### The directory environment:
|
### The directory environment:
|
||||||
|
|
||||||
DVBDIR = ../../../../DVB
|
|
||||||
VDRDIR = ../../..
|
VDRDIR = ../../..
|
||||||
LIBDIR = ../../lib
|
LIBDIR = ../../lib
|
||||||
TMPDIR = /tmp
|
TMPDIR = /tmp
|
||||||
@ -35,9 +34,9 @@ TMPDIR = /tmp
|
|||||||
|
|
||||||
-include $(VDRDIR)/Make.config
|
-include $(VDRDIR)/Make.config
|
||||||
|
|
||||||
### The version number of VDR (taken from VDR's "config.h"):
|
### The version number of VDR's plugin API (taken from VDR's "config.h"):
|
||||||
|
|
||||||
VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
||||||
|
|
||||||
### The name of the distribution archive:
|
### The name of the distribution archive:
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ PACKAGE = vdr-$(ARCHIVE)
|
|||||||
|
|
||||||
### Includes and Defines (add further entries here):
|
### Includes and Defines (add further entries here):
|
||||||
|
|
||||||
INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include
|
INCLUDES += -I$(VDRDIR)/include
|
||||||
|
|
||||||
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
||||||
|
|
||||||
@ -85,10 +84,10 @@ all: libvdr-$(PLUGIN).so
|
|||||||
|
|
||||||
libvdr-$(PLUGIN).so: $(OBJS)
|
libvdr-$(PLUGIN).so: $(OBJS)
|
||||||
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
|
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
|
||||||
@cp $@ $(LIBDIR)/$@.$(VDRVERSION)
|
|
||||||
ifndef FEMON_DEBUG
|
ifndef FEMON_DEBUG
|
||||||
@strip $(LIBDIR)/$@.$(VDRVERSION)
|
@strip $@
|
||||||
endif
|
endif
|
||||||
|
@cp $@ $(LIBDIR)/$@.$(APIVERSION)
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
@-rm -rf $(TMPDIR)/$(ARCHIVE)
|
@-rm -rf $(TMPDIR)/$(ARCHIVE)
|
||||||
|
4
femon.c
4
femon.c
@ -15,8 +15,8 @@
|
|||||||
#include "femontools.h"
|
#include "femontools.h"
|
||||||
#include "femon.h"
|
#include "femon.h"
|
||||||
|
|
||||||
#if defined(VDRVERSNUM) && VDRVERSNUM < 10344
|
#if defined(APIVERSNUM) && APIVERSNUM < 10347
|
||||||
#error "You don't exist! Go away! Upgrade yourself!"
|
#error "VDR API version 10347 or greater is required!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cPluginFemon::cPluginFemon()
|
cPluginFemon::cPluginFemon()
|
||||||
|
8
femon.h
8
femon.h
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
#include <vdr/plugin.h>
|
#include <vdr/plugin.h>
|
||||||
|
|
||||||
static const char *VERSION = "0.9.8";
|
static const char VERSION[] = "0.9.9";
|
||||||
static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)";
|
static const char DESCRIPTION[] = "DVB Signal Information Monitor (OSD)";
|
||||||
static const char *MAINMENUENTRY = "Signal Information";
|
static const char MAINMENUENTRY[] = "Signal Information";
|
||||||
|
|
||||||
class cPluginFemon : public cPlugin {
|
class cPluginFemon : public cPlugin {
|
||||||
public:
|
public:
|
||||||
@ -27,6 +27,8 @@ public:
|
|||||||
virtual bool Start(void);
|
virtual bool Start(void);
|
||||||
virtual void Stop(void);
|
virtual void Stop(void);
|
||||||
virtual void Housekeeping(void);
|
virtual void Housekeeping(void);
|
||||||
|
virtual void MainThreadHook(void) {}
|
||||||
|
virtual cString Active(void) { return NULL; }
|
||||||
virtual const char *MainMenuEntry(void) { return (femonConfig.hidemenu ? NULL : tr(MAINMENUENTRY)); }
|
virtual const char *MainMenuEntry(void) { return (femonConfig.hidemenu ? NULL : tr(MAINMENUENTRY)); }
|
||||||
virtual cOsdObject *MainMenuAction(void);
|
virtual cOsdObject *MainMenuAction(void);
|
||||||
virtual cMenuSetupPage *SetupMenu(void);
|
virtual cMenuSetupPage *SetupMenu(void);
|
||||||
|
@ -11,7 +11,7 @@ PLUGIN = femonclient
|
|||||||
|
|
||||||
### The version number of this plugin (taken from the main source file):
|
### The version number of this plugin (taken from the main source file):
|
||||||
|
|
||||||
VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g')
|
VERSION = $(shell grep 'static const char VERSION\[\] *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g')
|
||||||
|
|
||||||
### The C++ compiler and options:
|
### The C++ compiler and options:
|
||||||
|
|
||||||
@ -20,27 +20,26 @@ CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual
|
|||||||
|
|
||||||
### The directory environment:
|
### The directory environment:
|
||||||
|
|
||||||
DVBDIR = ../../../../DVB
|
VDRDIR = ../../../..
|
||||||
VDRDIR = ../../..
|
LIBDIR = ../../../lib
|
||||||
LIBDIR = ../../lib
|
|
||||||
TMPDIR = /tmp
|
TMPDIR = /tmp
|
||||||
|
|
||||||
### Allow user defined options to overwrite defaults:
|
### Allow user defined options to overwrite defaults:
|
||||||
|
|
||||||
-include $(VDRDIR)/Make.config
|
-include $(VDRDIR)/Make.config
|
||||||
|
|
||||||
### The version number of VDR (taken from VDR's "config.h"):
|
### The version number of VDR's plugin API (taken from VDR's "config.h"):
|
||||||
|
|
||||||
VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
||||||
|
|
||||||
### The name of the distribution archive:
|
### The name of the distribution archive:
|
||||||
|
|
||||||
ARCHIVE = svcintf-$(VERSION)
|
ARCHIVE = $(PLUGIN)-$(VERSION)
|
||||||
PACKAGE = vdr-$(ARCHIVE)
|
PACKAGE = vdr-$(ARCHIVE)
|
||||||
|
|
||||||
### Includes and Defines (add further entries here):
|
### Includes and Defines (add further entries here):
|
||||||
|
|
||||||
INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I$(VDRDIR)/PLUGINS/src/femon/
|
INCLUDES += -I$(VDRDIR)/include -I$(VDRDIR)/PLUGINS/src/femon/
|
||||||
|
|
||||||
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
||||||
|
|
||||||
@ -68,7 +67,7 @@ all: libvdr-$(PLUGIN).so
|
|||||||
|
|
||||||
libvdr-$(PLUGIN).so: $(PLUGIN).o
|
libvdr-$(PLUGIN).so: $(PLUGIN).o
|
||||||
$(CXX) $(CXXFLAGS) -shared $(PLUGIN).o -o $@
|
$(CXX) $(CXXFLAGS) -shared $(PLUGIN).o -o $@
|
||||||
@cp $@ $(LIBDIR)/$@.$(VDRVERSION)
|
@cp $@ $(LIBDIR)/$@.$(APIVERSION)
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
@-rm -rf $(TMPDIR)/$(ARCHIVE)
|
@-rm -rf $(TMPDIR)/$(ARCHIVE)
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
#include <vdr/plugin.h>
|
#include <vdr/plugin.h>
|
||||||
#include "femonservice.h"
|
#include "femonservice.h"
|
||||||
|
|
||||||
static const char *VERSION = "0.0.1";
|
static const char VERSION[] = "0.0.1";
|
||||||
static const char *DESCRIPTION = "Femon client";
|
static const char DESCRIPTION[] = "Femon client";
|
||||||
static const char *MAINMENUENTRY = "Show frontend statistic on console";
|
static const char MAINMENUENTRY[] = "Show frontend statistic on console";
|
||||||
|
|
||||||
class cPluginFemonClient : public cPlugin {
|
class cPluginFemonClient : public cPlugin {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user