diff --git a/tools/cli/appl/main-tool-client.cpp b/tools/cli/appl/main-tool-client.cpp index 8bf0d1f..bb70160 100644 --- a/tools/cli/appl/main-tool-client.cpp +++ b/tools/cli/appl/main-tool-client.cpp @@ -523,14 +523,18 @@ int main(int _argc, const char *_argv[]) { APPL_PRINT(" desc=" << proxy.sys.getDescription().wait().get()); APPL_PRINT(" version=" << proxy.sys.getVersion().wait().get()); APPL_PRINT(" type=" << proxy.sys.getType().wait().get()); - APPL_PRINT(" extention=" << proxy.sys.getExtention().wait().get()); APPL_PRINT(" authors=" << proxy.sys.getAuthors().wait().get()); auto listFunctions = proxy.sys.getFunctions().wait().get(); APPL_PRINT(" functions: " << listFunctions.size()); for (auto &it: listFunctions) { - APPL_PRINT(" " << it); - APPL_PRINT(" prototype=" << proxy.sys.getFunctionPrototype(it).wait().get()); - APPL_PRINT(" desc=" << proxy.sys.getFunctionDescription(it).wait().get()); + #if 0 + APPL_PRINT(" " << it); + APPL_PRINT(" prototype=" << proxy.sys.getFunctionPrototype(it).wait().get()); + APPL_PRINT(" desc=" << proxy.sys.getFunctionDescription(it).wait().get()); + #else + APPL_PRINT(" " << proxy.sys.getFunctionPrototype(it).wait().get()); + APPL_PRINT(" " << proxy.sys.getFunctionDescription(it).wait().get()); + #endif } } } else { diff --git a/zeus/ObjectIntrospect.cpp b/zeus/ObjectIntrospect.cpp index c0be480..ca96d31 100644 --- a/zeus/ObjectIntrospect.cpp +++ b/zeus/ObjectIntrospect.cpp @@ -23,10 +23,6 @@ zeus::Future zeus::ObjectIntrospect::getType() { return m_obj.call("sys.getType"); } -zeus::Future> zeus::ObjectIntrospect::getExtention() { - return m_obj.call("sys.getExtention"); -} - zeus::Future> zeus::ObjectIntrospect::getAuthors() { return m_obj.call("sys.getAuthors"); } diff --git a/zeus/ObjectIntrospect.hpp b/zeus/ObjectIntrospect.hpp index dd0517a..ef752f3 100644 --- a/zeus/ObjectIntrospect.hpp +++ b/zeus/ObjectIntrospect.hpp @@ -35,11 +35,6 @@ namespace zeus { * @return A future of the string type */ zeus::Future getType(); - /** - * @brief Get the list of extention availlable of the object (more specific of the service) - * @return A future on all extention availlable. Format: "typeExtention:xx.yy.zz" - */ - zeus::Future> getExtention(); /** * @brief get the list of all authors of the objects * @return A future on the list of authors. Format: "NAME surname " diff --git a/zeus/message/Parameter.cpp b/zeus/message/Parameter.cpp index b48b334..f568019 100644 --- a/zeus/message/Parameter.cpp +++ b/zeus/message/Parameter.cpp @@ -63,7 +63,8 @@ void zeus::message::Parameter::composeWith(const uint8_t* _buffer, uint32_t _len } zeus::message::ParamType zeus::message::Parameter::getParameterType(int32_t _id) const { - if (m_parameter.size() <= _id) { + if ( m_parameter.size() <= _id + || _id < 0) { ZEUS_ERROR("out of range Id for parameter ... " << _id << " have " << m_parameter.size()); return createType(); } @@ -124,7 +125,7 @@ zeus::message::ParamType zeus::message::Parameter::getParameterType(int32_t _id) const uint8_t* zeus::message::Parameter::getParameterPointer(int32_t _id) const { const uint8_t* out = nullptr; if ( m_parameter.size() <= _id - && _id < 0) { + || _id < 0) { ZEUS_ERROR("out of range Id for parameter ... " << _id << " have " << m_parameter.size()); return out; } @@ -143,7 +144,7 @@ const uint8_t* zeus::message::Parameter::getParameterPointer(int32_t _id) const uint32_t zeus::message::Parameter::getParameterSize(int32_t _id) const { int32_t out = 0; if ( m_parameter.size() <= _id - && _id < 0) { + || _id < 0) { ZEUS_ERROR("out of range Id for parameter ... " << _id << " have " << m_parameter.size()); return 0; }