Rename Struct defined in freesound header to be less generic
This could potentially conflict with a struct declared in the ardour/soundcloud_upload.h file.
This commit is contained in:
parent
cec0c57b78
commit
3193aa93ce
@ -106,7 +106,7 @@ void Mootcher::ensureWorkingDir ()
|
||||
size_t Mootcher::WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
|
||||
{
|
||||
int realsize = (int)(size * nmemb);
|
||||
struct MemoryStruct *mem = (struct MemoryStruct *)data;
|
||||
struct SfdbMemoryStruct *mem = (struct SfdbMemoryStruct *)data;
|
||||
|
||||
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
|
||||
|
||||
@ -161,7 +161,7 @@ void Mootcher::setcUrlOptions()
|
||||
std::string Mootcher::doRequest(std::string uri, std::string params)
|
||||
{
|
||||
std::string result;
|
||||
struct MemoryStruct xml_page;
|
||||
struct SfdbMemoryStruct xml_page;
|
||||
xml_page.memory = NULL;
|
||||
xml_page.size = 0;
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
#include "curl/curl.h"
|
||||
|
||||
//--- struct to store XML file
|
||||
struct MemoryStruct {
|
||||
struct SfdbMemoryStruct {
|
||||
char *memory;
|
||||
size_t size;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user