libostree: Make the format of file objects private

It's now isolated almost entirely to ostree-core.c, except
ostree-repo.c needs to know how to create archive-z2 file headers.  So
give it a private API for that.
This commit is contained in:
Colin Walters committed 2013-09-03 18:43:42 -04:00
1 parent 356de33b49
commit 0d72168961
5 files changed
+114 -78

No files matched your search

+2 -1
View File
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include "ostree-repo-private.h"
#include "ostree-core-private.h"
#include "ostree-mutable-tree.h"
#include "ostree-checksum-input-stream.h"
#include "otutil.h"
@@ -707,7 +708,7 @@ stage_object (OstreeRepo *self,
goto out;
temp_file_is_regular = TRUE;
file_meta = ostree_zlib_file_header_new (file_info, xattrs);
file_meta = _ostree_zlib_file_header_new (file_info, xattrs);
if (!ostree_write_variant_with_size (temp_out, file_meta, 0, NULL, NULL,
cancellable, error))