[ostree] core: Make a helper function private



commit ee2b66ef001633afbaf43e8a95b0e86e36cb938d
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 4 07:53:02 2013 -0400

    core: Make a helper function private
    
    Nothing was using this, so make it private.

 doc/ostree-sections.txt     |    1 -
 src/libostree/ostree-core.c |   20 ++++++++++----------
 src/libostree/ostree-core.h |    6 ------
 3 files changed, 10 insertions(+), 17 deletions(-)
---
diff --git a/doc/ostree-sections.txt b/doc/ostree-sections.txt
index 28ae59f..5691f63 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 e6559dc..381c61f 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 25ba3f6..ac3f58d 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]