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.
This commit is contained in:
Matthew Barnes committed 2015-04-17 11:19:08 -04:00
1 parent 6a7b9defb8
commit a6bbcf2ba7
2 files changed
+14 -6

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ struct OstreeSysroot {
int bootversion;
int subbootversion;
OstreeDeployment *booted_deployment;
/* Only access through ostree_sysroot_get_repo() */
OstreeRepo *repo;
};
gboolean