rodecomp/Source/Network/Http/CURLMgr.h
ragnarok-clanker 1dccbfbae5 Maintenance: Annotate globals on their definitions only; drop annotations from header externs
Batch #904 by ragnarok-clanker: no function's compiled code changes; checked with 3 compiled unit(s), including every includer of Source/Contents/MessageTable.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemDataMgr.h, Source/Contents/Hotkeys/UserHotkeyMgr.h, Source/Contents/Messenger/WhisperBlockMgr.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/CharacterLinkedUserDataMgr.h, Source/Network/TextEncoding.h, Source/Network/Http/CURLMgr.h, Source/Render/Textures/Texture.h, Source/UI/Layout/SnapMgr.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Window/FrameFocus.h, Source/UI/Window/UIWindow.h, Source/Utility/Async/NMessageMgr.h.
2026-10-26 18:25:54 +00:00

37 lines
917 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;
};
extern CCURLMgr* g_curlMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CCURLMgr) == 56);
#endif
#endif