core: Drop some dead code from packfile writing, expose GInputStream API too

We never actually dropped into the bits to write metadata as packfiles,
because such a thing doesn't exist.

Also add a GInputStream-based API for writing packfiles.
This commit is contained in:
Colin Walters committed 2011-11-30 22:15:05 -05:00
1 parent 556662b24c
commit 702c38739e
3 files changed
+139 -124

No files matched your search

+11 -5
View File
@@ -152,11 +152,17 @@ gboolean ostree_get_directory_metadata (GFile *dir,
*/
#define OSTREE_PACK_FILE_VARIANT_FORMAT "(uuuua(ayay)t)"
gboolean ostree_pack_object (GOutputStream *output,
GFile *file,
OstreeObjectType objtype,
GCancellable *cancellable,
GError **error);
gboolean ostree_pack_file (GOutputStream *output,
GFile *file,
GCancellable *cancellable,
GError **error);
gboolean ostree_pack_file_for_input (GOutputStream *output,
GFileInfo *finfo,
GInputStream *input,
GVariant *xattrs,
GCancellable *cancellable,
GError **error);
gboolean ostree_parse_packed_file (GFile *file,
GVariant **out_metadata,