lib/pull: Minor cleanup to metadata scanning function, add docs
authorColin Walters <walters@verbum.org>
Mon, 2 Oct 2017 19:36:47 +0000 (15:36 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 2 Oct 2017 19:55:54 +0000 (19:55 +0000)
commitbe100e0ee26e6a4abb7865d13d4aaaa52d603759
treea9c7e600ef152752605736ed8c00d129609f50c8
parent030e3efbc41f1f4f8d3fd2c64da235869b0f6f0b
lib/pull: Minor cleanup to metadata scanning function, add docs

I'm regretting a bit having the `guint8*csum` variant of checksums
except for the serialized form.  Once we start doing processing
it's easier to just have it remain hex.

Do an on-stack conversion for the metadata scanning function; this
drops a malloc and also just looks nicer.

Also add some long-awaited function comments to the two.

Closes: #1240
Approved by: jlebon
src/libostree/ostree-repo-pull.c