tv_rename/network.hpp
2019-06-07 13:12:59 +02:00

36 lines
412 B
C++

#ifndef NETWORK_HPP
#define NETWORK_HPP
#include <string>
#ifdef _WIN32
#include <Windows.h>
#include <WinInet.h>
using string = std::wstring;
#else
#include <curl/curl.h>
using string = std::string;
#endif
class Curl {
public:
Curl();
~Curl();
std::string execute( const string &url );
private:
#ifdef _WIN32
HINTERNET connect = nullptr;
#else
CURL *curl_handle;
#endif
};
#endif