'config list' removed; 'config reload' renamed to 'reload'.

This commit is contained in:
Roland Jax
2014-10-28 11:07:11 +01:00
parent 0827c62f3f
commit 9a07c5d492
5 changed files with 28 additions and 24 deletions
+11 -2
View File
@@ -6,10 +6,19 @@ Makefile.in
/autom4te.cache/ /autom4te.cache/
/config.* /config.*
/configure /configure
/ebusd
/ebusd*.tar.* /ebusd*.tar.*
/stamp-h? /stamp-h?
.deps/ .deps/
*.o *.o
*.dirstamp *.dirstamp
/ebusctl /src/libcore/libcore.a
/src/libebus/libebus.a
/src/ebusd/ebusd
/src/tools/ebusctl
/src/test/test_bus
/src/test/test_port
/src/test/test_configfile
/src/test/test_commands
/src/test/test_decode
/src/test/test_encode
/src/test/test_symbol
+3
View File
@@ -1,6 +1,9 @@
ebusd - ChangeLog ebusd - ChangeLog
----------------- -----------------
2014-10-28 Roland Jax <roland.jax@liwest.at>
* libebus project merged into ebusd project.
2014-10-21 Roland Jax <roland.jax@liwest.at> 2014-10-21 Roland Jax <roland.jax@liwest.at>
* class EBusLoop: recvBuffer removed. * class EBusLoop: recvBuffer removed.
+8 -5
View File
@@ -17,21 +17,24 @@ Features
- set adjust data of ebus participant - set adjust data of ebus participant
- cyc fetch data from collected cycle messages - cyc fetch data from collected cycle messages
- hex send given hex value to ebus (ZZ PB SB NN Dx) - hex send given hex value to ebus (ZZ PB SB NN Dx)
- dump toggle dump on/off - dump toggle dump on/off
- log areas change log areas - log areas change log areas
- log level change log level - log level change log level
- config list not implemented yes
- config reload reload ebus configuration - reload reload ebus configuration
- stop stop daemon - stop stop daemon
- quit close connection - quit close connection
- help print help page - help print help page
Dependency Dependency
---------- ----------
* libebus (https://github.com/yuhu-/libebus)
* glibc * glibc
* pkgconfig
Build Build
@@ -51,7 +54,7 @@ See ./ebusd -h
Vendor specific configuration files Vendor specific configuration files
----------------------------------- -----------------------------------
See https://github.com/yuhu-/ebusd_config See https://github.com/yuhu-/ebus-configuration
Tools Tools
+4 -15
View File
@@ -328,20 +328,13 @@ std::string BaseLoop::decodeMessage(const std::string& data)
break; break;
case config: case reload:
if (cmd.size() != 2) { if (cmd.size() != 1) {
result << "usage: 'config list'" << std::endl result << "usage: 'reload'";
<< " 'config reload'";
break; break;
} }
// ToDo: ... {
if (strcasecmp(cmd[1].c_str(), "LIST") == 0) {
result << "not implemented yet";
break;
}
if (strcasecmp(cmd[1].c_str(), "RELOAD") == 0) {
// create Commands DB // create Commands DB
Commands* commands = ConfigCommands(A.getParam<const char*>("p_ebusconfdir"), CSV).getCommands(); Commands* commands = ConfigCommands(A.getParam<const char*>("p_ebusconfdir"), CSV).getCommands();
L.log(bas, trace, "ebus configuration dir: %s", A.getParam<const char*>("p_ebusconfdir")); L.log(bas, trace, "ebus configuration dir: %s", A.getParam<const char*>("p_ebusconfdir"));
@@ -357,10 +350,6 @@ std::string BaseLoop::decodeMessage(const std::string& data)
break; break;
} }
result << "usage: 'config list'" << std::endl
<< " 'config reload'";
break;
case help: case help:
result << "commands:" << std::endl result << "commands:" << std::endl
<< " get - fetch ebus data 'get class cmd (sub)'" << std::endl << " get - fetch ebus data 'get class cmd (sub)'" << std::endl
+2 -2
View File
@@ -52,7 +52,7 @@ private:
hex, // send hex value hex, // send hex value
dump, // change dump state dump, // change dump state
log, // logger settings log, // logger settings
config, // ebus configuration reload, // reload ebus configuration
help, // print commands help, // print commands
notfound notfound
}; };
@@ -65,7 +65,7 @@ private:
if (strcasecmp(item.c_str(), "HEX") == 0) return hex; if (strcasecmp(item.c_str(), "HEX") == 0) return hex;
if (strcasecmp(item.c_str(), "DUMP") == 0) return dump; if (strcasecmp(item.c_str(), "DUMP") == 0) return dump;
if (strcasecmp(item.c_str(), "LOG") == 0) return log; if (strcasecmp(item.c_str(), "LOG") == 0) return log;
if (strcasecmp(item.c_str(), "CONFIG") == 0) return config; if (strcasecmp(item.c_str(), "RELOAD") == 0) return reload;
if (strcasecmp(item.c_str(), "HELP") == 0) return help; if (strcasecmp(item.c_str(), "HELP") == 0) return help;
return notfound; return notfound;