Commit ddf1c734917dc112c7e5d7e89b7600ea59ef4d8e

Stefan Sperling 2018-12-23T14:54:03

make got_object_blob_id_str() a private API

diff --git a/include/got_object.h b/include/got_object.h
index 5143552..dbace0c 100644
--- a/include/got_object.h
+++ b/include/got_object.h
@@ -182,14 +182,6 @@ got_object_open_as_blob(struct got_blob_object **,
 void got_object_blob_close(struct got_blob_object *);
 
 /*
- * Write the string representation of the object ID of a blob to a buffer.
- * The size_t argument speficies the size of the buffer. In the current
- * implementation, it must be at least SHA1_DIGEST_STRING_LENGTH bytes.
- * XXX This is a bad API, use got_object_id_str() instead.
- */
-char *got_object_blob_id_str(struct got_blob_object*, char *, size_t);
-
-/*
  * Get the length of header data at the beginning of the blob's read buffer.
  * Note that header data is only present upon the first invocation of
  * got_object_blob_read_block() after the blob is opened.
diff --git a/lib/got_lib_object.h b/lib/got_lib_object.h
index 87f0ab9..14bd628 100644
--- a/lib/got_lib_object.h
+++ b/lib/got_lib_object.h
@@ -88,5 +88,6 @@ const struct got_error *got_object_tree_open(struct got_tree_object **,
     struct got_repository *, struct got_object *);
 const struct got_error *got_object_blob_open(struct got_blob_object **,
     struct got_repository *, struct got_object *, size_t);
+char *got_object_blob_id_str(struct got_blob_object*, char *, size_t);
 const struct got_error *got_object_tag_open(struct got_tag_object **,
     struct got_repository *, struct got_object *);