CtlUtil.hpp 481 B

12345678910111213141516171819202122232425
  1. /* (c) ZeroTier, Inc.
  2. * See LICENSE.txt in nonfree/
  3. */
  4. #ifndef ZT_CTLUTIL_HPP
  5. #define ZT_CTLUTIL_HPP
  6. #include <string>
  7. #include <vector>
  8. namespace ZeroTier {
  9. const char* _timestr();
  10. std::vector<std::string> split(std::string str, char delim);
  11. std::string url_encode(const std::string& value);
  12. #ifdef ZT1_CENTRAL_CONTROLLER
  13. void create_gcp_pubsub_topic_if_needed(std::string project_id, std::string topic_id);
  14. #endif
  15. } // namespace ZeroTier
  16. #endif // namespace ZeroTier