libopkg: support passing callbacks to feed parsing functions
authorJo-Philipp Wich <jo@mein.io>
Sun, 3 May 2020 19:39:56 +0000 (21:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 20:24:19 +0000 (22:24 +0200)
commitcf4554d6f26c8973916f83c1720aa2fba55c1baa
tree0ef0ed20a5e7dd1b51a031eafe03b2df373c5e8f
parent2a0210f42b6d90453a1eeeefd0e8e998c3bae1ea
libopkg: support passing callbacks to feed parsing functions

Extend pkg_hash_add_from_file(), pkg_hash_load_feeds() and
pkg_hash_load_status_files() to accept a per-package callback
function andan associated userdata pointer.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg.c
libopkg/opkg_cmd.c
libopkg/pkg_hash.c
libopkg/pkg_hash.h
src/opkg-cl.c
tests/opkg_hash_test.c