X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FModuleManager.cc;h=2bc9295475f19f73b18c42e9cb9a30e1d8bda8c0;hb=78a6e233083efa63a9cd0684a92abc64202a9ee7;hp=3d2b3d5f83f0e061e81a0eef3cf2461c5fdf1b72;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/PPI/ModuleManager.cc b/senf/PPI/ModuleManager.cc index 3d2b3d5..2bc9295 100644 --- a/senf/PPI/ModuleManager.cc +++ b/senf/PPI/ModuleManager.cc @@ -70,23 +70,25 @@ prefix_ void senf::ppi::ModuleManager::run() // private members prefix_ senf::ppi::ModuleManager::ModuleManager() - : running_(false), terminate_(false), + : running_(false), terminate_(false), initRunner_ ("senf::ppi::init", membind(&ModuleManager::init, this), scheduler::EventHook::PRE, false) { 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)