]> git.ipfire.org Git - thirdparty/nftables.git/commit
datatype: Describe rt symbol tables
authorPhil Sutter <phil@nwl.cc>
Fri, 22 Dec 2023 16:00:44 +0000 (17:00 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 2 Jan 2024 17:29:51 +0000 (18:29 +0100)
commit17cef81a8d1d119f457a01214a86e2c0e883ce8f
treebec6cf88905a9895e6fdffad9e63c2905effde4f
parentd9badd39deb7e2f9509be75e83477ab0a0bf2740
datatype: Describe rt symbol tables

Implement a symbol_table_print() wrapper for the run-time populated
rt_symbol_tables which formats output similar to expr_describe() and
includes the data source.

Since these tables reside in struct output_ctx there is no implicit
connection between data type and therefore providing callbacks for
relevant datat types which feed the data into said wrapper is a simpler
solution than extending expr_describe() itself.

Signed-off-by: Phil Sutter <phil@nwl.cc>
include/datatype.h
src/ct.c
src/datatype.c
src/meta.c
src/rt.c