Horizon
pool-update.hpp
1 #pragma once
2 #include <functional>
3 #include <string>
4 
5 namespace horizon {
6 
7 #ifdef G_OS_WIN32
8 #undef ERROR
9 #endif
10 
11 enum class PoolUpdateStatus { INFO, FILE, FILE_ERROR, ERROR, DONE };
12 typedef std::function<void(PoolUpdateStatus, std::string, std::string)> pool_update_cb_t;
13 
14 void pool_update(const std::string &pool_base_path, pool_update_cb_t status_cb = nullptr);
15 } // namespace horizon
Definition: block.cpp:9