diff options
author | Colin Walters <walters@verbum.org> | 2014-12-16 21:14:10 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-12-19 10:18:59 -0500 |
commit | c4efbf67182072ed95bbdacf20f18da03484e47c (patch) | |
tree | f29367f9a64e5c5d831a2b6c292b332c00b4af39 /src/libostree/ostree-core-private.h | |
parent | 880328ba03c7aa09d55e0b193150e4409d4c98d7 (diff) | |
download | ostree-c4efbf67182072ed95bbdacf20f18da03484e47c.tar.gz |
core: Deduplicate code converting struct stat -> GFileInfo
We were doing the same thing in a number of places, make a helper
function.
Diffstat (limited to 'src/libostree/ostree-core-private.h')
-rw-r--r-- | src/libostree/ostree-core-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libostree/ostree-core-private.h b/src/libostree/ostree-core-private.h index 851e74b1..294edfa5 100644 --- a/src/libostree/ostree-core-private.h +++ b/src/libostree/ostree-core-private.h @@ -81,6 +81,8 @@ _ostree_make_temporary_symlink_at (int tmp_dirfd, GCancellable *cancellable, GError **error); +GFileInfo * _ostree_header_gfile_info_new (mode_t mode, uid_t uid, gid_t gid); + /* XX + / + checksum-2 + . + extension, but let's just use 256 for a * bit of overkill. */ |