sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
typedef std::function<void(uint64_t cur, uint64_t total, bool success)> DownloadProgressHandler;
|
||||
void installDownloadProgressHandler(DownloadProgressHandler handler);
|
||||
|
||||
namespace PyDownloader {
|
||||
|
||||
// Downloads url to local cache, returns local file path. Reports progress via installDownloadProgressHandler.
|
||||
std::string download(const std::string &url, bool use_cache = true, std::atomic<bool> *abort = nullptr);
|
||||
|
||||
// Returns JSON string of route files (same format as /v1/route/.../files API)
|
||||
std::string getRouteFiles(const std::string &route);
|
||||
|
||||
// Returns JSON string of user's devices
|
||||
std::string getDevices();
|
||||
|
||||
// Returns JSON string of device routes
|
||||
std::string getDeviceRoutes(const std::string &dongle_id, int64_t start_ms = 0, int64_t end_ms = 0, bool preserved = false);
|
||||
|
||||
} // namespace PyDownloader
|
||||
Reference in new issue
Block a user