diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-04-14 13:15:34 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-04-14 13:15:34 +0200 |
commit | 4e460da371189b5e6c508acd6f159484f01c2d82 (patch) | |
tree | 119d69e9e576f4ae011a9fe7a420742822ea0520 /args.h | |
parent | 6feb8d88758f38dbf4baaf54784c6b4243db5bcb (diff) | |
download | vdr-4e460da371189b5e6c508acd6f159484f01c2d82.tar.gz vdr-4e460da371189b5e6c508acd6f159484f01c2d82.tar.bz2 |
VDR now reads command line options from *.conf files in /etc/vdr/conf.d
Diffstat (limited to 'args.h')
-rw-r--r-- | args.h | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -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 <dvb@flensrocker.de>. + * + * $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 |