mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-09 08:12:52 +02:00
27 lines
533 B
C++
27 lines
533 B
C++
/* (c) ZeroTier, Inc.
|
|
* See LICENSE.txt in nonfree/
|
|
*/
|
|
|
|
#ifndef ZT_CTLUTIL_HPP
|
|
#define ZT_CTLUTIL_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace ZeroTier {
|
|
|
|
const char* _timestr();
|
|
|
|
std::vector<std::string> split(std::string str, char delim);
|
|
|
|
std::string url_encode(const std::string& value);
|
|
|
|
std::string random_hex_string(std::size_t length);
|
|
|
|
#ifdef ZT1_CENTRAL_CONTROLLER
|
|
void create_gcp_pubsub_topic_if_needed(std::string project_id, std::string topic_id);
|
|
#endif
|
|
|
|
} // namespace ZeroTier
|
|
|
|
#endif // namespace ZeroTier
|