vdr 2.7.3
dvbsddevice.c
Go to the documentation of this file.
1/*
2 * dvbsddevice.c: A plugin for the Video Disk Recorder
3 *
4 * See the README file for copyright information and how to reach the author.
5 *
6 * $Id: dvbsddevice.c 4.0 2015/02/17 13:11:55 kls Exp $
7 */
8
9#include <getopt.h>
10#include <vdr/plugin.h>
11#include "dvbsdffdevice.h"
12
13static const char *VERSION = "2.2.0";
14static const char *DESCRIPTION = "SD Full Featured DVB device";
15
17private:
19public:
21 virtual ~cPluginDvbsddevice();
22 virtual const char *Version(void) { return VERSION; }
23 virtual const char *Description(void) { return DESCRIPTION; }
24 virtual const char *CommandLineHelp(void);
25 virtual bool ProcessArgs(int argc, char *argv[]);
26 };
27
32
37
39{
40 return " -o --outputonly do not receive, just use as output device\n";
41}
42
43bool cPluginDvbsddevice::ProcessArgs(int argc, char *argv[])
44{
45 static struct option long_options[] = {
46 { "outputonly", no_argument, NULL, 'o' },
47 { NULL, no_argument, NULL, 0 }
48 };
49
50 int c;
51 while ((c = getopt_long(argc, argv, "o", long_options, NULL)) != -1) {
52 switch (c) {
53 case 'o': probe->SetOutputOnly(true);
54 break;
55 default: return false;
56 }
57 }
58 return true;
59}
60
cDvbSdFfDeviceProbe * probe
Definition dvbsddevice.c:18
virtual const char * Version(void)
Definition dvbsddevice.c:22
virtual const char * CommandLineHelp(void)
Definition dvbsddevice.c:38
virtual ~cPluginDvbsddevice()
Definition dvbsddevice.c:33
virtual bool ProcessArgs(int argc, char *argv[])
Definition dvbsddevice.c:43
virtual const char * Description(void)
Definition dvbsddevice.c:23
cPlugin(void)
Definition plugin.c:32
static const char * VERSION
Definition dvbhddevice.c:14
static const char * DESCRIPTION
Definition dvbhddevice.c:15
static const char * VERSION
Definition dvbsddevice.c:13
static const char * DESCRIPTION
Definition dvbsddevice.c:14
#define VDRPLUGINCREATOR(PluginClass)
Definition plugin.h:18