repo-file: Base OstreeRepoFile on trees instead of commits
We want an OstreeRepoFile to be the way to represent a filesystem tree inside an ostree repository. In order to do this, we need to drop the commit from an OstreeRepoFile, and make that go to callers. Switch all current users of ostree_repo_file_new_root to ostree_repo_read_commit, and make the actual constructor private. https://bugzilla.gnome.org/show_bug.cgi?id=707727
This commit is contained in:
1 parent
ac2d61dd51
commit
33db74d0ce
7 files changed
+111
-119
No files matched your search
@@ -42,12 +42,6 @@ struct _OstreeRepoFileClass
|
||||
|
||||
GType ostree_repo_file_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFile * ostree_repo_file_new_root (OstreeRepo *repo,
|
||||
const char *commit);
|
||||
|
||||
GFile * ostree_repo_file_new_child (OstreeRepoFile *parent,
|
||||
const char *name);
|
||||
|
||||
gboolean ostree_repo_file_ensure_resolved (OstreeRepoFile *self,
|
||||
GError **error);
|
||||
|
||||
@@ -68,12 +62,11 @@ void ostree_repo_file_tree_set_metadata (OstreeRepoFile *self,
|
||||
const char *ostree_repo_file_tree_get_contents_checksum (OstreeRepoFile *self);
|
||||
const char *ostree_repo_file_tree_get_metadata_checksum (OstreeRepoFile *self);
|
||||
|
||||
gboolean ostree_repo_file_is_tree (OstreeRepoFile *self);
|
||||
GVariant *ostree_repo_file_tree_get_contents (OstreeRepoFile *self);
|
||||
GVariant *ostree_repo_file_tree_get_metadata (OstreeRepoFile *self);
|
||||
|
||||
const char * ostree_repo_file_get_checksum (OstreeRepoFile *self);
|
||||
|
||||
const char * ostree_repo_file_get_commit (OstreeRepoFile *self);
|
||||
|
||||
int ostree_repo_file_tree_find_child (OstreeRepoFile *self,
|
||||
const char *name,
|
||||
gboolean *is_dir,
|
||||
@@ -87,8 +80,5 @@ gboolean ostree_repo_file_tree_query_child (OstreeRepoFile *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
GVariant *ostree_repo_file_tree_get_contents (OstreeRepoFile *self);
|
||||
GVariant *ostree_repo_file_tree_get_metadata (OstreeRepoFile *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in new issue
Block a user