Factor out the buffer code and use it elsewhere
authorBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 23:48:19 +0000 (00:48 +0100)
committerBernd Petrovitsch <bernd@firmix.at>
Sun, 9 Nov 2008 23:48:19 +0000 (00:48 +0100)
commitf1f34b2eed2661108474614b5edbecac35bcd614
tree85a3a216531ba280eaddc058ffd3a9e16edd451b
parent3569d14f7f135a99e5035bcb47bc2fb63492c46a
Factor out the buffer code and use it elsewhere

We factor out the code of the auto-expanding buffer from the txtinfo plugin
into the core (and a few functions ....).
We use that for the config-file generation and while we are at it,
we clean it up.
And we use it in the httpinfo plugin.
This saves a few KB in the olsrd, httpinfo and txtinfo plugin.
lib/httpinfo/src/admin_interface.c
lib/httpinfo/src/admin_interface.h
lib/httpinfo/src/olsrd_httpinfo.c
lib/httpinfo/src/olsrd_httpinfo.h
lib/txtinfo/src/olsrd_txtinfo.c
src/cfgparser/cfgfile_gen.c
src/common/autobuf.c [new file with mode: 0644]
src/common/autobuf.h [new file with mode: 0644]
src/olsr_cfg.h
src/unix/ifnet.c