Cleanup: remove capture_asdcp_logs() from header.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Feb 2023 22:26:19 +0000 (23:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 3 Mar 2023 00:17:41 +0000 (01:17 +0100)
src/lib/util.cc
src/lib/util.h

index 20d85cff49417ac8ae6206f377b85198483b49ef..bab74583c52248d9cdd6fe569c3fba12468ba864 100644 (file)
@@ -360,6 +360,34 @@ dcpomatic_setup_path_encoding ()
 #endif
 }
 
+
+class LogSink : public Kumu::ILogSink
+{
+public:
+       LogSink () {}
+       LogSink (LogSink const&) = delete;
+       LogSink& operator= (LogSink const&) = delete;
+
+       void WriteEntry(const Kumu::LogEntry& entry) override {
+               Kumu::AutoMutex L(m_lock);
+               WriteEntryToListeners(entry);
+               if (entry.TestFilter(m_filter)) {
+                       string buffer;
+                       entry.CreateStringWithOptions(buffer, m_options);
+                       LOG_GENERAL("asdcplib: %1", buffer);
+               }
+       }
+};
+
+
+void
+capture_asdcp_logs ()
+{
+       static LogSink log_sink;
+       Kumu::SetDefaultLogSink(&log_sink);
+}
+
+
 /** Call the required functions to set up DCP-o-matic's static arrays, etc.
  *  Must be called from the UI thread, if there is one.
  */
@@ -1012,33 +1040,6 @@ start_of_thread (string)
 #endif
 
 
-class LogSink : public Kumu::ILogSink
-{
-public:
-       LogSink () {}
-       LogSink (LogSink const&) = delete;
-       LogSink& operator= (LogSink const&) = delete;
-
-       void WriteEntry(const Kumu::LogEntry& entry) override {
-               Kumu::AutoMutex L(m_lock);
-               WriteEntryToListeners(entry);
-               if (entry.TestFilter(m_filter)) {
-                       string buffer;
-                       entry.CreateStringWithOptions(buffer, m_options);
-                       LOG_GENERAL("asdcplib: %1", buffer);
-               }
-       }
-};
-
-
-void
-capture_asdcp_logs ()
-{
-       static LogSink log_sink;
-       Kumu::SetDefaultLogSink(&log_sink);
-}
-
-
 string
 error_details(boost::system::error_code ec)
 {
index 61922325db3ec5070a8e54907fabd2dc984fa308..d53fc06e0138696778084dd9ff9b0cc3c0e0990e 100644 (file)
@@ -93,7 +93,6 @@ extern dcp::Size scale_for_display (dcp::Size s, dcp::Size display_container, dc
 extern dcp::DecryptedKDM decrypt_kdm_with_helpful_error (dcp::EncryptedKDM kdm);
 extern boost::filesystem::path default_font_file ();
 extern void start_of_thread (std::string name);
-extern void capture_asdcp_logs ();
 extern std::string error_details(boost::system::error_code ec);
 extern bool contains_assetmap(boost::filesystem::path dir);