mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 12:55:57 +01:00
Update curl to use new API (2/2)
This commit is contained in:
parent
f5e48a6bda
commit
821385ebfd
2 changed files with 2 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@
|
|||
#include <stdio.h>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <ytkmm/progressbar.h>
|
||||
//#include <ctime>
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue