comparison src/include/anilist.h @ 6:1d82f6e04d7d

Update: add first parts to the settings dialog
author Paper <mrpapersonic@gmail.com>
date Wed, 16 Aug 2023 00:49:17 -0400
parents 23d0d9319a00
children 07a9095eaeed
comparison
equal deleted inserted replaced
5:51ae25154b70 6:1d82f6e04d7d
3 #include <curl/curl.h> 3 #include <curl/curl.h>
4 #include "anime.h" 4 #include "anime.h"
5 #include "json.h" 5 #include "json.h"
6 class AniList { 6 class AniList {
7 public: 7 public:
8 int Authorize(); 8 static int Authorize();
9 int GetUserId(std::string name); 9 int GetUserId(std::string name);
10 int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id); 10 int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id);
11 11
12 private: 12 private:
13 static size_t CurlWriteCallback(void *contents, size_t size, size_t nmemb, void *userdata); 13 static size_t CurlWriteCallback(void *contents, size_t size, size_t nmemb, void *userdata);