namespace Tangram {
-// Function type for a mapReady callback
-using MapReady = std::function<void(void*)>;
// Function type for receiving data from a successful network request
using UrlCallback = std::function<void(std::vector<char>&&)>;
-#if 0
-#pragma once
-
-#include "platform.h"
-
-bool shouldRender();
-
-void initUrlRequests(const char* proxyAddress);
-void stopUrlRequests();
-
-#endif
-
#pragma once
#include "platform.h"
#include <functional>
#include <Evas_GL.h>
-typedef struct _FcConfig FcConfig;
-
namespace Tangram {
void setEvasGlAPI(Evas_GL_API *glApi);
std::function<void()> m_renderCallbackFunction = nullptr;
mutable bool m_update = false;
-
- mutable std::vector<std::string> m_fallbackFonts;
- mutable FcConfig* m_fcConfig = nullptr;
-
};
} // namespace Tangram
bool canceled = false;
};
- UrlClient(Options options);
+ UrlClient(const Options& options);
~UrlClient();
bool addRequest(const std::string& url, UrlCallback onComplete);