JKSV/include/remote/remote.hpp
2025-10-07 10:42:09 -04:00

22 lines
777 B
C++

#pragma once
#include "remote/Storage.hpp"
#include "sys/threadpool.hpp"
#include <memory>
namespace remote
{
// Both of these are needed in two different places.
static constexpr std::string_view PATH_GOOGLE_DRIVE_CONFIG = "sdmc:/config/JKSV/client_secret.json";
static constexpr std::string_view PATH_WEBDAV_CONFIG = "sdmc:/config/JKSV/webdav.json";
/// @brief Returns whether or not the console has an active internet connection.
bool has_internet_connection() noexcept;
/// @brief Initializes the remote service according to the config on the sdmc.
void initialize(sys::threadpool::JobData jobData);
/// @brief Returns the pointer to the Storage instance.
remote::Storage *get_remote_storage() noexcept;
} // namespace remote