mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
helpers.h/cpp: add default timeout parameter with value 1
For flexible usage of timeout in related downloadUrl methods if required.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7cabce4b80
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-11-16 (Mon, 16 Nov 2020)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -173,8 +173,8 @@ bool utf8_check_is_valid(const std::string &str);
|
||||
|
||||
std::string randomString(unsigned int length = 10);
|
||||
std::string randomFile(std::string suffix = "tmp", std::string directory = "/tmp", unsigned int length = 10);
|
||||
std::string downloadUrlToRandomFile(std::string url, std::string directory = "/tmp", unsigned int length = 10);
|
||||
std::string downloadUrlToLogo(std::string url, std::string directory = "/tmp", t_channel_id channel_id = 0);
|
||||
std::string downloadUrlToRandomFile(std::string url, std::string directory = "/tmp", unsigned int length = 10, unsigned int timeout = 1);
|
||||
std::string downloadUrlToLogo(std::string url, std::string directory = "/tmp", t_channel_id channel_id = 0, unsigned int timeout = 1);
|
||||
|
||||
// curl
|
||||
struct MemoryStruct {
|
||||
|
Reference in New Issue
Block a user