Skip to content

Commit a1f3403

Browse files
authored
Update auth.hpp
1 parent 29908b2 commit a1f3403

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

auth.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
#pragma comment(lib, "libcurl.lib")
44

5+
#if defined(__x86_64__) || defined(_M_X64)
6+
#pragma comment(lib, "libcurl.lib")
7+
#elif defined(__i386) || defined(_M_IX86)
8+
#pragma comment(lib, "libcurl86.lib")
9+
#endif
10+
511
#define CURL_STATICLIB
612

713
struct channel_struct
@@ -16,8 +22,9 @@ namespace KeyAuth {
1622
public:
1723

1824
std::string name, ownerid, secret, version, url;
25+
std::string path = "";
1926

20-
api(std::string name, std::string ownerid, std::string secret, std::string version, std::string url) : name(name), ownerid(ownerid), secret(secret), version(version), url(url) {}
27+
api(std::string name, std::string ownerid, std::string secret, std::string version, std::string url, std::string path = "") : name(name), ownerid(ownerid), secret(secret), version(version), url(url), path(path) {}
2128

2229
void ban(std::string reason = "");
2330
void init();
@@ -41,6 +48,7 @@ namespace KeyAuth {
4148
std::string fetchonline();
4249
void fetchstats();
4350
void forgot(std::string username, std::string email);
51+
void logout();
4452

4553
class subscriptions_class {
4654
public:

0 commit comments

Comments
 (0)