diff options
author | Colin Walters <walters@verbum.org> | 2021-04-07 21:03:15 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-04-08 21:10:00 +0000 |
commit | fce69cdf70ca959410ffd324ee978300cc72a5e0 (patch) | |
tree | cb0030610190b0375d5bf97766750a7a1aee33d0 /src/libostree/ostree-repo.h | |
parent | 9332955b5f523b730cf332a8bd9619c40894bbe7 (diff) | |
download | ostree-fce69cdf70ca959410ffd324ee978300cc72a5e0.tar.gz |
repo: Add ostree_repo_write_symlink
Continuation of the addition of `ostree_repo_write_regfile_inline()`.
This will be helpful for ostree-rs-ext and importing from tar, it's
quite inefficient and awkward for small files to end up creating
a whole `GInputStream` and `GFileInfo` and etc. for small files.
Diffstat (limited to 'src/libostree/ostree-repo.h')
-rw-r--r-- | src/libostree/ostree-repo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h index cd50fc43..7e08361b 100644 --- a/src/libostree/ostree-repo.h +++ b/src/libostree/ostree-repo.h @@ -436,6 +436,16 @@ char * ostree_repo_write_regfile_inline (OstreeRepo *self, GError **error); _OSTREE_PUBLIC +char * ostree_repo_write_symlink (OstreeRepo *self, + const char *expected_checksum, + guint32 uid, + guint32 gid, + GVariant *xattrs, + const char *symlink_target, + GCancellable *cancellable, + GError **error); + +_OSTREE_PUBLIC gboolean ostree_repo_write_metadata_trusted (OstreeRepo *self, OstreeObjectType objtype, const char *checksum, |