summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/request_callback.hpp
blob: 01427bd96d0f27574232a7f4d426a032bfb5d87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MBGL_STORAGE_REQUEST_CALLBACK
#define MBGL_STORAGE_REQUEST_CALLBACK

#include <mbgl/util/variant.hpp>

#include <functional>

namespace mbgl {

class Response;

using CompletedCallback = std::function<void(const Response &)>;
using AbortedCallback = std::function<void()>;

using Callback = mapbox::util::variant<
    CompletedCallback,
    AbortedCallback
>;

}

#endif