Introduce public dwfl_get_debuginfod_client API
authorMilian Wolff <mail@milianw.de>
Thu, 7 Jul 2022 17:33:35 +0000 (19:33 +0200)
committerAaron Merey <amerey@redhat.com>
Wed, 13 Jul 2022 18:15:28 +0000 (14:15 -0400)
commita4b1839c3c46d461765de894dc4b4b0c5580fc1b
treeb85695333cfe0e23a5e153bef1691d163ddb9be9
parent994c40e485211981ab93b2f6ae399075d8c8a0f3
Introduce public dwfl_get_debuginfod_client API

Dwfl can use debuginfod internally, which was so far totally opaque
to the outside. While the functionality is great for users of the
dwfl API, the long wait times induced by downloading of data over
debuginfod lead to complaints by endusers. To offer them a bit more
insight into the internal ongoings, one can now use e.g.
`debuginfod_set_progressfn` on the handle returned by
`dwfl_get_debuginfod_client` to report download progress.

Rename get_client to dwfl_get_debuginfod_client and make it public.
Unconditionally compile debuginfod-client.c and stub the new public
function and always return NULL when debuginfod integration was
disabled.

Signed-off-by: Milian Wolff <mail@milianw.de>
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/Makefile.am
libdwfl/debuginfod-client.c
libdwfl/libdwfl.h
libdwfl/libdwflP.h