diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2015-04-17 09:00:17 -0400 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2015-04-17 11:19:08 -0400 |
commit | a6bbcf2ba7b8c6e8c478bd776e1042bc7990b942 (patch) | |
tree | e94c9af3bbcae07d34bf6909011982d7558dda2f /src/libostree/ostree-sysroot-private.h | |
parent | 6a7b9defb8d9d3ccc762fc11731092b4634d611c (diff) | |
download | ostree-a6bbcf2ba7b8c6e8c478bd776e1042bc7990b942.tar.gz |
sysroot: Cache an OstreeRepo instance
Rather than returning a new OstreeRepo instance in each call to
ostree_sysroot_get_repo(), cache one internally so the same instance
is returned each time.
Diffstat (limited to 'src/libostree/ostree-sysroot-private.h')
-rw-r--r-- | src/libostree/ostree-sysroot-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot-private.h b/src/libostree/ostree-sysroot-private.h index 03224dec..69310c3f 100644 --- a/src/libostree/ostree-sysroot-private.h +++ b/src/libostree/ostree-sysroot-private.h @@ -40,6 +40,9 @@ struct OstreeSysroot { int bootversion; int subbootversion; OstreeDeployment *booted_deployment; + + /* Only access through ostree_sysroot_get_repo() */ + OstreeRepo *repo; }; gboolean |