summaryrefslogtreecommitdiff
path: root/text2skin.c
diff options
context:
space:
mode:
Diffstat (limited to 'text2skin.c')
-rw-r--r--text2skin.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/text2skin.c b/text2skin.c
index f45496d..30c806b 100644
--- a/text2skin.c
+++ b/text2skin.c
@@ -7,6 +7,7 @@
*/
#include "text2skin.h"
+#include "bitmap.h"
#include "setup.h"
#include "menu.h"
#include "i18n.h"
@@ -23,6 +24,29 @@ cText2SkinPlugin::cText2SkinPlugin(void) {
cText2SkinPlugin::~cText2SkinPlugin() {
}
+#if VDRVERSNUM >= 10331
+const char **cText2SkinPlugin::SVDRPHelpPages(void)
+{
+ static const char *HelpPages[] = {
+ "FLUS\n"
+ " Flush the image cache (useful if images have changed and the"
+ " current version should be loaded).",
+ NULL
+ };
+ return HelpPages;
+}
+
+cString cText2SkinPlugin::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
+{
+ if (strcasecmp(Command, "FLUS") == 0) {
+ // we use the default reply code here
+ cText2SkinBitmap::FlushCache();
+ return "image cache flushed.";
+ }
+ return NULL;
+}
+#endif
+
bool cText2SkinPlugin::Start(void) {
#if VDRVERSNUM < 10507
RegisterI18n(Phrases);