pkg: use a blob buffer in pkg_t to store variable fields
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 16:14:53 +0000 (17:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 13 Feb 2017 15:52:56 +0000 (16:52 +0100)
commit2035cbf3a489fd762c4077478602d2022cb537f6
tree44bdc97805190b99d50b60031d18b06d20b1c2b0
parentc723fb3996c89cd433d33fdb20c28527bc050c88
pkg: use a blob buffer in pkg_t to store variable fields

Adds infrastructure to use a blob buffer in pkg_t to store and retrieve
optional dynamic fields.

This reduces the size of the pkg_t structure itself and lays the
ground work for further optimization.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 files changed:
libopkg/opkg.c
libopkg/opkg_cmd.c
libopkg/opkg_download.c
libopkg/opkg_install.c
libopkg/pkg.c
libopkg/pkg.h
libopkg/pkg_depends.c
libopkg/pkg_extract.c
libopkg/pkg_hash.c
libopkg/pkg_parse.c
libopkg/pkg_vec.c
src/Makefile.am
tests/Makefile.am
tests/libopkg_test.c