diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-02 17:20:54 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-02 17:20:54 +0100 |
commit | 0b7e9057daceab33b13238f4dea90976b5d2074d (patch) | |
tree | d295db6809e43a22e09e704e8a45bfaf3c10e9cb /config.h | |
parent | fa32be64a8781d8c1cdec9b359a2e8fe62668416 (diff) | |
download | vdr-0b7e9057daceab33b13238f4dea90976b5d2074d.tar.gz vdr-0b7e9057daceab33b13238f4dea90976b5d2074d.tar.bz2 |
Introduced 'svdrphosts.conf'
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -4,12 +4,13 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.91 2002/02/02 15:57:48 kls Exp $ + * $Id: config.h 1.92 2002/02/02 15:59:18 kls Exp $ */ #ifndef __CONFIG_H #define __CONFIG_H +#include <arpa/inet.h> #include <stdio.h> #include <string.h> #include <time.h> @@ -171,6 +172,16 @@ public: const char *Execute(void); }; +class cSVDRPhost : public cListObject { +private: + struct in_addr addr; + in_addr_t mask; +public: + cSVDRPhost(void); + bool Parse(const char *s); + bool Accepts(in_addr_t Address); + }; + template<class T> class cConfig : public cList<T> { private: char *fileName; @@ -268,10 +279,16 @@ public: class cCommands : public cConfig<cCommand> {}; +class cSVDRPhosts : public cConfig<cSVDRPhost> { +public: + bool Acceptable(in_addr_t Address); + }; + extern cChannels Channels; extern cTimers Timers; extern cKeys Keys; extern cCommands Commands; +extern cSVDRPhosts SVDRPhosts; class cSetup { private: |