summaryrefslogtreecommitdiff
path: root/include/llmr/platform/platform.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/llmr/platform/platform.hpp')
-rw-r--r--include/llmr/platform/platform.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llmr/platform/platform.hpp b/include/llmr/platform/platform.hpp
index f56e738ffa..25778c5610 100644
--- a/include/llmr/platform/platform.hpp
+++ b/include/llmr/platform/platform.hpp
@@ -6,7 +6,7 @@
#include <string>
#define kTileURL "http://a.gl-api-us-east-1.tilestream.net/v3/mapbox.mapbox-streets-v4/%d/%d/%d.gl.pbf"
-#define kSpriteURL "http://mapbox-kkaefer.s3.amazonaws.com/static/sprite"
+#define kSpriteURL "https://dl.dropboxusercontent.com/u/575564/sprite"
namespace llmr {
@@ -14,16 +14,16 @@ class Tile;
namespace platform {
-// Restarts painting. This could for example trigger the event loop of the
-// controlling application.
-void restart(void *obj);
+// Restarts painting. This could for example trigger the event loop of the controlling application.
+void restart();
struct Response {
int16_t code = -1;
std::string body;
};
-void request_http(std::string url, std::function<void(Response&)> func, std::function<void()> cb);
+// Makes an HTTP request of a URL on a background thread, calls a function with the results on the same thread, and finally calls a callback function on the main thread.
+void request_http(std::string url, std::function<void(Response&)> background_function, std::function<void()> foreground_callback);
// Returns a relative timestamp in seconds. This value must be monotonic.
double time();