mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
Qt: use simple curl wrapper to avoid some pitfalls
This commit is contained in:
parent
3c63db93ed
commit
b447e6f55d
9 changed files with 74 additions and 38 deletions
20
rpcs3/rpcs3qt/curl_handle.h
Normal file
20
rpcs3/rpcs3qt/curl_handle.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#ifndef CURL_STATICLIB
|
||||
#define CURL_STATICLIB
|
||||
#endif
|
||||
#include <curl/curl.h>
|
||||
|
||||
class curl_handle : public QObject
|
||||
{
|
||||
private:
|
||||
CURL* m_curl = nullptr;
|
||||
|
||||
public:
|
||||
curl_handle(QObject* parent = nullptr);
|
||||
~curl_handle();
|
||||
|
||||
CURL* get_curl();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue