-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutils.h
More file actions
37 lines (21 loc) · 728 Bytes
/
Copy pathutils.h
File metadata and controls
37 lines (21 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef UTILS_H
#define UTILS_H
#include <string>
#include <vector>
#include <iostream>
#include <dlfcn.h>
#include <libxml/HTMLparser.h>
#include <libxml/xpath.h>
#include "download_manager.h"
#include <regex>
#include <fstream>
#include "types.h"
extern std::atomic<int> downloadProgress;
size_t header_callback(void* ptr, size_t size, size_t nmemb, std::string* filename);
std::string getHtml(const std::string& url);
std::vector<Console> parseHTML(const std::string& html);
std::vector<Game> parseGamesHTML(const std::string &htmlContent);
int downloadGame(std::string console, const std::string &htmlContent);
int unzipGames(::std::string console);
void setDownloadManager(DownloadManager* manager);
#endif