12static 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 * Description(void)
virtual const char ** SVDRPHelpPages(void)
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
virtual const char * Version(void)
static cString sprintf(const char *fmt,...) __attribute__((format(printf
#define VDRPLUGINCREATOR(PluginClass)
static const char * VERSION
static const char * DESCRIPTION