Sunshine/sunshine/httpcommon.h

9 lines
361 B
C
Raw Normal View History

2021-05-17 19:56:55 +00:00
#include "network.h"
2021-05-29 20:29:10 +00:00
namespace http {
void init(std::shared_ptr<safe::signal_t> shutdown_event);
int create_creds(const std::string &pkey, const std::string &cert);
std::string read_file(const char *path);
int write_file(const char *path, const std::string_view &contents);
extern std::string unique_id;
extern net::net_e origin_pin_allowed;
} // namespace http