diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-06 23:27:45 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-09-09 22:31:59 -0400 |
commit | 33db74d0ce0adbc790574351bb1d9d21f55edbda (patch) | |
tree | 4d4b61ccff992f6e1711b5f7dc5889905a5104cf /src/libostree/ostree-repo-file.h | |
parent | ac2d61dd515e547df6e1fc9e9d438783a201848d (diff) | |
download | ostree-33db74d0ce0adbc790574351bb1d9d21f55edbda.tar.gz |
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
Diffstat (limited to 'src/libostree/ostree-repo-file.h')
-rw-r--r-- | src/libostree/ostree-repo-file.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/libostree/ostree-repo-file.h b/src/libostree/ostree-repo-file.h index dc8c0bda..094ae2cf 100644 --- a/src/libostree/ostree-repo-file.h +++ b/src/libostree/ostree-repo-file.h @@ -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 |