]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
enhance: Make Hash::add_debug_text public
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Aug 2022 13:37:09 +0000 (15:37 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Aug 2022 13:37:55 +0000 (15:37 +0200)
src/Hash.hpp

index 968e558145b6caf7776d2fca2c7eafea79a46596..269026e370fcb56d56fe1624f757269e09f3d47c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2020-2021 Joel Rosdahl and other contributors
+// Copyright (C) 2020-2022 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -96,11 +96,13 @@ public:
   // Returns true on success, otherwise false.
   bool hash_file(const std::string& path);
 
+  // Add `text` to the text debug file.
+  void add_debug_text(std::string_view text);
+
 private:
   blake3_hasher m_hasher;
   FILE* m_debug_binary = nullptr;
   FILE* m_debug_text = nullptr;
 
   void hash_buffer(std::string_view buffer);
-  void add_debug_text(std::string_view text);
 };