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 | 126cc87867fdffab909245a6210b8ffa9774084c | |
tree | 9040929fa3afe3b5cf94134c166bd3341007a218 | tree | snapshot |
parent | 2659c9dc5ba92f7ad1788d654044aa67e852086e | 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@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@1788 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_daemon.c | diff | blob | history |