annotate src/services/services.cpp @ 30:4dc59e1a81a3

ci/win32: fix echo-ing to binfmt ok, so apparently bash AUTOMATICALLY writes a newline to the end of a file. why does it do this? nobody knows, but we can avoid it by simply adding the `-n` flag
author Paper <mrpapersonic@gmail.com>
date Wed, 20 Sep 2023 00:53:11 -0400
parents cde8f67a7c7d
children 619cbd6e69f9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
cde8f67a7c7d *: update, megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 10
diff changeset
1 #include "services/services.h"
10
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
2 #include "core/session.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
3 #include "services/anilist.h"
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
4
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
5 namespace Services {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
6
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
7 void Synchronize() {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
8 switch (session.config.service) {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
9 case Anime::Services::ANILIST: AniList::GetAnimeList(); break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
10 default: break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
11 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
12 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
13
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
14 void Authorize() {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
15 switch (session.config.service) {
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
16 case Anime::Services::ANILIST: AniList::AuthorizeUser(); break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
17 default: break;
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
18 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
19 }
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
20
Paper <mrpapersonic@gmail.com>
parents: 9
diff changeset
21 }; // namespace Services