diff --git a/doc/ostree-sections.txt b/doc/ostree-sections.txt index 28ae59fe..5691f636 100644 --- a/doc/ostree-sections.txt +++ b/doc/ostree-sections.txt @@ -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 diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index e6559dcb..381c61fc 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -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) diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h index 25ba3f64..ac3f58d9 100644 --- a/src/libostree/ostree-core.h +++ b/src/libostree/ostree-core.h @@ -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,