9 #include <vdr/plugin.h> 12 static const char *
DESCRIPTION =
"How to add SVDRP support to a plugin";
28 " Print the current date.",
30 " Print the current time.\n" 31 " If the optional keyword 'raw' is given, the result will be the\n" 40 if (strcasecmp(Command,
"DATE") == 0) {
44 else if (strcasecmp(Command,
"TIME") == 0) {
47 if (strcasecmp(Option,
"RAW") == 0)
48 return cString::sprintf(
"%ld\nThis is the number of seconds since the epoch\nand a demo of a multi-line reply", time(NULL));
virtual const char ** SVDRPHelpPages(void)
static cString sprintf(const char *fmt,...) __attribute__((format(printf
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
static const char * VERSION
static const char * DESCRIPTION
virtual const char * Version(void)
virtual const char * Description(void)
VDRPLUGINCREATOR(cPluginSvdrpdemo)