diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 19:37:01 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 19:37:01 -0500 |
commit | 77ef54d7a1eccacefc615fee178374760a2401a5 (patch) | |
tree | 27f1891bfe5e0a47efab39728a43dbd20bf1cb04 /hscript/network.hh | |
parent | e80e8ad8578a3426b810363094243c5d822742d5 (diff) | |
download | horizon-77ef54d7a1eccacefc615fee178374760a2401a5.tar.gz horizon-77ef54d7a1eccacefc615fee178374760a2401a5.tar.bz2 horizon-77ef54d7a1eccacefc615fee178374760a2401a5.tar.xz horizon-77ef54d7a1eccacefc615fee178374760a2401a5.zip |
hscript: Implement Nameserver, add tests
Diffstat (limited to 'hscript/network.hh')
-rw-r--r-- | hscript/network.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hscript/network.hh b/hscript/network.hh index 411f4b3..b556ab8 100644 --- a/hscript/network.hh +++ b/hscript/network.hh @@ -69,7 +69,12 @@ public: bool execute(ScriptOptions) const override; }; -class Nameserver : public Key { +class Nameserver : public StringKey { +private: + Nameserver(int _line, const std::string &ns) : StringKey(_line, ns) {} +public: + static Key *parseFromData(const std::string &, int, int *, int *); + bool execute(ScriptOptions) const override; }; class NetSSID : public Key { |