12static const char *
DESCRIPTION =
"How to add SVDRP support to a plugin";
21 virtual cString SVDRPCommand(
const char *Command,
const char *Option,
int &ReplyCode)
override;
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 cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) override
virtual const char ** SVDRPHelpPages(void) override
virtual const char * Version(void) override
virtual const char * Description(void) override
static cString sprintf(const char *fmt,...) __attribute__((format(printf
static const char * VERSION
static const char * DESCRIPTION
#define VDRPLUGINCREATOR(PluginClass)
static const char * VERSION
static const char * DESCRIPTION