core: Deduplicate code converting struct stat -> GFileInfo

We were doing the same thing in a number of places, make a helper
function.
This commit is contained in:
Colin Walters committed 2014-12-19 10:18:59 -05:00
1 parent 880328ba03
commit c4efbf6718
4 files changed
+34 -29

No files matched your search

+2
View File
@@ -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.
*/