Open obbardc opened 2 years ago
cc @blenk92 @abozhinov444 @andersson @jwinarske @ndechesne
thanks for sending this PR.. support for sparse support is very much needed.. I am wondering if using libsparse is really a great thing though. First the distribution of libsparse in distro is not always great (I don't think Archlinux has it), and hardcoding the lib path like you did is problematic. Also, I think it complicates the main loop when processing the file quite a bit.. how difficult (or wrong?) would it be to implement a small 'unsparse' algorithm directly in qdl? would that be a bad idea?
@ndechesne I agree. It would be better to not pull in library dependency, and implement the sparse algorithm directly.
Right, using the library is a bit of a pain. The other two open PRs vendor in libsparse. If that is acceptable, I can do that here too?
Based on original work from https://github.com/andersson/qdl/pull/5
Signed-off-by: Christopher Obbard chris.obbard@collabora.com