repo: Add wrapper function for setting devino cache on checkout opts
authorColin Walters <walters@verbum.org>
Thu, 19 Oct 2017 14:25:59 +0000 (10:25 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 20 Oct 2017 18:20:19 +0000 (18:20 +0000)
commit1222c2271b6a552054dcccf51199ed3314f9c66b
treec83167ae99609e07aacce4e3676746956172271e
parentb8251d26bd22338ca65a9ea52c6ca5107e572738
repo: Add wrapper function for setting devino cache on checkout opts

I was trying to use this with pygobject for an OCI+ostree project, and pygobject
rejected simply assigning to the field (understandably, since it can't bind the
lifetime together).

Add a wrapper function, which is still unsafe, but hides that unsafety
where most people shouldn't find it.  And if they do...well, sorry,
Rust wasn't invented when ostree was started.

Closes: #1295
Approved by: pwithnall
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo.h