summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-10-21 17:08:59 -0700
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-12-01 00:00:09 +0200
commit0d8ea6c0a238a3b76d4ac49dee89f8e62769b8fe (patch)
treeeaed65e560be14d66ec7da75f2c2732d37ec17c1 /include
parentd422c8cac4e436fb2fb1eeafbae5ed5d847e0b00 (diff)
downloadqtlocation-mapboxgl-0d8ea6c0a238a3b76d4ac49dee89f8e62769b8fe.tar.gz
[core] Removed dependency on uv_loop from the file source
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/storage/network_status.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/mbgl/storage/network_status.hpp b/include/mbgl/storage/network_status.hpp
index cac2ae193b..a1c417c4cf 100644
--- a/include/mbgl/storage/network_status.hpp
+++ b/include/mbgl/storage/network_status.hpp
@@ -4,22 +4,24 @@
#include <mutex>
#include <set>
-typedef struct uv_async_s uv_async_t;
-
namespace mbgl {
+namespace util {
+class AsyncTask;
+}
+
class NetworkStatus {
public:
static void Reachable();
- static void Subscribe(uv_async_t *async);
- static void Unsubscribe(uv_async_t *async);
+ static void Subscribe(util::AsyncTask* async);
+ static void Unsubscribe(util::AsyncTask* async);
private:
static std::mutex mtx;
- static std::set<uv_async_t *> observers;
+ static std::set<util::AsyncTask*> observers;
};
}
-#endif \ No newline at end of file
+#endif