Version is reported in the engine status.

git-svn-id: http://voip.null.ro/svn/yate@121 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2004-12-01 15:01:30 +00:00
parent 5355906dc1
commit fc420d1d80
2 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ snapshot tarball: check-topdir clean tables apidocs
check-topdir:
@test -f configure || (echo "Must make this target in the top source directory"; exit 1)
Engine.o: @srcdir@/Engine.cpp $(MKDEPS) @srcdir@/telengine.h yatepaths.h
Engine.o: @srcdir@/Engine.cpp $(MKDEPS) @srcdir@/telengine.h @srcdir@/yateversn.h yatepaths.h
$(COMPILE) -c $<
DataBlock.o: @srcdir@/DataBlock.cpp $(MKDEPS) @srcdir@/telengine.h @srcdir@/telephony.h

View File

@ -22,6 +22,7 @@
#include "telengine.h"
#include "yatepaths.h"
#include "yateversn.h"
#include <dirent.h>
#include <unistd.h>
@ -173,6 +174,7 @@ bool EngineStatusHandler::received(Message &msg)
if (sel && ::strcmp(sel,"engine"))
return false;
msg.retValue() << "name=engine,type=system";
msg.retValue() << ",version=" << YATE_MAJOR << "." << YATE_MINOR << "." << YATE_BUILD;
msg.retValue() << ";plugins=" << plugins.count();
msg.retValue() << ",inuse=" << Engine::self()->usedPlugins();
msg.retValue() << ",threads=" << Thread::count();