From 821385ebfdf9625bd3a2af60e5eb46cb401ebea0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 5 Jan 2026 16:41:27 +0100 Subject: [PATCH] Update curl to use new API (2/2) --- gtk2_ardour/sfdb_freesound_mootcher.cc | 2 +- gtk2_ardour/sfdb_freesound_mootcher.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/sfdb_freesound_mootcher.cc b/gtk2_ardour/sfdb_freesound_mootcher.cc index 02ebc80e08..6fdde4cd09 100644 --- a/gtk2_ardour/sfdb_freesound_mootcher.cc +++ b/gtk2_ardour/sfdb_freesound_mootcher.cc @@ -617,7 +617,7 @@ Mootcher::updateProgress(double dlnow, double dltotal) } int -Mootcher::progress_callback(void *caller, double dltotal, double dlnow, double /*ultotal*/, double /*ulnow*/) +Mootcher::progress_callback(void *caller, curl_off_t dltotal, curl_off_t dlnow, curl_off_t /*ultotal*/, curl_off_t /*ulnow*/) { // It may seem curious to pass a pointer to an instance of an object to a static // member function, but we can't use a normal member function as a curl progress callback, diff --git a/gtk2_ardour/sfdb_freesound_mootcher.h b/gtk2_ardour/sfdb_freesound_mootcher.h index df5538ee50..e708ed22b7 100644 --- a/gtk2_ardour/sfdb_freesound_mootcher.h +++ b/gtk2_ardour/sfdb_freesound_mootcher.h @@ -40,8 +40,6 @@ #include #include #include -#include -#include #include //#include @@ -101,7 +99,7 @@ private: void setcUrlOptions(); static size_t WriteMemoryCallback (void *ptr, size_t size, size_t nmemb, void *data); - static int progress_callback (void *clientp, double dltotal, double dlnow, double ultotal, double ulnow); + static int progress_callback (void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow); std::string sortMethodString (enum sortMethod sort); std::string getSoundResourceFile (std::string ID);