X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FModuleManager.cc;h=66190d45368becc1d35e4097a6489962f2cfd61a;hb=8ee8742d5bcf846e0ebeb2abf994e371142b7707;hp=77f190c17eb299c5ec13346a9fd56fb2102a9ceb;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/PPI/ModuleManager.cc b/senf/PPI/ModuleManager.cc index 77f190c..66190d4 100644 --- a/senf/PPI/ModuleManager.cc +++ b/senf/PPI/ModuleManager.cc @@ -27,10 +27,10 @@ //#include "ModuleManager.ih" // Custom includes -#include "../Scheduler/Scheduler.hh" -#include "../Utils/membind.hh" +#include +#include #include "Module.hh" -#include "../Utils/Console/Console.hh" +#include //#include "ModuleManager.mpp" #define prefix_ @@ -77,16 +77,18 @@ prefix_ senf::ppi::ModuleManager::ModuleManager() senf::console::sysdir().add("ppi", consoleDir_); consoleDir_ - .add("dump", senf::membind(&ModuleManager::dumpModules, this)) - .doc("Dump complete PPI structure\n" - "The dump will contain one paragraph for each module. The first line gives module\n" - "information, additional lines list all connectors and their peers (if connected).\n" - "\n" - "This information can be processed by 'PPI/drawmodules.py' and 'dot' (from the\n" - "graphviz package) to generate a graphic representation of the module structure:\n" - "\n" - " $ echo /sys/ppi/dump | nc -q1 \\\n" - " | python PPI/drawmodules.py | dot -Tpng /dev/fd/0 >modules.png\n"); + .add("dump", senf::console::factory::Command( + senf::membind(&ModuleManager::dumpModules, this)) + .doc("Dump complete PPI structure\n" + "The dump will contain one paragraph for each module. The first line gives module\n" + "information, additional lines list all connectors and their peers (if connected).\n" + "\n" + "This information can be processed by 'PPI/drawmodules.py' and 'dot' (from the\n" + "graphviz package) to generate a graphic representation of the module structure:\n" + "\n" + " $ echo /sys/ppi/dump | nc -q1 \\\n" + " | python PPI/drawmodules.py | dot -Tpng /dev/fd/0 >modules.png\n") + ); } prefix_ void senf::ppi::ModuleManager::dumpModules(std::ostream & os)