X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FNode.hh;h=3e796ecb785f65c9b18328bc4876649e9b42a0f5;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=fcd44d0d12e51f1d5021fd1b72c9f27974c99dfb;hpb=c60d49c7a219b1069c2ce1abc4a0971a9f4ff1f4;p=senf.git diff --git a/Utils/Console/Node.hh b/Utils/Console/Node.hh index fcd44d0..3e796ec 100644 --- a/Utils/Console/Node.hh +++ b/Utils/Console/Node.hh @@ -538,6 +538,8 @@ namespace console { DirectoryNode & mkdir(std::string const & name); ///< Create sub-directory node + DirectoryNode & provideDirectory(std::string const & name); + ///< Return subdirectory, possibly creating it ChildrenRange children() const; ///< Return iterator range over all children. /**< The returned range is sorted by child name. */ @@ -711,6 +713,9 @@ namespace console { SimpleCommandNode & senf_console_add_node(DirectoryNode & node, std::string const & name, SimpleCommandNode::Function fn, int); + DirectoryNode & senf_console_add_node(DirectoryNode & node, std::string const & name, + DirectoryNode & dir, int); + #endif }}