rodecomp/Source/Network/Http/CURLMgr.h
ragnarok-clanker a47d20f8be Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.

Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
2026-10-25 07:42:41 +00:00

39 lines
959 B
C++

#ifndef RAGNAROK_SOURCE_NETWORK_HTTP_CURLMGR_H
#define RAGNAROK_SOURCE_NETWORK_HTTP_CURLMGR_H
#include <windows.h>
struct curl_slist;
struct curl_httppost;
class CCURLMgr {
public:
CCURLMgr();
virtual ~CCURLMgr();
static bool Initialize();
static void Shutdown();
int(__cdecl* globalInit)(long);
void(__cdecl* globalCleanup)();
curl_slist*(__cdecl* slistAppend)(curl_slist*, const char*);
int(__cdecl* formAdd)(curl_httppost**, curl_httppost**, ...);
void*(__cdecl* easyInit)();
int(__cdecl* easySetopt)(void*, int, ...);
int(__cdecl* easyPerform)(void*);
void(__cdecl* easyCleanup)(void*);
void(__cdecl* formFree)(curl_httppost*);
void(__cdecl* slistFreeAll)(curl_slist*);
int(__cdecl* easyGetinfo)(void*, int, ...);
bool m_enabled;
HMODULE m_module;
};
// STATIC: 0x013898CC
// GLOBAL: gl_24354
extern CCURLMgr* g_curlMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CCURLMgr) == 56);
#endif
#endif