comparison include/core/anime_db.h @ 317:b1f4d1867ab1

services: VERY initial Kitsu support it only supports user authentication for now, but it's definitely a start.
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 04:07:10 -0400
parents 3ec7804abf17
children d928ec7b6a0d
comparison
equal deleted inserted replaced
316:180714442770 317:b1f4d1867ab1
23 bool GetDatabaseAsJSON(nlohmann::json& json); 23 bool GetDatabaseAsJSON(nlohmann::json& json);
24 bool SaveDatabaseToDisk(); 24 bool SaveDatabaseToDisk();
25 25
26 bool ParseDatabaseJSON(const nlohmann::json& json); 26 bool ParseDatabaseJSON(const nlohmann::json& json);
27 bool LoadDatabaseFromDisk(); 27 bool LoadDatabaseFromDisk();
28
29 /* These are here to make sure that our service IDs don't collide
30 * and make the whole thing go boom. */
31 int GetUnusedId();
32 int LookupServiceId(Service service, const std::string& id_to_find);
33 int LookupServiceIdOrUnused(Service service, const std::string& id_to_find);
28 }; 34 };
29 35
30 extern Database db; 36 extern Database db;
31 37
32 } // namespace Anime 38 } // namespace Anime