haproxy/include
Willy Tarreau f13ebdf286 REORG: cli: move table dump/clear/set to stick_table.c
The table dump code was a horrible mess, with common parts interleaved
all the way to deal with the various actions (set/clear/show). A few
error messages were still incorrect, as the "set" operation did not
update them so they would still report "unknown action" (now fixed).

The action was now passed as a private argument to the CLI keyword
which itself is copied into the appctx private field. It's just an
int cast to a pointer.

Some minor issues were noticed while doing this, for example when dumping
an entry by key, if the key doesn't exist, nothing is printed, not even
the table's header. It's unclear whether this was intentional but it
doesn't really match what is done for data-based dumps. It was left
unchanged for now so that a later fix can be backported if needed.

Enum entries STAT_CLI_O_TAB, STAT_CLI_O_CLR and STAT_CLI_O_SET were
removed.
2016-11-24 16:59:28 +01:00
..
common REORG: cli: move dump_text(), dump_text_line(), and dump_binary() to standard.c 2016-11-24 16:59:27 +01:00
import CLEANUP: wurfl: reduce exposure in the rest of the code 2016-11-08 18:47:25 +01:00
proto REORG: cli: move "show stat" to stats.c 2016-11-24 16:59:27 +01:00
types REORG: cli: move table dump/clear/set to stick_table.c 2016-11-24 16:59:28 +01:00