From 4e460da371189b5e6c508acd6f159484f01c2d82 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 14 Apr 2014 13:15:34 +0200 Subject: VDR now reads command line options from *.conf files in /etc/vdr/conf.d --- args.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 args.h (limited to 'args.h') diff --git a/args.h b/args.h new file mode 100644 index 00000000..2e91afb4 --- /dev/null +++ b/args.h @@ -0,0 +1,34 @@ +/* + * args.h: Read arguments from files + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * Original version written by Lars Hanisch . + * + * $Id: args.h 1.1 2014/04/14 11:54:21 kls Exp $ + */ + +#ifndef __ARGS_H +#define __ARGS_H + +#include "tools.h" + +class cArgs { +private: + cString argv0; + cStringList args; + cString lastArg; + bool inVdrSection; + int argc; + char **argv; + bool AddArg(const char *s); +public: + cArgs(const char *Argv0); + ~cArgs(void); + bool ReadDirectory(const char *Directory); + int GetArgc(void) const { return argc; }; + char **GetArgv(void) const { return argv; }; + }; + +#endif //__ARGS_H -- cgit v1.2.3