author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 10 Apr 2009 08:52:34 +0000 (08:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 10 Apr 2009 08:52:34 +0000 (08:52 +0000) | ||
commit | 18ff159c38b7d919bafbdcc46d03c3f83c17476f | |
tree | c9bdf359b4fd3bdeb4091a6b752a82145631d1e7 | tree | snapshot |
parent | 2f2e580d4570417d95b8a3b4ef09a3c1e79808bb | commit | diff |
This patch consolidates several aspects of the command handling in
rrdcached:
* all commands, help, and context information is reduced to a single data
structure.
* all checks for command validity (context and permission) are handled in
the main dispatch routine
This removes duplicate help/syntax text, and long if..elseif..else chains.
It facilitates the addition of new commands. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1788 a5681a0c-68f1-0310-ab6d-d61299d08faa
rrdcached:
* all commands, help, and context information is reduced to a single data
structure.
* all checks for command validity (context and permission) are handled in
the main dispatch routine
This removes duplicate help/syntax text, and long if..elseif..else chains.
It facilitates the addition of new commands. -- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1788 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_daemon.c | diff | blob | history |