refactor: put HTTP and XML logic into reusable modules

This commit is contained in:
frosty
2026-03-12 18:05:09 -04:00
parent c802a4784a
commit 0d65dcd24c
8 changed files with 366 additions and 356 deletions

16
src/Utility/HttpClient.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef HTTPCLIENT_H
#define HTTPCLIENT_H
#include <curl/curl.h>
#include <stddef.h>
typedef struct {
char *memory;
size_t size;
size_t capacity;
} HttpResponse;
HttpResponse http_get(const char *url, const char *user_agent);
void http_response_free(HttpResponse *resp);
#endif