[Olsr-dev] [PATCH v1 0/8] jsoninfo/txinfo cleanup series - part 2
Ferry Huberts
(spam-protected)
Fri Nov 27 17:26:09 CET 2015
From: Ferry Huberts <(spam-protected)>
This series continues working towards making jsoninfo and txtinfo look as much
identical as possible again, since jsoninfo started out as a copy of
txtinfo. This work is not complete yet.
Once complete, both plugins can be 'merged' into common code that they share.
Most of this part 2 series is more than basic cleanup, feedback welcome.
The biggest changes are that jsoninfo now sends http headers by default and
that txtinfo generates the same http headers as jsoninfo.
Feeback welcome
Ferry Huberts (8):
txtinfo: remove a pointless assert
txtinfo: also send the (UTF-8) charset in the content type
txtinfo: avoid a memcpy: just move the abuf.buf pointer and clear abuf
jsoninfo: refactor generation of the headers
jsoninfo: also send the (UTF-8) charset in the content type
jsoninfo: avoid a memcpy: just move the abuf.buf pointer and clear
abuf
jsoninfo: send http headers by default
txtinfo: bring over proper http header support from jsoninfo
lib/jsoninfo/src/olsrd_jsoninfo.c | 80 ++++++++++++++++++++++++---------------
lib/jsoninfo/src/olsrd_plugin.c | 2 +-
lib/txtinfo/src/olsrd_txtinfo.c | 80 ++++++++++++++++++++++++++++++++++++---
3 files changed, 125 insertions(+), 37 deletions(-)
--
2.5.0
More information about the Olsr-dev
mailing list