summaryrefslogtreecommitdiffstats
path: root/include/buffer.h
Commit message (Collapse)AuthorAgeFilesLines
* src: consolidate XML/JSON exportationPablo Neira Ayuso2014-11-101-0/+80
Add new buffer class to consolidate the existing code to export objects in XML/JSON and use it. We save ~700 LOC with this change. The rule and set objects are not yet consolidated. It seems this would require some specific glue code per representation type since lists are arranged differently. This also consolidates the tag names, so we make sure the same are used from XML and JSON by placing them in include/buffer.h. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>