mirror of
https://github.com/ostreedev/ostree.git
synced 2024-10-26 17:25:36 +03:00
core: Make a helper function private
Nothing was using this, so make it private.
This commit is contained in:
parent
2534714501
commit
ee2b66ef00
@ -34,7 +34,6 @@ ostree_set_xattrs
|
||||
ostree_map_metadata_file
|
||||
ostree_content_stream_parse
|
||||
ostree_content_file_parse
|
||||
ostree_write_file_header_update_checksum
|
||||
ostree_raw_file_to_content_stream
|
||||
ostree_checksum_file_from_input
|
||||
ostree_checksum_file
|
||||
|
@ -517,8 +517,8 @@ _ostree_write_variant_with_size (GOutputStream *output,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_write_file_header_update_checksum:
|
||||
/*
|
||||
* write_file_header_update_checksum:
|
||||
* @out: Stream
|
||||
* @variant: A variant, should be a file header
|
||||
* @checksum: (allow-none): If provided, update with written data
|
||||
@ -528,12 +528,12 @@ _ostree_write_variant_with_size (GOutputStream *output,
|
||||
* Write a file header variant to the provided @out stream, optionally
|
||||
* updating @checksum.
|
||||
*/
|
||||
gboolean
|
||||
ostree_write_file_header_update_checksum (GOutputStream *out,
|
||||
GVariant *header,
|
||||
GChecksum *checksum,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
static gboolean
|
||||
write_file_header_update_checksum (GOutputStream *out,
|
||||
GVariant *header,
|
||||
GChecksum *checksum,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
gboolean ret = FALSE;
|
||||
gsize bytes_written;
|
||||
@ -841,8 +841,8 @@ ostree_checksum_file_from_input (GFileInfo *file_info,
|
||||
|
||||
file_header = file_header_new (file_info, xattrs);
|
||||
|
||||
if (!ostree_write_file_header_update_checksum (NULL, file_header, checksum,
|
||||
cancellable, error))
|
||||
if (!write_file_header_update_checksum (NULL, file_header, checksum,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
if (g_file_info_get_file_type (file_info) == G_FILE_TYPE_REGULAR)
|
||||
|
@ -203,12 +203,6 @@ gboolean ostree_content_file_parse (gboolean compressed,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_write_file_header_update_checksum (GOutputStream *out,
|
||||
GVariant *variant,
|
||||
GChecksum *checksum,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_raw_file_to_content_stream (GInputStream *input,
|
||||
GFileInfo *file_info,
|
||||
GVariant *xattrs,
|
||||
|
Loading…
Reference in New Issue
Block a user